📄 cross_panel_ir.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: cross_panel_ir.hpp,v $ * PRODUCTION Revision 1000.1 2004/06/01 19:51:34 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3 * PRODUCTION * =========================================================================== */#ifndef GUI_WIDGET_ALN_CROSSALN___CROSS_PANEL_IR__HPP#define GUI_WIDGET_ALN_CROSSALN___CROSS_PANEL_IR__HPP/* $Id: cross_panel_ir.hpp,v 1000.1 2004/06/01 19:51:34 gouriano Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors: Vlad Lebedev * * Description: A panel that will render a cross alignment panel * */#include <gui/gui.hpp>#include <objmgr/bioseq_handle.hpp>#include <gui/widgets/gl/irenderable.hpp>#include <gui/widgets/aln_crossaln/cross_aln_ds.hpp>#include <gui/opengl/glbitmapfont.hpp>#include <gui/objutils/layout.hpp>BEGIN_NCBI_SCOPEclass CCrossPanelIR : public IRenderable{public: CCrossPanelIR(); virtual ~CCrossPanelIR(void); // IRenderable TVPRect GetVPRect(); TModelRect GetModelRect(); void Render(CGlPane& pane); void SetDataSource(CCrossAlnDataSource* ds); void SetProportions(TModelUnit k, TModelUnit dx); void SetShifts(TModelUnit sh1, TModelUnit sh2); private: CRef<CCrossAlnDataSource> m_DS; CGlBitmapFont m_Font_Bitmap9x15; TModelUnit m_K; // relation of scales beetween two sequences TModelUnit m_Dx; // offset of second sequence against the first one TModelUnit m_Sh1; // scroll offsets for both sequences TModelUnit m_Sh2; TModelUnit m_OffsetX; // CGlPane offsets TModelUnit m_OffsetY; // width in pixels of one seq. letter int m_OneCharWidth; // coordinate transformation TModelUnit x_Seq2Lim1(TModelUnit seq); TModelUnit x_Seq2Lim2(TModelUnit seq); TModelUnit x_Lim2Seq1(TModelUnit lim); TModelUnit x_Lim2Seq2(TModelUnit lim); void x_GetSequence(const objects::CBioseq_Handle& handle, TModelUnit from, TModelUnit to, string& buffer) const; void x_DrawCrossAlignment(CGlPane& pane, GLenum shape); bool x_IsSeqLettersFit1(CGlPane& pane) const; bool x_IsSeqLettersFit2(CGlPane& pane) const; };END_NCBI_SCOPE/* * =========================================================================== * $Log: cross_panel_ir.hpp,v $ * Revision 1000.1 2004/06/01 19:51:34 gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3 * * Revision 1.3 2004/05/03 12:47:08 dicuccio * Added #include for gui/gui.hpp. gui/utils ->gui/objutils where needed. * * Revision 1.2 2004/03/11 17:21:37 dicuccio * Use TSeqRange instead of TRange. Deprecated TIndex, TDimension, TPosition. * Corrected use of constructor - add default NULL const char* label * * Revision 1.1 2003/12/22 13:10:45 lebedev * Initial revision * * =========================================================================== */#endif // GUI_WIDGET_ALN_CROSSALN___CROSS_PANEL_IR__HPP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -