casa
$Rev:20696$
|
Computes the angle and distance for a single line segment in the slice. More...
#include <SliceStatistics.h>
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 |
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.
virtual casa::SliceStatistics::~SliceStatistics | ( | ) | [virtual] |
virtual void casa::SliceStatistics::adjustStart | ( | QVector< double > & | values, |
double | start | ||
) | const [pure virtual] |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
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] |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
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] |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
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] |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
virtual double casa::SliceStatistics::getLength | ( | double | value1World, |
double | value2World, | ||
double | value1Pixel, | ||
double | value2Pixel | ||
) | const [pure virtual] |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
virtual QString casa::SliceStatistics::getLengthLabel | ( | ) | const [pure virtual] |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
virtual double casa::SliceStatistics::getStart | ( | double | value1World, |
double | value2World, | ||
double | value1Pixel, | ||
double | value2Pixel | ||
) | const [pure virtual] |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
QString casa::SliceStatistics::getUnitText | ( | ) | const [protected] |
virtual QVector<double> casa::SliceStatistics::interpolate | ( | double | start, |
double | end, | ||
const QVector< double > & | values | ||
) | const [virtual] |
Reimplemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
double casa::SliceStatistics::radiansToArcseconds | ( | double | rad | ) | const [protected] |
virtual void casa::SliceStatistics::storeIncrement | ( | double * | incr, |
QVector< double > & | values, | ||
int | index | ||
) | const [pure virtual] |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
Definition at line 75 of file SliceStatistics.h.