casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::PlotPointData Class Referenceabstract

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 > casa::PlotMSRaDecIndexer

Public Member Functions

 PlotPointData ()
 
virtual ~PlotPointData ()
 
virtual unsigned int size () const =0
 ABSTRACT METHODS //. More...
 
virtual double xAt (unsigned int i) const =0
 Returns the x value at the given index. More...
 
virtual double yAt (unsigned int i) const =0
 Returns the y value at the given index. More...
 
virtual bool minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax)=0
 Gets the minimum and maximum values. More...
 
virtual void xAndYAt (unsigned int index, double &x, double &y) const
 IMPLEMENTED METHODS //. More...
 
- Public Member Functions inherited from casa::PlotData
 PlotData ()
 
virtual ~PlotData ()
 
virtual bool isValid () const =0
 ABSTRACT METHODS //. More...
 
virtual bool willDeleteData () const =0
 Returns whether this object will delete its underlying data structures upon deconstruction or not. More...
 
virtual void setDeleteData (bool del=true)=0
 Sets whether this object will delete its underlying data structures upon deconstruction or not. More...
 

Detailed Description

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

Basically consists of indexing its values.

Definition at line 99 of file PlotData.h.

Constructor & Destructor Documentation

casa::PlotPointData::PlotPointData ( )
inline

Definition at line 101 of file PlotData.h.

virtual casa::PlotPointData::~PlotPointData ( )
inlinevirtual

Definition at line 103 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::PlotMSRaDecIndexer, and 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 >, casa::PlotMSRaDecIndexer, 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 >, casa::PlotMSRaDecIndexer, and casa::PlotMSIndexer.


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