casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casa::SliceStatistics Class Referenceabstract

Computes the angle and distance for a single line segment in the slice. More...

#include <SliceStatistics.h>

Inheritance diagram for casa::SliceStatistics:
casa::SliceStatisticsDistance casa::SliceStatisticsPosition

Public Member Functions

 SliceStatistics (SliceStatisticsFactory::AxisXUnits units)
 
void setXUnits (SliceStatisticsFactory::AxisXUnits units)
 
double getAngle (std::pair< int, int > pixelStart, std::pair< int, int > pixelEnd) const
 
virtual double getLength (std::pair< double, double > worldStart, std::pair< double, double > worldEnd, std::pair< int, int > pixelStart, std::pair< int, int > pixelEnd) const =0
 
virtual double getLength (double value1World, double value2World, double value1Pixel, double value2Pixel) const =0
 
virtual double getStart (double value1World, double value2World, double value1Pixel, double value2Pixel) const =0
 
virtual double getEnd (double value1World, double value2World, double value1Pixel, double value2Pixel) const =0
 
virtual QString getLengthLabel () const =0
 
virtual QVector< double > interpolate (double start, double end, const QVector< double > &values) const
 
virtual void adjustStart (QVector< double > &values, double start) const =0
 
QVector< double > convertArcUnits (QVector< double > arcseconds) const
 
double convertArcUnits (double value) const
 
virtual QVector< double > fromResults (casacore::Record *record) const =0
 
virtual void storeIncrement (double *incr, QVector< double > &values, int index) const =0
 
virtual ~SliceStatistics ()
 

Static Public Member Functions

static QVector< double > getFromArray (const casacore::Array< float > &source)
 

Protected Member Functions

QString getUnitText () const
 
double radiansToArcseconds (double rad) const
 

Protected Attributes

SliceStatisticsFactory::AxisXUnits xUnits
 

Detailed Description

Computes the angle and distance for a single line segment in the slice.

Subclasses are used for computation depending on what is displayed on the X-Axis of the slice and on the units of the X-Axis,

Definition at line 49 of file SliceStatistics.h.

Constructor & Destructor Documentation

casa::SliceStatistics::SliceStatistics ( SliceStatisticsFactory::AxisXUnits  units)
virtual casa::SliceStatistics::~SliceStatistics ( )
virtual

Member Function Documentation

virtual void casa::SliceStatistics::adjustStart ( QVector< double > &  values,
double  start 
) const
pure virtual
QVector<double> casa::SliceStatistics::convertArcUnits ( QVector< double >  arcseconds) const
double casa::SliceStatistics::convertArcUnits ( double  value) const
virtual QVector<double> casa::SliceStatistics::fromResults ( casacore::Record record) const
pure virtual
double casa::SliceStatistics::getAngle ( std::pair< int, int >  pixelStart,
std::pair< int, int >  pixelEnd 
) const
virtual double casa::SliceStatistics::getEnd ( double  value1World,
double  value2World,
double  value1Pixel,
double  value2Pixel 
) const
pure virtual
static QVector<double> casa::SliceStatistics::getFromArray ( const casacore::Array< float > &  source)
static
virtual double casa::SliceStatistics::getLength ( std::pair< double, double >  worldStart,
std::pair< double, double >  worldEnd,
std::pair< int, int >  pixelStart,
std::pair< int, int >  pixelEnd 
) const
pure virtual
virtual double casa::SliceStatistics::getLength ( double  value1World,
double  value2World,
double  value1Pixel,
double  value2Pixel 
) const
pure virtual
virtual QString casa::SliceStatistics::getLengthLabel ( ) const
pure virtual
virtual double casa::SliceStatistics::getStart ( double  value1World,
double  value2World,
double  value1Pixel,
double  value2Pixel 
) const
pure virtual
QString casa::SliceStatistics::getUnitText ( ) const
protected
virtual QVector<double> casa::SliceStatistics::interpolate ( double  start,
double  end,
const QVector< double > &  values 
) const
virtual
double casa::SliceStatistics::radiansToArcseconds ( double  rad) const
protected
void casa::SliceStatistics::setXUnits ( SliceStatisticsFactory::AxisXUnits  units)
virtual void casa::SliceStatistics::storeIncrement ( double *  incr,
QVector< double > &  values,
int  index 
) const
pure virtual

Member Data Documentation

SliceStatisticsFactory::AxisXUnits casa::SliceStatistics::xUnits
protected

Definition at line 79 of file SliceStatistics.h.


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