⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alnmulti_base_pane.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: alnmulti_base_pane.hpp,v $ * PRODUCTION Revision 1000.3  2004/04/12 18:15:49  gouriano * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.17 * PRODUCTION * =========================================================================== */#ifndef __GUI_WIDGETS_ALNMULTI___ALNMULTI_BASE_PANE__HPP#define __GUI_WIDGETS_ALNMULTI___ALNMULTI_BASE_PANE__HPP/*  $Id: alnmulti_base_pane.hpp,v 1000.3 2004/04/12 18:15:49 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:  Andrey Yazhuk * * File Description: * */#include <corelib/ncbistl.hpp>#include <gui/opengl/glcanvas2d.hpp>#include <gui/opengl/glcolor.hpp>#include <gui/opengl/glpane.hpp>#include <gui/widgets/aln_multiple/alnmulti_renderer.hpp>BEGIN_NCBI_SCOPE/////////////////////////////////////////////////////////////////////////////// Interface IAlnMultiPaneParent represents a context in which an instance/// of CAlnMultiPane lives.class IAlnMultiPaneParent{public:    typedef IAlnMultiDataSource::TNumrow    TNumrow;    enum ENotification   {        eRowSelChanged    };public:    virtual ~IAlnMultiPaneParent()  {};        virtual const IAlnMultiDataSource*  GetDataSource(void) const = 0;    // all Y coordinates are OpenGL Viewport coordinates (not widget)    virtual TNumrow     GetRowNumByLine(int index) const = 0;    virtual int         GetLineByRowNum(TNumrow row) const = 0;    virtual void    OnChildResize(void) = 0;    virtual void    OnSetScaleX(TModelUnit scale_x, const TModelPoint& point) = 0;    virtual void    OnZoomRect(const TModelRect& rc) = 0;    virtual void    OnScroll(TModelUnit d_x, TModelUnit d_y) = 0;    virtual void    OnRowChanged(IAlignRow* p_row) = 0;    virtual void    OnShowPopup() = 0;        virtual void    OnNotify(ENotification notification) = 0;};END_NCBI_SCOPE/* * =========================================================================== * $Log: alnmulti_base_pane.hpp,v $ * Revision 1000.3  2004/04/12 18:15:49  gouriano * PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.17 * * Revision 1.17  2004/04/02 16:36:29  yazhuk * Introduced ENotification and OnNotify() to IAlnMultiPaneParent * * Revision 1.16  2004/03/17 20:16:03  yazhuk * Renamed GetAlnDS() to GetDataSource() * * Revision 1.15  2004/03/09 21:01:09  yazhuk * Separated IAlnMultiPaneParent  from  IAlnMultiRendererContext * * Revision 1.14  2004/03/08 15:51:17  yazhuk * Inherited CAlnMultiPaneParent from  IAlnMultiRendererContext; modified #includes * * Revision 1.13  2003/12/10 17:11:08  yazhuk * Added "ref. point" argument to IAlnMultiParent::OnSetScaleX(). * Added OnShowPopup() to IAlnMultiParent. * * Revision 1.12  2003/12/01 16:55:02  yazhuk * Added OnZoomRect() and OnScroll() * * Revision 1.11  2003/11/03 16:52:11  yazhuk * Added OnRowChanged() member function * * Revision 1.10  2003/10/29 23:26:39  yazhuk * Replace CAlnMultiDataSource with IAlnMultiDataSource * * Revision 1.9  2003/10/20 15:51:22  yazhuk * Added OnSetScaleX() to IAlignPaneParent. * * Revision 1.8  2003/10/15 21:22:22  yazhuk * Migrated from using CAlnVec to accessing data via "generic" interface in CAlignDataSource. * * Revision 1.7  2003/10/10 19:03:41  yazhuk * Removed CAlnMultiBasePane class * * Revision 1.6  2003/10/08 14:12:58  dicuccio * Moved CGlPane into opengl * * Revision 1.5  2003/09/29 15:15:37  dicuccio * CLeaned up use of CAlnVec (precede with objects:: ; remove * USING_SCOPE(objects)).  Wrapped lines at 80 chars * * Revision 1.4  2003/09/23 20:56:04  yazhuk * Systemized IAlnMultiPaneParent - added const modifiers, changed function names, added new functions * * Revision 1.3  2003/09/10 21:28:05  yazhuk * Added GetConsensusRow() * * Revision 1.2  2003/09/08 16:34:07  yazhuk * Renamed IAlnMultiPaneParent function members * * Revision 1.1  2003/08/28 18:22:45  yazhuk * Initial revision * * =========================================================================== */#endif  // __GUI_WIDGETS_ALNMULTI___ALNMULTI_BASE_PANE__HPP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -