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 421 of file PlotData.h.
| casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | vector< T > & | x, | |
| vector< T > & | y, | |||
| bool | shouldDelete = false | |||
| ) | [inline] |
X/Y constructors.
Definition at line 425 of file PlotData.h.
| casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | Vector< T > & | x, | |
| Vector< T > & | y, | |||
| bool | shouldDelete = false | |||
| ) | [inline] |
Definition at line 427 of file PlotData.h.
| casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | T *& | x, | |
| T *& | y, | |||
| unsigned int | size, | |||
| bool | shouldDel = false | |||
| ) | [inline] |
Definition at line 429 of file PlotData.h.
| casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | vector< T > & | y, | |
| bool | shouldDelete = false | |||
| ) | [inline] |
Y constructors.
Definition at line 435 of file PlotData.h.
| casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | Vector< T > & | y, | |
| bool | shouldDelete = false | |||
| ) | [inline] |
Definition at line 437 of file PlotData.h.
| casa::PlotPointDataImpl< T >::PlotPointDataImpl | ( | T *& | y, | |
| unsigned int | size, | |||
| bool | shouldDel = false | |||
| ) | [inline] |
Definition at line 439 of file PlotData.h.
| virtual casa::PlotPointDataImpl< T >::~PlotPointDataImpl | ( | ) | [inline, virtual] |
Definition at line 443 of file PlotData.h.
| bool casa::PlotPointDataImpl< T >::isValid | ( | ) | const [inline, virtual] |
Implements PlotData::isValid().
Implements casa::PlotData.
Definition at line 447 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
| bool casa::PlotPointDataImpl< T >::minsMaxes | ( | double & | xMin, | |
| double & | xMax, | |||
| double & | yMin, | |||
| double & | yMax | |||
| ) | [inline, virtual] |
Implements PlotPointData::minsMaxes().
Implements casa::PlotPointData.
Definition at line 478 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, and casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
| virtual void casa::PlotPointDataImpl< T >::setDeleteData | ( | bool | del = true |
) | [inline, virtual] |
Implements PlotData::setDeleteData().
Implements casa::PlotData.
Reimplemented in casa::PlotMaskedPointDataImpl< T >, and casa::PlotErrorDataImpl< T >.
Definition at line 456 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, and casa::PlotPointDataImpl< T >::m_yData.
| unsigned int casa::PlotPointDataImpl< T >::size | ( | ) | const [inline, virtual] |
Implements PlotPointData::size().
Implements casa::PlotPointData.
Definition at line 462 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, casa::PlotPointDataImpl< T >::m_yData, and casacore::min().
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes(), and casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked().
| virtual bool casa::PlotPointDataImpl< T >::willDeleteData | ( | ) | const [inline, virtual] |
Implements PlotData::willDeleteData().
Implements casa::PlotData.
Reimplemented in casa::PlotMaskedPointDataImpl< T >, and casa::PlotErrorDataImpl< T >.
Definition at line 450 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, and casa::PlotPointDataImpl< T >::m_yData.
| 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 469 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
| double casa::PlotPointDataImpl< T >::yAt | ( | unsigned int | i | ) | const [inline, virtual] |
Implements PlotPointData::yAt().
Implements casa::PlotPointData.
Definition at line 475 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_xData [private] |
Definition at line 489 of file PlotData.h.
Referenced by casa::PlotPointDataImpl< T >::minsMaxes(), casa::PlotPointDataImpl< T >::setDeleteData(), casa::PlotPointDataImpl< T >::size(), casa::PlotPointDataImpl< T >::willDeleteData(), and casa::PlotPointDataImpl< T >::xAt().
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_yData [private] |
Definition at line 490 of file PlotData.h.
Referenced by casa::PlotPointDataImpl< T >::isValid(), casa::PlotPointDataImpl< T >::minsMaxes(), casa::PlotPointDataImpl< T >::setDeleteData(), casa::PlotPointDataImpl< T >::size(), casa::PlotPointDataImpl< T >::willDeleteData(), and casa::PlotPointDataImpl< T >::yAt().
1.6.1