casa
5.7.0-16
|
Default implementation of PlotPointData that supports raw arrays, vectors, and CASA Vectors. More...
#include <PlotData.h>
Public Member Functions | |
PlotPointDataImpl (std::vector< T > &x, std::vector< T > &y, bool shouldDelete=false) | |
X/Y constructors. More... | |
PlotPointDataImpl (casacore::Vector< T > &x, casacore::Vector< T > &y, bool shouldDelete=false) | |
PlotPointDataImpl (T *&x, T *&y, unsigned int size, bool shouldDel=false) | |
PlotPointDataImpl (std::vector< T > &y, bool shouldDelete=false) | |
Y constructors. More... | |
PlotPointDataImpl (casacore::Vector< T > &y, bool shouldDelete=false) | |
PlotPointDataImpl (T *&y, unsigned int size, bool shouldDel=false) | |
virtual | ~PlotPointDataImpl () |
bool | isValid () const |
Implements PlotData::isValid(). More... | |
virtual bool | willDeleteData () const |
Implements PlotData::willDeleteData(). More... | |
virtual void | setDeleteData (bool del=true) |
Implements PlotData::setDeleteData(). More... | |
unsigned int | size () const |
Implements PlotPointData::size(). More... | |
double | xAt (unsigned int i) const |
Implements PlotPointData::xAt(). More... | |
double | yAt (unsigned int i) const |
Implements PlotPointData::yAt(). More... | |
bool | minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Implements PlotPointData::minsMaxes(). More... | |
Public Member Functions inherited from casa::PlotPointData | |
PlotPointData () | |
virtual | ~PlotPointData () |
virtual void | xAndYAt (unsigned int index, double &x, double &y) const |
IMPLEMENTED METHODS //. More... | |
Public Member Functions inherited from casa::PlotData | |
PlotData () | |
virtual | ~PlotData () |
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 429 of file PlotData.h.
|
inline |
X/Y constructors.
Definition at line 433 of file PlotData.h.
|
inline |
Definition at line 435 of file PlotData.h.
|
inline |
Definition at line 437 of file PlotData.h.
|
inline |
Y constructors.
Definition at line 443 of file PlotData.h.
|
inline |
Definition at line 445 of file PlotData.h.
|
inline |
Definition at line 447 of file PlotData.h.
|
inlinevirtual |
Definition at line 451 of file PlotData.h.
|
inlinevirtual |
Implements PlotData::isValid().
Implements casa::PlotData.
Definition at line 455 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
|
inlinevirtual |
Implements PlotPointData::minsMaxes().
Implements casa::PlotPointData.
Definition at line 486 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, and casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
|
inlinevirtual |
Implements PlotData::setDeleteData().
Implements casa::PlotData.
Reimplemented in casa::PlotErrorDataImpl< T >, and casa::PlotMaskedPointDataImpl< T >.
Definition at line 464 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, and casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::setDeleteData(), and casa::PlotErrorDataImpl< T >::setDeleteData().
|
inlinevirtual |
Implements PlotPointData::size().
Implements casa::PlotPointData.
Definition at line 470 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().
|
inlinevirtual |
Implements PlotData::willDeleteData().
Implements casa::PlotData.
Reimplemented in casa::PlotErrorDataImpl< T >, and casa::PlotMaskedPointDataImpl< T >.
Definition at line 458 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData, and casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::willDeleteData(), and casa::PlotErrorDataImpl< T >::willDeleteData().
|
inlinevirtual |
Implements PlotPointData::xAt().
If no x data is given, the index is returned.
Implements casa::PlotPointData.
Definition at line 477 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_xData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
|
inlinevirtual |
Implements PlotPointData::yAt().
Implements casa::PlotPointData.
Definition at line 483 of file PlotData.h.
References casa::PlotPointDataImpl< T >::m_yData.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
|
private |
Definition at line 497 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().
|
private |
Definition at line 498 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().