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>
43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
186 const uInt *&typ)
const;
Types
Each derived class should have a Types enumeration, specifying the recognised frame types.
MVPosition MVType
Measure value container for this class (i.e.
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)
A Measure: position on Earth.
Quantum< Vector< Double > > get(const Unit &inunit) const
Get Measure data.
static MPosition::Types castType(uInt tp)
Translate reference code.
Physical quantities within reference frame.
static const String & showMe()
static Bool getType(MPosition::Types &tp, const String &in)
Translate string to reference code.
MeasRef< MPosition > Ref
Measure reference (i.e.
MCPosition MCType
Measure conversion routines for this class (i.e.
Base class for values in a Measure.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
static void checkMyTypes()
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
MPosition & operator=(const MPosition &)
Base class for all measures.
String: the storage and methods of handling collections of characters.
virtual const String & getDefaultType() const
Get the default reference type.
bool Bool
Define the standard types used by Casacore.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
MPosition conversion routines.
static void assure(const Measure &in)
virtual const String & tellMe() const
Tell me your type.
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...