HistogramData Class Reference

This class encapsulates the histogram data. More...

#include <histogramdata.h>

List of all members.

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.


Detailed Description

This class encapsulates 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.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

HistogramData::HistogramData (  )  [inline]

Constructor.

Definition at line 22 of file histogramdata.h.


Member Function Documentation

void HistogramData::AddData ( unsigned short  value  )  [inline]

Add a new sample to the histogram.

Definition at line 28 of file histogramdata.h.

References count_, and data_.

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.

References data_, and x.

Referenced by TransferFunctionCtrlCanvas::DrawHist().


Member Data Documentation

unsigned HistogramData::count_ [private]

number of samples in the data.

Definition at line 13 of file histogramdata.h.

Referenced by AddData().

The histogram data.

Definition at line 18 of file histogramdata.h.

Referenced by AddData(), and ResampleData().


The documentation for this class was generated from the following file:

Generated on Wed Jan 21 16:22:24 2009 for FlowVis by  doxygen 1.5.6