casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
casa::SliceStatistics Class Reference

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

List of all members.

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 (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 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 45 of file SliceStatistics.h.


Constructor & Destructor Documentation


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 ( 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 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]
virtual void casa::SliceStatistics::storeIncrement ( double *  incr,
QVector< double > &  values,
int  index 
) const [pure virtual]

Member Data Documentation

Definition at line 75 of file SliceStatistics.h.


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