#include <histogramdata.h>
Public Member Functions | |
HistogramData () | |
Constructor. | |
void | AddData (unsigned short value) |
Add a new sample to the histogram. | |
std::vector< float > | ResampleData (unsigned slice_count) const |
Generates a vector with the desired length into which the data will be resampled. | |
Private Types | |
typedef std::map< unsigned short, unsigned > | data_type |
typedef data_type::const_iterator | citer_type |
Private Attributes | |
unsigned | count_ |
number of samples in the data. | |
data_type | data_ |
The histogram data. |
It is used in the Dialog for specifying the transfer function which displays a histogram of the densities.
Definition at line 11 of file histogramdata.h.
typedef std::map<unsigned short, unsigned> HistogramData::data_type [private] |
Definition at line 15 of file histogramdata.h.
typedef data_type::const_iterator HistogramData::citer_type [private] |
Definition at line 16 of file histogramdata.h.
HistogramData::HistogramData | ( | ) | [inline] |
void HistogramData::AddData | ( | unsigned short | value | ) | [inline] |
std::vector<float> HistogramData::ResampleData | ( | unsigned | slice_count | ) | const [inline] |
Generates a vector with the desired length into which the data will be resampled.
Definition at line 38 of file histogramdata.h.
Referenced by TransferFunctionCtrlCanvas::DrawHist().
unsigned HistogramData::count_ [private] |
number of samples in the data.
Definition at line 13 of file histogramdata.h.
Referenced by AddData().
data_type HistogramData::data_ [private] |
The histogram data.
Definition at line 18 of file histogramdata.h.
Referenced by AddData(), and ResampleData().