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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_HIT_MATRIX___HISTOGRAM_GRAPH__HPP
2 #define GUI_WIDGETS_HIT_MATRIX___HISTOGRAM_GRAPH__HPP
3 
4 /* $Id: density_map_ds.hpp 30454 2014-05-21 16:48:42Z katargir $
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 
35 #include <corelib/ncbistl.hpp>
36 
38 
40 #include <objmgr/bioseq_handle.hpp>
42 
43 
45 
46 
47 ///////////////////////////////////////////////////////////////////////////////
48 /// CDensityMapDS
49 class CDensityMapDS : public CObject, public IHistogramGraphDS
50 {
51 public:
52  static void GetGraphTypes(vector<string>& types);
53 
54  CDensityMapDS(objects::CBioseq_Handle& handle, const string& type);
55  virtual ~CDensityMapDS();
56 
57  /// @name IHistogramDS implementation
58  /// @{
59  virtual double GetLimit() const;
60 
61  virtual double GetStart() const;
62  virtual double GetStop() const;
63  virtual double GetStep() const;
64 
65  virtual size_t GetCount() const;
66  virtual double GetValue(size_t index);
67 
68  virtual double GetMaxValue();
69 
70  virtual string GetLabel() const;
71 
72  virtual void Update(double start, double stop);
73  /// @}
74 
75 protected:
76  objects::SAnnotSelector x_GetAnnotSelector();
77 
78 protected:
80 
81  objects::CBioseq_Handle m_Bioseq;
82  string m_Type;
84 };
85 
86 
88 
89 #endif // GUI_WIDGETS_HIT_MATRIX___HISTOGRAM_GRAPH__HPP
CDensityMapDS.
virtual double GetValue(size_t index)
value of the sample with the given index
virtual double GetStart() const
virtual double GetStep() const
discrete size in model space
CDensityMap< int > TMap
virtual ~CDensityMapDS()
static void GetGraphTypes(vector< string > &types)
virtual void Update(double start, double stop)
virtual string GetLabel() const
virtual double GetMaxValue()
CDensityMapDS(objects::CBioseq_Handle &handle, const string &type)
CDensityMapDS.
virtual size_t GetCount() const
number of samples in the series
objects::CBioseq_Handle m_Bioseq
objects::SAnnotSelector x_GetAnnotSelector()
virtual double GetLimit() const
returns start of the series in model space
virtual double GetStop() const
class CDensityMap generates a low-resolution view of a set of features.
CObject –.
Definition: ncbiobj.hpp:180
IHistogramGraphDS interface.
static const struct type types[]
Definition: type.c:22
#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.
Definition: type.c:6
Modified on Wed May 15 15:08:03 2024 by modify_doxy.py rev. 669887