27 #ifndef SLICESTATISTICS_H_
28 #define SLICESTATISTICS_H_
53 double getAngle( std::pair<int,int> pixelStart,
54 std::pair<int,int> pixelEnd )
const;
55 virtual double getLength(std::pair<double,double> worldStart,
56 std::pair<double,double> worldEnd,
57 std::pair<int,int> pixelStart,
58 std::pair<int,int> pixelEnd )
const = 0;
59 virtual double getLength(
double value1World,
double value2World,
60 double value1Pixel,
double value2Pixel )
const = 0;
61 virtual double getStart(
double value1World,
double value2World,
62 double value1Pixel,
double value2Pixel )
const = 0;
63 virtual double getEnd(
double value1World,
double value2World,
64 double value1Pixel,
double value2Pixel )
const = 0;
static QVector< double > getFromArray(const casacore::Array< float > &source)
double getAngle(std::pair< int, int > pixelStart, std::pair< int, int > pixelEnd) const
SliceStatistics(SliceStatisticsFactory::AxisXUnits units)
virtual double getStart(double value1World, double value2World, double value1Pixel, double value2Pixel) const =0
const_iterator end() const
virtual void adjustStart(QVector< double > &values, double start) const =0
virtual double getEnd(double value1World, double value2World, double value1Pixel, double value2Pixel) const =0
virtual QVector< double > interpolate(double start, double end, const QVector< double > &values) const
virtual QString getLengthLabel() const =0
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
A hierarchical collection of named fields of various types.
virtual void storeIncrement(double *incr, QVector< double > &values, int index) const =0
template <class T, class U> class vector;
double radiansToArcseconds(double rad) const
Computes the angle and distance for a single line segment in the slice.
virtual ~SliceStatistics()
SliceStatisticsFactory::AxisXUnits xUnits
QVector< double > convertArcUnits(QVector< double > arcseconds) const
virtual QVector< double > fromResults(casacore::Record *record) const =0
QString getUnitText() const
void setXUnits(SliceStatisticsFactory::AxisXUnits units)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.