casa::PlotPointData Class Reference

#include <PlotData.h>

Inheritance diagram for casa::PlotPointData:

Inheritance graph
[legend]
Collaboration diagram for casa::PlotPointData:

Collaboration graph
[legend]
List of all members.

Detailed Description

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.

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 //.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual unsigned int casa::PlotPointData::size (  )  const [pure virtual]

ABSTRACT METHODS //.

Returns the number of points.

Implemented in casa::PlotPointDataImpl< T >, casa::PlotHistogramData, and casa::PlotMSData.

virtual double casa::PlotPointData::xAt ( unsigned int  i  )  const [pure virtual]

Returns the x value at the given index.

Implemented in casa::PlotPointDataImpl< T >, casa::PlotHistogramData, and casa::PlotMSData.

virtual double casa::PlotPointData::yAt ( unsigned int  i  )  const [pure virtual]

Returns the y value at the given index.

Implemented in casa::PlotPointDataImpl< T >, casa::PlotHistogramData, and casa::PlotMSData.

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::PlotPointDataImpl< T >, casa::PlotHistogramData, and casa::PlotMSData.

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::PlotMSData.


The documentation for this class was generated from the following file:
Generated on Thu Aug 27 21:28:09 2009 for NRAOCASA by  doxygen 1.5.1