casa
$Rev:20696$
|
Default implementation of PlotPointData that supports raw arrays, vectors, and CASA Vectors. More...
#include <PlotData.h>
Public Member Functions | |
PlotPointDataImpl (vector< T > &x, vector< T > &y, bool shouldDelete=false) | |
X/Y constructors. | |
PlotPointDataImpl (Vector< T > &x, Vector< T > &y, bool shouldDelete=false) | |
PlotPointDataImpl (T *&x, T *&y, unsigned int size, bool shouldDel=false) | |
PlotPointDataImpl (vector< T > &y, bool shouldDelete=false) | |
Y constructors. | |
PlotPointDataImpl (Vector< T > &y, bool shouldDelete=false) | |
PlotPointDataImpl (T *&y, unsigned int size, bool shouldDel=false) | |
virtual | ~PlotPointDataImpl () |
bool | isValid () const |
Implements PlotData::isValid(). | |
virtual bool | willDeleteData () const |
Implements PlotData::willDeleteData(). | |
virtual void | setDeleteData (bool del=true) |
Implements PlotData::setDeleteData(). | |
unsigned int | size () const |
Implements PlotPointData::size(). | |
double | xAt (unsigned int i) const |
Implements PlotPointData::xAt(). | |
double | yAt (unsigned int i) const |
Implements PlotPointData::yAt(). | |
bool | minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Implements PlotPointData::minsMaxes(). | |
Private Attributes | |
PlotSingleDataImpl< T > | m_xData |
PlotSingleDataImpl< T > | m_yData |
Default implementation of PlotPointData that supports raw arrays, vectors, and CASA Vectors.
The class is templated, but since data sources are expected in doubles it should be a numeric type that can be casted to a double. It can either be both x and y data, or just y data (where x is the index).
Definition at line 424 of file PlotData.h.
casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | vector< T > & | x, |
vector< T > & | y, | ||
bool | shouldDelete = false |
||
) | [inline] |
X/Y constructors.
Definition at line 428 of file PlotData.h.
casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | Vector< T > & | x, |
Vector< T > & | y, | ||
bool | shouldDelete = false |
||
) | [inline] |
Definition at line 430 of file PlotData.h.
casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | T *& | x, |
T *& | y, | ||
unsigned int | size, | ||
bool | shouldDel = false |
||
) | [inline] |
Definition at line 432 of file PlotData.h.
casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | vector< T > & | y, |
bool | shouldDelete = false |
||
) | [inline] |
Y constructors.
Definition at line 438 of file PlotData.h.
casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | Vector< T > & | y, |
bool | shouldDelete = false |
||
) | [inline] |
Definition at line 440 of file PlotData.h.
casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | T *& | y, |
unsigned int | size, | ||
bool | shouldDel = false |
||
) | [inline] |
Definition at line 442 of file PlotData.h.
virtual casa::PlotPointDataImpl< T >::~PlotPointDataImpl | ( | ) | [inline, virtual] |
Definition at line 446 of file PlotData.h.
bool casa::PlotPointDataImpl< T >::isValid | ( | ) | const [inline, virtual] |
Implements PlotData::isValid().
Implements casa::PlotData.
Definition at line 450 of file PlotData.h.
bool casa::PlotPointDataImpl< T >::minsMaxes | ( | double & | xMin, |
double & | xMax, | ||
double & | yMin, | ||
double & | yMax | ||
) | [inline, virtual] |
Implements PlotPointData::minsMaxes().
Implements casa::PlotPointData.
Definition at line 481 of file PlotData.h.
virtual void casa::PlotPointDataImpl< T >::setDeleteData | ( | bool | del = true | ) | [inline, virtual] |
Implements PlotData::setDeleteData().
Implements casa::PlotData.
Reimplemented in casa::PlotErrorDataImpl< T >, and casa::PlotMaskedPointDataImpl< T >.
Definition at line 459 of file PlotData.h.
unsigned int casa::PlotPointDataImpl< T >::size | ( | ) | const [inline, virtual] |
Implements PlotPointData::size().
Implements casa::PlotPointData.
Definition at line 465 of file PlotData.h.
References casa::min().
virtual bool casa::PlotPointDataImpl< T >::willDeleteData | ( | ) | const [inline, virtual] |
Implements PlotData::willDeleteData().
Implements casa::PlotData.
Reimplemented in casa::PlotErrorDataImpl< T >, and casa::PlotMaskedPointDataImpl< T >.
Definition at line 453 of file PlotData.h.
Referenced by casa::PlotErrorDataImpl< T >::willDeleteData().
double casa::PlotPointDataImpl< T >::xAt | ( | unsigned int | i | ) | const [inline, virtual] |
Implements PlotPointData::xAt().
If no x data is given, the index is returned.
Implements casa::PlotPointData.
Definition at line 472 of file PlotData.h.
double casa::PlotPointDataImpl< T >::yAt | ( | unsigned int | i | ) | const [inline, virtual] |
Implements PlotPointData::yAt().
Implements casa::PlotPointData.
Definition at line 478 of file PlotData.h.
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_xData [private] |
Definition at line 492 of file PlotData.h.
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_yData [private] |
Definition at line 493 of file PlotData.h.