Default implementation of PlotMaskedPointData using default containers. More...
#include <PlotData.h>
Public Member Functions | |
PlotMaskedPointDataImpl (vector< T > &x, vector< T > &y, vector< bool > &mask, bool shouldDelete=false) | |
X/Y constructors. | |
PlotMaskedPointDataImpl (Vector< T > &x, Vector< T > &y, Vector< bool > &mask, bool shouldDelete=false) | |
PlotMaskedPointDataImpl (T *&x, T *&y, bool *&mask, unsigned int size, bool shouldDel=false) | |
PlotMaskedPointDataImpl (vector< T > &y, vector< bool > &mask, bool shouldDelete=false) | |
Y constructors. | |
PlotMaskedPointDataImpl (Vector< T > &y, Vector< bool > &mask, bool shouldDelete=false) | |
PlotMaskedPointDataImpl (T *&y, bool *&mask, unsigned int size, bool shouldDel=false) | |
~PlotMaskedPointDataImpl () | |
Destructor. | |
bool | willDeleteData () const |
Overrides PlotPointDataImpl::willDeleteData(). | |
void | setDeleteData (bool del=true) |
Overrides PlotPointDataImpl::setDeleteData(). | |
unsigned int | sizeMasked () const |
Implements PlotMaskedPointData::sizeMasked(). | |
unsigned int | sizeUnmasked () const |
Implements PlotMaskedPointData::sizeUnmasked(). | |
bool | maskedAt (unsigned int index) const |
Implements PlotMaskedPointData::maskedAt(). | |
bool | maskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Implements PlotMaskedPointData::maskedMinsMaxes(). | |
bool | unmaskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Implements PlotMaskedPointData::unmaskedMinsMaxes(). | |
Private Member Functions | |
unsigned int | sizeMaskedOrUnmasked (bool masked) const |
Helper for size. | |
bool | getMaskedOrUnmaskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax, bool masked) |
Helper for mins/maxes. | |
Private Attributes | |
vector< bool > * | m_maskVector |
Vector< bool > * | m_maskCVector |
bool * | m_maskArray |
unsigned int | m_maskArraySize |
bool | m_shouldDeleteMask |
Default implementation of PlotMaskedPointData using default containers.
Definition at line 556 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl | ( | vector< T > & | x, | |
vector< T > & | y, | |||
vector< bool > & | mask, | |||
bool | shouldDelete = false | |||
) | [inline] |
X/Y constructors.
Definition at line 561 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl | ( | Vector< T > & | x, | |
Vector< T > & | y, | |||
Vector< bool > & | mask, | |||
bool | shouldDelete = false | |||
) | [inline] |
Definition at line 566 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl | ( | T *& | x, | |
T *& | y, | |||
bool *& | mask, | |||
unsigned int | size, | |||
bool | shouldDel = false | |||
) | [inline] |
Definition at line 571 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl | ( | vector< T > & | y, | |
vector< bool > & | mask, | |||
bool | shouldDelete = false | |||
) | [inline] |
Y constructors.
Definition at line 580 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl | ( | Vector< T > & | y, | |
Vector< bool > & | mask, | |||
bool | shouldDelete = false | |||
) | [inline] |
Definition at line 585 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl | ( | T *& | y, | |
bool *& | mask, | |||
unsigned int | size, | |||
bool | shouldDel = false | |||
) | [inline] |
Definition at line 590 of file PlotData.h.
casa::PlotMaskedPointDataImpl< T >::~PlotMaskedPointDataImpl | ( | ) | [inline] |
Destructor.
Definition at line 598 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::m_maskArray, casa::PlotMaskedPointDataImpl< T >::m_maskCVector, casa::PlotMaskedPointDataImpl< T >::m_maskVector, and casa::PlotMaskedPointDataImpl< T >::m_shouldDeleteMask.
bool casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes | ( | double & | xMin, | |
double & | xMax, | |||
double & | yMin, | |||
double & | yMax, | |||
bool | masked | |||
) | [inline, private] |
Helper for mins/maxes.
Definition at line 666 of file PlotData.h.
References casa::PlotPointDataImpl< T >::isValid(), casa::PlotMaskedPointDataImpl< T >::m_maskArray, casa::PlotMaskedPointDataImpl< T >::m_maskCVector, casa::PlotMaskedPointDataImpl< T >::m_maskVector, casa::PlotMaskedPointDataImpl< T >::maskedAt(), casa::PlotPointDataImpl< T >::minsMaxes(), casa::PlotPointDataImpl< T >::size(), casa::PlotPointDataImpl< T >::xAt(), and casa::PlotPointDataImpl< T >::yAt().
Referenced by casa::PlotMaskedPointDataImpl< T >::maskedMinsMaxes(), and casa::PlotMaskedPointDataImpl< T >::unmaskedMinsMaxes().
bool casa::PlotMaskedPointDataImpl< T >::maskedAt | ( | unsigned int | index | ) | const [inline, virtual] |
Implements PlotMaskedPointData::maskedAt().
Implements casa::PlotMaskedPointData.
Definition at line 623 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::m_maskArray, casa::PlotMaskedPointDataImpl< T >::m_maskCVector, and casa::PlotMaskedPointDataImpl< T >::m_maskVector.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
bool casa::PlotMaskedPointDataImpl< T >::maskedMinsMaxes | ( | double & | xMin, | |
double & | xMax, | |||
double & | yMin, | |||
double & | yMax | |||
) | [inline, virtual] |
Implements PlotMaskedPointData::maskedMinsMaxes().
Implements casa::PlotMaskedPointData.
Definition at line 631 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
void casa::PlotMaskedPointDataImpl< T >::setDeleteData | ( | bool | del = true |
) | [inline, virtual] |
Overrides PlotPointDataImpl::setDeleteData().
Reimplemented from casa::PlotPointDataImpl< T >.
Definition at line 611 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::m_shouldDeleteMask.
unsigned int casa::PlotMaskedPointDataImpl< T >::sizeMasked | ( | ) | const [inline, virtual] |
Implements PlotMaskedPointData::sizeMasked().
Implements casa::PlotMaskedPointData.
Definition at line 617 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked().
unsigned int casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked | ( | bool | masked | ) | const [inline, private] |
Helper for size.
Definition at line 648 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::m_maskArray, casa::PlotMaskedPointDataImpl< T >::m_maskArraySize, casa::PlotMaskedPointDataImpl< T >::m_maskCVector, casa::PlotMaskedPointDataImpl< T >::m_maskVector, casacore::min(), and casa::PlotPointDataImpl< T >::size().
Referenced by casa::PlotMaskedPointDataImpl< T >::sizeMasked(), and casa::PlotMaskedPointDataImpl< T >::sizeUnmasked().
unsigned int casa::PlotMaskedPointDataImpl< T >::sizeUnmasked | ( | ) | const [inline, virtual] |
Implements PlotMaskedPointData::sizeUnmasked().
Implements casa::PlotMaskedPointData.
Definition at line 620 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked().
bool casa::PlotMaskedPointDataImpl< T >::unmaskedMinsMaxes | ( | double & | xMin, | |
double & | xMax, | |||
double & | yMin, | |||
double & | yMax | |||
) | [inline, virtual] |
Implements PlotMaskedPointData::unmaskedMinsMaxes().
Implements casa::PlotMaskedPointData.
Definition at line 636 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes().
bool casa::PlotMaskedPointDataImpl< T >::willDeleteData | ( | ) | const [inline, virtual] |
Overrides PlotPointDataImpl::willDeleteData().
Reimplemented from casa::PlotPointDataImpl< T >.
Definition at line 607 of file PlotData.h.
References casa::PlotMaskedPointDataImpl< T >::m_shouldDeleteMask.
bool* casa::PlotMaskedPointDataImpl< T >::m_maskArray [private] |
Definition at line 643 of file PlotData.h.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes(), casa::PlotMaskedPointDataImpl< T >::maskedAt(), casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked(), and casa::PlotMaskedPointDataImpl< T >::~PlotMaskedPointDataImpl().
unsigned int casa::PlotMaskedPointDataImpl< T >::m_maskArraySize [private] |
Definition at line 644 of file PlotData.h.
Referenced by casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked().
Vector<bool>* casa::PlotMaskedPointDataImpl< T >::m_maskCVector [private] |
Definition at line 642 of file PlotData.h.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes(), casa::PlotMaskedPointDataImpl< T >::maskedAt(), casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked(), and casa::PlotMaskedPointDataImpl< T >::~PlotMaskedPointDataImpl().
vector<bool>* casa::PlotMaskedPointDataImpl< T >::m_maskVector [private] |
Definition at line 641 of file PlotData.h.
Referenced by casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes(), casa::PlotMaskedPointDataImpl< T >::maskedAt(), casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked(), and casa::PlotMaskedPointDataImpl< T >::~PlotMaskedPointDataImpl().
bool casa::PlotMaskedPointDataImpl< T >::m_shouldDeleteMask [private] |
Definition at line 645 of file PlotData.h.
Referenced by casa::PlotMaskedPointDataImpl< T >::setDeleteData(), casa::PlotMaskedPointDataImpl< T >::willDeleteData(), and casa::PlotMaskedPointDataImpl< T >::~PlotMaskedPointDataImpl().