casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::PlotPointDataImpl< T > Class Template Reference

Default implementation of PlotPointData that supports raw arrays, vectors, and CASA Vectors. More...

#include <PlotData.h>

Inheritance diagram for casa::PlotPointDataImpl< T >:
casa::PlotPointData casa::PlotData casa::PlotErrorDataImpl< T > casa::PlotMaskedPointDataImpl< T > casa::PlotScalarErrorDataImpl< T >

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
 

Detailed Description

template<class T>
class casa::PlotPointDataImpl< T >

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.

Constructor & Destructor Documentation

template<class T >
casa::PlotPointDataImpl< T >::PlotPointDataImpl ( std::vector< T > &  x,
std::vector< T > &  y,
bool  shouldDelete = false 
)
inline

X/Y constructors.

Definition at line 433 of file PlotData.h.

template<class T >
casa::PlotPointDataImpl< T >::PlotPointDataImpl ( casacore::Vector< T > &  x,
casacore::Vector< T > &  y,
bool  shouldDelete = false 
)
inline

Definition at line 435 of file PlotData.h.

template<class T >
casa::PlotPointDataImpl< T >::PlotPointDataImpl ( T *&  x,
T *&  y,
unsigned int  size,
bool  shouldDel = false 
)
inline

Definition at line 437 of file PlotData.h.

template<class T >
casa::PlotPointDataImpl< T >::PlotPointDataImpl ( std::vector< T > &  y,
bool  shouldDelete = false 
)
inline

Y constructors.

Definition at line 443 of file PlotData.h.

template<class T >
casa::PlotPointDataImpl< T >::PlotPointDataImpl ( casacore::Vector< T > &  y,
bool  shouldDelete = false 
)
inline

Definition at line 445 of file PlotData.h.

template<class T >
casa::PlotPointDataImpl< T >::PlotPointDataImpl ( T *&  y,
unsigned int  size,
bool  shouldDel = false 
)
inline

Definition at line 447 of file PlotData.h.

template<class T >
virtual casa::PlotPointDataImpl< T >::~PlotPointDataImpl ( )
inlinevirtual

Definition at line 451 of file PlotData.h.

Member Function Documentation

template<class T >
bool casa::PlotPointDataImpl< T >::isValid ( ) const
inlinevirtual
template<class T >
bool casa::PlotPointDataImpl< T >::minsMaxes ( double &  xMin,
double &  xMax,
double &  yMin,
double &  yMax 
)
inlinevirtual
template<class T >
virtual void casa::PlotPointDataImpl< T >::setDeleteData ( bool  del = true)
inlinevirtual
template<class T >
unsigned int casa::PlotPointDataImpl< T >::size ( ) const
inlinevirtual
template<class T >
virtual bool casa::PlotPointDataImpl< T >::willDeleteData ( ) const
inlinevirtual
template<class T >
double casa::PlotPointDataImpl< T >::xAt ( unsigned int  i) const
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().

template<class T >
double casa::PlotPointDataImpl< T >::yAt ( unsigned int  i) const
inlinevirtual

Member Data Documentation

template<class T >
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_xData
private
template<class T >
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_yData
private

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