30 #ifndef COORDINATES_QUALITYCOORDINATE_H
31 #define COORDINATES_QUALITYCOORDINATE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/coordinates/Coordinates/Coordinate.h>
35 #include <casacore/measures/Measures/Quality.h>
36 #include <casacore/casa/Containers/Block.h>
37 #include <casacore/casa/Arrays/Vector.h>
230 const String &fieldName)
const;
Type
This enum lists the types of the derived classes.
formatType
This enum is used for formatting world values into Strings.
virtual Vector< String > worldAxisNames() const
Report the value of the requested attribute.
static Quality::QualityTypes toWorld(Double world)
virtual void makeWorldRelative(Vector< Double > &world) const
Double crval_p
Keep these for subimaging purposes.
virtual Bool toPixel(Vector< Double > &pixel, const Vector< Double > &world) const
virtual ~QualityCoordinate()
Destructor.
Bool toWorld(Double &world, const Double pixel) const
virtual Vector< Double > increment() const
virtual Bool toWorld(Vector< Double > &world, const Vector< Double > &pixel, Bool=True) const
Convert a pixel to a world coordinate or vice versa.
virtual Bool save(RecordInterface &container, const String &fieldName) const
Save the QualityCoordinate into the supplied record using the supplied field name.
Bool toPixel(Double &pixel, const Double world) const
QualityCoordinate & operator=(const QualityCoordinate &other)
Assignment (copy semantics)
virtual uInt nPixelAxes() const
Always returns 1.
virtual String format(String &units, Coordinate::formatType format, Double worldValue, uInt worldAxis, Bool isAbsolute=True, Bool showAsAbsolute=True, Int precision=-1, Bool usePrecForMixed=False) const
Format a QualityCoordinate world value with the common format interface (refer to the base class Coor...
virtual Coordinate * clone() const
Make a copy of the QualityCoordinate using new.
virtual Bool setWorldMixRanges(const IPosition &shape)
Set the world min and max ranges, for use in function toMix, for a lattice of the given shape (for th...
virtual Vector< Double > referencePixel() const
virtual Bool setWorldAxisNames(const Vector< String > &names)
Set the value of the requested attribute.
QualityCoordinate(const Vector< Int > &whichQuality)
The length of whichQuality is the length of the axis, and the values define which quality are in whic...
virtual Matrix< Double > linearTransform() const
virtual Bool setLinearTransform(const Matrix< Double > &xform)
virtual Bool near(const Coordinate &other, Double tol=1e-6) const
Comparison function.
void setQuality(const Vector< Int > &whichQuality)
Set a new vector of Quality values (a vector of Quality::QualityType)
virtual Bool setWorldAxisUnits(const Vector< String > &units)
The set function has no effect as the units must be empty for a QualityCoordinate Always returns True...
QualityCoordinate()
Undefined and inaccessible.
virtual String showType() const
Always returns the String "Quality".
virtual Bool doNearPixel(const Coordinate &other, const Vector< Bool > &thisAxes, const Vector< Bool > &otherAxes, Double tol=1.0e-6) const
Comparison only made for specified axes in this and other Coordinate.
Bool toWorld(Quality::QualityTypes &quality, Int pixel) const
virtual Bool near(const Coordinate &other, const Vector< Int > &excludeAxes, Double tol=1e-6) const
virtual Bool setReferencePixel(const Vector< Double > &refPix)
static Double toWorld(Quality::QualityTypes quality)
Interconvert between world stored as a Double and world stored as a Quality type.
virtual void makePixelRelative(Vector< Double > &pixel) const
Make absolute coordinates relative and vice-versa.
virtual Bool setReferenceValue(const Vector< Double > &refval)
virtual Vector< String > worldAxisUnits() const
QualityCoordinate(const QualityCoordinate &other)
Copy constructor (copy semantics)
virtual Bool setIncrement(const Vector< Double > &inc)
virtual void setDefaultWorldMixRanges()
static QualityCoordinate * restore(const RecordInterface &container, const String &fieldName)
Recover the QualityCoordinate from a record.
virtual Vector< Double > referenceValue() const
virtual uInt nWorldAxes() const
Bool toPixel(Int &pixel, Quality::QualityTypes quality) const
Interconvert between pixel and world as a Quality type.
virtual Coordinate::Type type() const
Returns Coordinates::QUALITY.
virtual void makePixelAbsolute(Vector< Double > &pixel) const
Vector< Int > quality() const
Get the Quality values (Quality::QualityType) that we constructed with into a vector.
virtual void makeWorldAbsolute(Vector< Double > &world) const
String: the storage and methods of handling collections of characters.
const Double e
e and functions thereof:
this file contains all the compiler specific defines
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
bool Bool
Define the standard types used by Casacore.