#include <Histogram.h>

Public Member Functions | |
| virtual bool | setHistogramData (unsigned int binCount, const double *pBinCenters, const double *pValues, const double *pBinWidths=NULL, bool bAbove=true)=0 |
| virtual void | getHistogramData (std::vector< double > &binCenters, std::vector< double > &binValues, std::vector< double > &binWidths) const =0 |
| virtual unsigned int | getNumBins () const =0 |
| virtual void | setColor (const ColorType &histogramColor)=0 |
| virtual ColorType | getColor () const =0 |
Static Public Member Functions | |
| static const std::string & | signalHistogramChanged () |
| static const std::string & | signalColorChanged () |
Protected Member Functions | |
| virtual | ~Histogram () |
This subclass of Subject will notify upon the following conditions:
Definition at line 29 of file Histogram.h.
| virtual Histogram::~Histogram | ( | ) | [protected, virtual] |
This should be destroyed by calling PlotView::deleteObject.
Definition at line 112 of file Histogram.h.
| static const std::string& Histogram::signalHistogramChanged | ( | ) | [static] |
| static const std::string& Histogram::signalColorChanged | ( | ) | [static] |
| virtual bool Histogram::setHistogramData | ( | unsigned int | binCount, | |
| const double * | pBinCenters, | |||
| const double * | pValues, | |||
| const double * | pBinWidths = NULL, |
|||
| bool | bAbove = true | |||
| ) | [pure virtual] |
Sets the histogram data values.
| binCount | The number of data values in the histogram. | |
| pBinCenters | The histogram bin center values. | |
| pValues | The count values for each histogram bin. | |
| pBinWidths | The width of each histogram bin. If this value is NULL, a default bin width is calculated. | |
| bAbove | An optional flag to display the count values as either positive or negative. TRUE sets the values as positive. |
| virtual void Histogram::getHistogramData | ( | std::vector< double > & | binCenters, | |
| std::vector< double > & | binValues, | |||
| std::vector< double > & | binWidths | |||
| ) | const [pure virtual] |
Retrieves the histogram data values.
| binCenters | A vector populated with the location of each bin center. The size of the vector indicates the number of bins. | |
| binValues | A vector populated with the count value for each bin. The size of the vector indicates the number of bins. | |
| binWidths | A vector populated with the width of each bin. The size of the vector indicates the number of bins. |
| virtual unsigned int Histogram::getNumBins | ( | ) | const [pure virtual] |
Returns the number of bins in the histogram.
| virtual void Histogram::setColor | ( | const ColorType & | histogramColor | ) | [pure virtual] |
Sets the histogram color.
| histogramColor | The new color for the histogram. Must be a valid color. |
| virtual ColorType Histogram::getColor | ( | ) | const [pure virtual] |
Returns the histogram color.