Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Superclass for histograms working with connectomic networks. More...
#include <mitkConnectomicsHistogramBase.h>
Public Member Functions | |
ConnectomicsHistogramBase () | |
virtual | ~ConnectomicsHistogramBase () |
virtual double | GetYMin () const |
Returns the minimal y=f(x) value of the histogram. More... | |
virtual double | GetYMax () const |
Returns the maximum y=f(x) value of the histogram. More... | |
virtual double | GetXMin () const |
Returns the minimal x value of the histogram. More... | |
virtual double | GetXMax () const |
Returns the maximum x value of the histogram. More... | |
virtual int | GetRange () const |
Returns the range of the histogram. More... | |
virtual void | UpdateYMax () |
Update the Y maximum to the maximal value in the histogram. More... | |
virtual void | ComputeFromBaseData (BaseData *source) override |
Creates a new histogram from the source. More... | |
virtual void | PrintToConsole () const |
Print values to console. More... | |
virtual bool | IsValid () const |
Returns whether the histogram can be considered valid. More... | |
virtual std::string | GetSubject () const |
Returns the subject of the histogram as a string. More... | |
virtual void | SetSubject (std::string) |
Set the subject of the histogram as a string. More... | |
virtual float | GetRelativeBin (double start, double end) const override |
Get bin height for the bin between start and end. More... | |
virtual std::vector< double > | GetHistogramVector () |
Get the double vector. More... | |
Protected Member Functions | |
virtual void | ComputeFromConnectomicsNetwork (ConnectomicsNetwork *source)=0 |
Creates a new histogram from the network source. More... | |
virtual double | GetMin () const override |
Legacy method, do no use. More... | |
virtual double | GetMax () const override |
Legacy method, do no use. More... | |
Protected Attributes | |
bool | m_Valid |
Is this a valid histogram. More... | |
int | m_BaselineValue |
Which is the baseline value for the histogram This value should be zero for all network histograms. More... | |
int | m_TopValue |
Which is the top value for the histogram. More... | |
int | m_StartValue |
Which is the starting x value for the histogram. More... | |
std::vector< double > | m_HistogramVector |
We expect not continuous but discrete histograms. More... | |
std::string | m_Subject |
Subject of the histogram as a string. More... | |
Superclass for histograms working with connectomic networks.
Definition at line 32 of file mitkConnectomicsHistogramBase.h.
mitk::ConnectomicsHistogramBase::ConnectomicsHistogramBase | ( | ) |
Definition at line 24 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Definition at line 33 of file mitkConnectomicsHistogramBase.cpp.
|
overridevirtual |
Creates a new histogram from the source.
Implements mitk::SimpleHistogram.
Definition at line 98 of file mitkConnectomicsHistogramBase.cpp.
Referenced by mitk::ConnectomicsHistogramsContainer::ComputeFromBaseData().
|
protectedpure virtual |
Creates a new histogram from the network source.
Implemented in mitk::ConnectomicsShortestPathHistogram, mitk::ConnectomicsBetweennessHistogram, and mitk::ConnectomicsDegreeHistogram.
|
virtual |
Get the double vector.
Definition at line 223 of file mitkConnectomicsHistogramBase.cpp.
|
overrideprotectedvirtual |
Legacy method, do no use.
Implements mitk::SimpleHistogram.
Definition at line 53 of file mitkConnectomicsHistogramBase.cpp.
|
overrideprotectedvirtual |
Legacy method, do no use.
Implements mitk::SimpleHistogram.
Definition at line 48 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Returns the range of the histogram.
Definition at line 68 of file mitkConnectomicsHistogramBase.cpp.
|
overridevirtual |
Get bin height for the bin between start and end.
Implements mitk::SimpleHistogram.
Definition at line 119 of file mitkConnectomicsHistogramBase.cpp.
References mitk::ConnectomicsConstantsManager::CONNECTOMICS_ERROR_BEYOND_SCOPE, mitk::ConnectomicsConstantsManager::CONNECTOMICS_ERROR_OUTSIDE_INTEGER_RANGE, mitk::ConnectomicsConstantsManager::CONNECTOMICS_ERROR_PASSED_NEGATIVE_INDEX_TO_HISTOGRAM, mitk::ConnectomicsConstantsManager::CONNECTOMICS_ERROR_TRIED_TO_ACCESS_INVALID_HISTOGRAM, MBI_WARN, and MITK_ERROR.
|
virtual |
Returns the subject of the histogram as a string.
Definition at line 88 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Returns the maximum x value of the histogram.
Definition at line 63 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Returns the minimal x value of the histogram.
Definition at line 58 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Returns the maximum y=f(x) value of the histogram.
Definition at line 43 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Returns the minimal y=f(x) value of the histogram.
Definition at line 38 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Returns whether the histogram can be considered valid.
Definition at line 73 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Print values to console.
Definition at line 78 of file mitkConnectomicsHistogramBase.cpp.
References MITK_INFO.
|
virtual |
Set the subject of the histogram as a string.
Definition at line 93 of file mitkConnectomicsHistogramBase.cpp.
|
virtual |
Update the Y maximum to the maximal value in the histogram.
Definition at line 212 of file mitkConnectomicsHistogramBase.cpp.
|
protected |
Which is the baseline value for the histogram This value should be zero for all network histograms.
Definition at line 86 of file mitkConnectomicsHistogramBase.h.
|
protected |
We expect not continuous but discrete histograms.
Definition at line 93 of file mitkConnectomicsHistogramBase.h.
|
protected |
Which is the starting x value for the histogram.
Definition at line 90 of file mitkConnectomicsHistogramBase.h.
|
protected |
Subject of the histogram as a string.
Definition at line 96 of file mitkConnectomicsHistogramBase.h.
Referenced by mitk::ConnectomicsBetweennessHistogram::ConnectomicsBetweennessHistogram(), mitk::ConnectomicsDegreeHistogram::ConnectomicsDegreeHistogram(), and mitk::ConnectomicsShortestPathHistogram::ConnectomicsShortestPathHistogram().
|
protected |
Which is the top value for the histogram.
Definition at line 88 of file mitkConnectomicsHistogramBase.h.
|
protected |
Is this a valid histogram.
Definition at line 83 of file mitkConnectomicsHistogramBase.h.