casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::PlotPointData Class Reference

A source of data used to supply x and y values. More...

#include <PlotData.h>

Inheritance diagram for casa::PlotPointData:
casa::PlotData casa::PlotHistogramData casa::PlotMaskedPointData casa::PlotPointDataImpl< T > casa::PlotMaskedPointDataImpl< T > casa::PlotMSIndexer casa::PlotErrorDataImpl< T > casa::PlotMaskedPointDataImpl< T > casa::PlotScalarErrorDataImpl< T >

List of all members.

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

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.


Constructor & Destructor Documentation

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


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