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

#include <CanvasCurve.h>

Public Member Functions

 CanvasCurve ()
 
 CanvasCurve (CurveData curveData, ErrorData errorData, QString legend, QColor curveColor, int curveType, double beamAngle, double beamArea, casacore::SpectralCoordinate coord)
 
QColor getColor () const
 
void setColor (QColor color)
 
QString getLegend () const
 
void setLegend (const QString &legend)
 
int getCurveType () const
 
CurveData getCurveData ()
 
casacore::Vector< float > getXValues () const
 
casacore::Vector< float > getYValues () const
 
CurveData getErrorData ()
 
QString getToolTip (double x, double y, const QString &xUnit, const QString &yUnit) const
 
void getMinMax (casacore::Double &xmin, casacore::Double &xmax, casacore::Double &ymin, casacore::Double &ymax, bool plotError) const
 
std::pair< double, double > getRangeFor (double xMin, double xMax, casacore::Bool &exists)
 
void scaleYValues (const QString &oldDisplayUnits, const QString &yUnitDisplay, const QString &xUnits)
 
double convertValue (double value, double freqValue, const QString &oldDisplayUnits, const QString &yUnitDisplay, const QString &xUnits, casacore::SpectralCoordinate &coord)
 
virtual ~CanvasCurve ()
 

Private Member Functions

casacore::Vector< float > getErrorValues () const
 
double getMaxY () const
 
double getMaxError () const
 
void storeData (const QString &oldUnits)
 
void setYValues (const casacore::Vector< float > &yValues)
 
void setErrorValues (const casacore::Vector< float > &errorValues)
 
double calculateRelativeError (double minValue, double maxValue) const
 
void calculateRelativeErrors (double &errorX, double &errorY) const
 

Private Attributes

QColor curveColor
 
QString legend
 
CurveData curveData
 
ErrorData errorData
 
QString maxUnits
 
double maxValue
 
double maxErrorValue
 
double beamAngle
 
double beamArea
 
int curveType
 
casacore::SpectralCoordinate spectralCoordinate
 

Detailed Description

Definition at line 45 of file CanvasCurve.h.

Constructor & Destructor Documentation

casa::CanvasCurve::CanvasCurve ( )
casa::CanvasCurve::CanvasCurve ( CurveData  curveData,
ErrorData  errorData,
QString  legend,
QColor  curveColor,
int  curveType,
double  beamAngle,
double  beamArea,
casacore::SpectralCoordinate  coord 
)
virtual casa::CanvasCurve::~CanvasCurve ( )
virtual

Member Function Documentation

double casa::CanvasCurve::calculateRelativeError ( double  minValue,
double  maxValue 
) const
private
void casa::CanvasCurve::calculateRelativeErrors ( double &  errorX,
double &  errorY 
) const
private
double casa::CanvasCurve::convertValue ( double  value,
double  freqValue,
const QString &  oldDisplayUnits,
const QString &  yUnitDisplay,
const QString &  xUnits,
casacore::SpectralCoordinate coord 
)
QColor casa::CanvasCurve::getColor ( ) const
CurveData casa::CanvasCurve::getCurveData ( )
int casa::CanvasCurve::getCurveType ( ) const
CurveData casa::CanvasCurve::getErrorData ( )
casacore::Vector<float> casa::CanvasCurve::getErrorValues ( ) const
private
QString casa::CanvasCurve::getLegend ( ) const
double casa::CanvasCurve::getMaxError ( ) const
private
double casa::CanvasCurve::getMaxY ( ) const
private
void casa::CanvasCurve::getMinMax ( casacore::Double xmin,
casacore::Double xmax,
casacore::Double ymin,
casacore::Double ymax,
bool  plotError 
) const
std::pair<double,double> casa::CanvasCurve::getRangeFor ( double  xMin,
double  xMax,
casacore::Bool exists 
)
QString casa::CanvasCurve::getToolTip ( double  x,
double  y,
const QString &  xUnit,
const QString &  yUnit 
) const
casacore::Vector<float> casa::CanvasCurve::getXValues ( ) const
casacore::Vector<float> casa::CanvasCurve::getYValues ( ) const
void casa::CanvasCurve::scaleYValues ( const QString &  oldDisplayUnits,
const QString &  yUnitDisplay,
const QString &  xUnits 
)
void casa::CanvasCurve::setColor ( QColor  color)
void casa::CanvasCurve::setErrorValues ( const casacore::Vector< float > &  errorValues)
private
void casa::CanvasCurve::setLegend ( const QString &  legend)
void casa::CanvasCurve::setYValues ( const casacore::Vector< float > &  yValues)
private
void casa::CanvasCurve::storeData ( const QString &  oldUnits)
private

Member Data Documentation

double casa::CanvasCurve::beamAngle
private

Definition at line 87 of file CanvasCurve.h.

double casa::CanvasCurve::beamArea
private

Definition at line 88 of file CanvasCurve.h.

QColor casa::CanvasCurve::curveColor
private

Definition at line 80 of file CanvasCurve.h.

CurveData casa::CanvasCurve::curveData
private

Definition at line 82 of file CanvasCurve.h.

int casa::CanvasCurve::curveType
private

Definition at line 89 of file CanvasCurve.h.

ErrorData casa::CanvasCurve::errorData
private

Definition at line 83 of file CanvasCurve.h.

QString casa::CanvasCurve::legend
private

Definition at line 81 of file CanvasCurve.h.

double casa::CanvasCurve::maxErrorValue
private

Definition at line 86 of file CanvasCurve.h.

QString casa::CanvasCurve::maxUnits
private

Definition at line 84 of file CanvasCurve.h.

double casa::CanvasCurve::maxValue
private

Definition at line 85 of file CanvasCurve.h.

casacore::SpectralCoordinate casa::CanvasCurve::spectralCoordinate
private

Definition at line 90 of file CanvasCurve.h.


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