casa
5.7.0-16
|
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 (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 |
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.
casa::SliceStatistics::SliceStatistics | ( | SliceStatisticsFactory::AxisXUnits | units | ) |
|
virtual |
|
pure virtual |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
double casa::SliceStatistics::convertArcUnits | ( | double | value | ) | 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 |
|
pure virtual |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
|
static |
|
pure virtual |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
|
pure virtual |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
|
pure virtual |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
|
pure virtual |
Implemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
|
protected |
|
virtual |
Reimplemented in casa::SliceStatisticsPosition, and casa::SliceStatisticsDistance.
|
protected |
void casa::SliceStatistics::setXUnits | ( | SliceStatisticsFactory::AxisXUnits | units | ) |
|
pure virtual |
Implemented in casa::SliceStatisticsDistance, and casa::SliceStatisticsPosition.
|
protected |
Definition at line 79 of file SliceStatistics.h.