casa
$Rev:20696$
|
A source of data used to supply x and y values. More...
#include <PlotData.h>
Public Member Functions | |
PlotPointData () | |
virtual | ~PlotPointData () |
virtual unsigned int | size () const =0 |
ABSTRACT METHODS //. | |
virtual double | xAt (unsigned int i) const =0 |
Returns the x value at the given index. | |
virtual double | yAt (unsigned int i) const =0 |
Returns the y value at the given index. | |
virtual bool | minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax)=0 |
Gets the minimum and maximum values. | |
virtual void | xAndYAt (unsigned int index, double &x, double &y) const |
IMPLEMENTED METHODS //. |
A source of data used to supply x and y values.
Basically consists of indexing its values.
Definition at line 102 of file PlotData.h.
casa::PlotPointData::PlotPointData | ( | ) | [inline] |
Definition at line 104 of file PlotData.h.
virtual casa::PlotPointData::~PlotPointData | ( | ) | [inline, virtual] |
Definition at line 106 of file PlotData.h.
virtual bool casa::PlotPointData::minsMaxes | ( | double & | xMin, |
double & | xMax, | ||
double & | yMin, | ||
double & | yMax | ||
) | [pure virtual] |
Gets the minimum and maximum values.
Returns false for error.
Implemented in casa::PlotHistogramData, casa::PlotPointDataImpl< T >, and casa::PlotMSIndexer.
virtual unsigned int casa::PlotPointData::size | ( | ) | const [pure virtual] |
ABSTRACT METHODS //.
Returns the number of points.
Implemented in casa::PlotHistogramData, casa::PlotPointDataImpl< T >, and casa::PlotMSIndexer.
virtual void casa::PlotPointData::xAndYAt | ( | unsigned int | index, |
double & | x, | ||
double & | y | ||
) | const [virtual] |
IMPLEMENTED METHODS //.
Gets the x and y values at the given index. Default implementation just calls xAt and yAt, but in subclasses where performance could be gained, this method should be overridden. Implementations for plots that use PlotPointData should use this method by default in case there are performance gains.
Reimplemented in casa::PlotMSIndexer.
virtual double casa::PlotPointData::xAt | ( | unsigned int | i | ) | const [pure virtual] |
Returns the x value at the given index.
Implemented in casa::PlotHistogramData, casa::PlotPointDataImpl< T >, and casa::PlotMSIndexer.
virtual double casa::PlotPointData::yAt | ( | unsigned int | i | ) | const [pure virtual] |
Returns the y value at the given index.
Implemented in casa::PlotHistogramData, casa::PlotPointDataImpl< T >, and casa::PlotMSIndexer.