Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsHistogramBase.h
Go to the documentation of this file.
1 
2 /*===================================================================
3 
4 The Medical Imaging Interaction Toolkit (MITK)
5 
6 Copyright (c) German Cancer Research Center,
7 Division of Medical and Biological Informatics.
8 All rights reserved.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without
11 even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 A PARTICULAR PURPOSE.
13 
14 See LICENSE.txt or http://www.mitk.org for details.
15 
16 ===================================================================*/
17 
18 #ifndef _MITK_ConnectomicsHistogramBase_H
19 #define _MITK_ConnectomicsHistogramBase_H
20 
21 #include "mitkSimpleHistogram.h"
22 #include "mitkCommon.h"
23 
25 
26 namespace mitk {
27 
33  {
34 
35  public:
36 
39 
41  virtual double GetYMin() const;
43  virtual double GetYMax() const;
45  virtual double GetXMin() const;
47  virtual double GetXMax() const;
49  virtual int GetRange() const;
51  virtual void UpdateYMax();
53  virtual void ComputeFromBaseData( BaseData* source ) override;
55  virtual void PrintToConsole( ) const;
57  virtual bool IsValid() const;
59  virtual std::string GetSubject() const;
61  virtual void SetSubject( std::string );
62 
64  virtual float GetRelativeBin( double start, double end ) const override;
65 
67  virtual std::vector< double > GetHistogramVector();
68 
69  protected:
70 
71  // Functions
72 
74  virtual void ComputeFromConnectomicsNetwork( ConnectomicsNetwork* source ) = 0;
76  virtual double GetMin() const override;
78  virtual double GetMax() const override;
79 
80  // Variables
81 
83  bool m_Valid;
91 
93  std::vector< double > m_HistogramVector;
94 
96  std::string m_Subject;
97  };
98 
99 }
100 
101 #endif /* _MITK_ConnectomicsHistogramBase_H */
std::vector< double > m_HistogramVector
We expect not continuous but discrete histograms.
int m_StartValue
Which is the starting x value for the histogram.
virtual double GetYMin() const
Returns the minimal y=f(x) value of the histogram.
Base of all data objects.
Definition: mitkBaseData.h:39
virtual bool IsValid() const
Returns whether the histogram can be considered valid.
virtual double GetYMax() const
Returns the maximum y=f(x) value of the histogram.
DataCollection - Class to facilitate loading/accessing structured data.
int m_TopValue
Which is the top value for the histogram.
bool m_Valid
Is this a valid histogram.
Superclass for histograms working with connectomic networks.
virtual int GetRange() const
Returns the range of the histogram.
virtual void ComputeFromConnectomicsNetwork(ConnectomicsNetwork *source)=0
Creates a new histogram from the network source.
virtual std::vector< double > GetHistogramVector()
Get the double vector.
virtual void ComputeFromBaseData(BaseData *source) override
Creates a new histogram from the source.
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
virtual double GetXMax() const
Returns the maximum x value of the histogram.
virtual std::string GetSubject() const
Returns the subject of the histogram as a string.
virtual double GetXMin() const
Returns the minimal x value of the histogram.
virtual double GetMin() const override
Legacy method, do no use.
virtual double GetMax() const override
Legacy method, do no use.
virtual float GetRelativeBin(double start, double end) const override
Get bin height for the bin between start and end.
virtual void PrintToConsole() const
Print values to console.
virtual void SetSubject(std::string)
Set the subject of the histogram as a string.
int m_BaselineValue
Which is the baseline value for the histogram This value should be zero for all network histograms...
Connectomics Network Class.
virtual void UpdateYMax()
Update the Y maximum to the maximal value in the histogram.
std::string m_Subject
Subject of the histogram as a string.