NCBI C++ ToolKit
seq_tick_graph.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef __GUI_WIDGETS_SEQ_TEXT___SEQ_TICK_GRAPH__HPP
2 #define __GUI_WIDGETS_SEQ_TEXT___SEQ_TICK_GRAPH__HPP
3 
4 /* $Id: seq_tick_graph.hpp 31714 2014-11-07 18:44:50Z falkrb $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Colleen Bollin (adapted from a file by Andrey Yazhuk)
30  *
31  * File Description:
32  *
33  */
34 
35 #include <corelib/ncbistl.hpp>
36 #include <corelib/ncbistd.hpp>
37 
38 #include <util/range_coll.hpp>
39 #include <gui/utils/rgba_color.hpp>
40 #include <gui/opengl/glpane.hpp>
44 
45 #include <objmgr/bioseq_handle.hpp>
46 #include <objmgr/seq_vector.hpp>
47 
49 
51 
52 ///////////////////////////////////////////////////////////////////////////////
53 /// CSequenceTickGraph
55 {
56 public:
57 
59  void SetFont(CGlTextureFont* seq_font);
60 
61  virtual void SetDataSource(CSeqTextDataSource* p_ds);
62 
63  void ShowAbsolutePosition(bool show_abs);
65 
66  /// @name IRenderable implemenation
67  /// @{
68  virtual void Render(CGlPane& pane);
69 
70  virtual TModelRect GetModelRect() const;
71  virtual void SetModelRect(const TModelRect& rc);
72 
73  virtual TVPPoint PreferredSize();
74 
75  virtual bool NeedTooltip(CGlPane& pane, int vp_x, int vp_y);
76  virtual string GetTooltip();
77  /// @}
78 
79  void SetGeometry (ISeqTextGeometry *pGeometry) { m_pGeometry = pGeometry; };
80 
81 protected:
82 
84 
87 
89 
92 };
93 
95 
96 #endif // __GUI_WIDGETS_SEQ_TEXT___SEQ_GRAPH__HPP
class CGlPane
Definition: glpane.hpp:62
CRenderableImpl.
Definition: irenderable.hpp:82
class CRgbaColor provides a simple abstraction for managing colors.
Definition: rgba_color.hpp:58
CSeqTextDataSource implements Adapter design pattern.
CSequenceTickGraph.
virtual string GetTooltip()
CRef< CGlTextureFont > m_pSeqFont
void SetFont(CGlTextureFont *seq_font)
virtual void Render(CGlPane &pane)
virtual void SetDataSource(CSeqTextDataSource *p_ds)
virtual void SetModelRect(const TModelRect &rc)
ISeqTextGeometry * m_pGeometry
CRef< CSeqTextDataSource > m_DataSource
void ShowAbsolutePosition(bool show_abs)
virtual TVPPoint PreferredSize()
virtual TModelRect GetModelRect() const
void SetGeometry(ISeqTextGeometry *pGeometry)
virtual bool NeedTooltip(CGlPane &pane, int vp_x, int vp_y)
class ISeqTextGeometry
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
The NCBI C++/STL use hints.
Modified on Fri Sep 20 14:57:12 2024 by modify_doxy.py rev. 669887