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

Go to the SVN repository for this file.

1 #ifndef __GUI_WIDGETS_ALNMULTI___ALNVEC_ROW_GRAPH__HPP
2 #define __GUI_WIDGETS_ALNMULTI___ALNVEC_ROW_GRAPH__HPP
3 
4 /* $Id: alnvec_row_graph.hpp 29658 2014-01-23 22:00:59Z wuliangs $
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: Andrey Yazhuk
30  *
31  * File Description:
32  *
33  */
34 
36 
37 
39 
41 
42 
43 ////////////////////////////////////////////////////////////////////////////////
44 /// IAlnRowGraphProperties
46 {
47 public:
49 };
50 
51 
52 ////////////////////////////////////////////////////////////////////////////////
53 /// IAlnVecRowGraph - abstract graph that can be rendered in the "expandable"
54 /// space below the CAlnVecRow.
55 
57 {
58 public:
59  virtual ~IAlnVecRowGraph() {};
60 
61  /// Graph is not considered fully functional until it has been "created" by
62  /// the call to create function. Only "Created" graph can be rendered.
63  /// Creating may include loading data and building internal data structures.
64  virtual bool IsCreated() const = 0;
65  virtual bool Create() = 0;
66  virtual void Destroy() = 0;
67  /// Update data according to the input range.
68  /// @param range the current visible range
69  virtual void Update(double start, double stop) = 0;
70 
71  virtual const IAlnRowGraphProperties* GetProperties() const = 0;
72  virtual void SetProperties(IAlnRowGraphProperties* props) = 0;
73 
74  virtual void Render(CGlPane& pane, IAlnSegmentIterator& it) = 0;
75 };
76 
78 
79 #endif // __GUI_WIDGETS_ALNMULTI___ALNVEC_ROW_GRAPH__HPP
class CGlPane
Definition: glpane.hpp:62
IAlnRowGraphProperties.
Alignment segment iterator interface.
IAlnVecRowGraph - abstract graph that can be rendered in the "expandable" space below the CAlnVecRow.
virtual void SetProperties(IAlnRowGraphProperties *props)=0
virtual void Render(CGlPane &pane, IAlnSegmentIterator &it)=0
virtual ~IAlnVecRowGraph()
virtual const IAlnRowGraphProperties * GetProperties() const =0
virtual void Update(double start, double stop)=0
Update data according to the input range.
virtual bool IsCreated() const =0
Graph is not considered fully functional until it has been "created" by the call to create function.
virtual bool Create()=0
virtual void Destroy()=0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_GUIWIDGETS_ALNMULTIPLE_EXPORT
Definition: gui_export.h:520
Modified on Thu Feb 29 12:21:49 2024 by modify_doxy.py rev. 669887