Go to the documentation of this file.
29 #ifndef MEASURES_MPOSITION_H
30 #define MEASURES_MPOSITION_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/measures/Measures/MeasBase.h>
35 #include <casacore/measures/Measures/MeasRef.h>
36 #include <casacore/casa/Quanta/MVPosition.h>
186 const uInt *&typ)
const;
MPosition(const MVPosition &dt, const MPosition::Ref &rf)
Types
Each derived class should have a Types enumeration, specifying the recognised frame types.
MVPosition MVType
Measure value container for this class (i.e.
static MPosition::Types getType(const String &in)
this one throws an exception for an unrecognized String
ArrayMeasColumn< MPosition > ArrayColumn
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
Quantum< Vector< Double > > get(const Unit &inunit) const
Get Measure data.
static MPosition::Types castType(uInt tp)
Translate reference code.
MPosition(const Quantity &dt, const Quantity &dt1, const Quantity &dt2, const MPosition::Ref &rf)
static const String & showMe()
static Bool getType(MPosition::Types &tp, const String &in)
Translate string to reference code.
MPosition(const MeasValue *dt)
MPosition(const MVPosition &dt)
Create from data and reference.
MeasRef< MPosition > Ref
Measure reference (i.e.
MCPosition MCType
Measure conversion routines for this class (i.e.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
MPosition(const Quantity &dt0, const Quantum< Vector< Double > > &dt, MPosition::Types rf)
static void checkMyTypes()
MPosition(const MPosition &)
static uInt myType()
Get my type (as Register)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
ScalarMeasColumn< MPosition > ScalarColumn
Measure table Columns (e.g., MPosition::ScalarColumn)
this file contains all the compiler specific defines
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
Quantum< Vector< Double > > getAngle() const
static const String & showType(uInt tp)
MPosition(const Measure *dt)
MPosition(const Quantity &dt, const Quantity &dt1, const Quantity &dt2, MPosition::Types rf)
MPosition(const MVPosition &dt, MPosition::Types rf)
MPosition & operator=(const MPosition &)
MPosition(const Quantity &dt0, const Quantum< Vector< Double > > &dt)
Quantum< Vector< Double > > getAngle(const Unit &inunit) const
String: the storage and methods of handling collections of characters.
virtual const String & getDefaultType() const
Get the default reference type.
MPosition(const Quantity &dt, const Quantity &dt1, const Quantity &dt2)
bool Bool
Define the standard types used by Casacore.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
static void assure(const Measure &in)
virtual const String & tellMe() const
Tell me your type.
MPosition(const Quantity &dt0, const Quantum< Vector< Double > > &dt, const MPosition::Ref &rf)
static const String & showType(MPosition::Types tp)
Bool giveMe(MPosition::Ref &mr, const String &in)
MeasConvert< MPosition > Convert
Measure Convert (i.e.
MPosition()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
virtual Measure * clone() const
Make copy.
Types
Types of known MPositions Warning: The order defines the order in the translation matrix FromTo in t...