casacore
|
Reference frame for physical measures. More...
#include <MeasRef.h>
Classes | |
class | RefRep |
Representation class. More... | |
Public Member Functions | |
MeasRef () | |
Construct an empty MeasRef. More... | |
MeasRef (const MeasRef< Ms > &other) | |
Copy constructor. More... | |
MeasRef & | operator= (const MeasRef< Ms > &other) |
Copy assignment. More... | |
MeasRef (const uInt tp) | |
Construct a reference with specified type, offset and Frame. More... | |
MeasRef (const uInt tp, const Ms &ep) | |
MeasRef (const uInt tp, const MeasFrame &mf) | |
MeasRef (const uInt tp, const MeasFrame &mf, const Ms &ep) | |
~MeasRef () | |
Bool | operator== (const MeasRef< Ms > &other) const |
Check if same MeasRef. More... | |
Bool | operator!= (const MeasRef< Ms > &other) const |
Check if unequal MeasRef. More... | |
virtual Bool | empty () const |
Check if empty reference. More... | |
virtual uInt | getType () const |
Return the type of the reference Caution: the following should really be (and should be interpreted as), but cannot create a virtual function: Ms::Types getType(); More... | |
virtual MeasFrame & | getFrame () |
Return the frame of reference. More... | |
virtual const Measure * | offset () const |
Return the offset (or 0) More... | |
virtual void | setType (uInt tp) |
Set the type. More... | |
virtual void | set (uInt tp) |
void | set (const Ms &ep) |
Set a new offset. More... | |
void | set (const Measure &ep) |
Set a new offset (for internal use only) More... | |
virtual void | set (const MeasFrame &mf) |
Set a new frame. More... | |
virtual void | print (ostream &os) const |
Print a Measure. More... | |
Public Member Functions inherited from casacore::MRBase | |
virtual | ~MRBase () |
Static Public Member Functions | |
static const String & | showMe () |
Check the type of Measure the reference can be used for. More... | |
static const MeasFrame & | framePosition (MRBase &ref1, MRBase &ref2) |
Return the first frame which has specified information. More... | |
static const MeasFrame & | frameEpoch (MRBase &ref1, MRBase &ref2) |
static const MeasFrame & | frameDirection (MRBase &ref1, MRBase &ref2) |
static const MeasFrame & | frameRadialVelocity (MRBase &ref1, MRBase &ref2) |
static const MeasFrame & | frameComet (MRBase &ref1, MRBase &ref2) |
Private Member Functions | |
void | create () |
Create an instance of MeasRef. More... | |
MeasRef | copy () |
Copy an instance. More... | |
Private Attributes | |
CountedPtr< RefRep > | rep_p |
Reference frame for physical measures.
Public interface
From Measure and Reference frame
MeasRef specifies the reference frame for a physical quantity specified by one of the derived Measure classes (e.g. MEpoch). It is derived from MRBase, which describes the class.
MeasRef containres are created using the Measure::Ref
class (e.g. MDirection::Ref
).
See Measure for an example
To gather all reference frame information in the one class.
casacore::MeasRef< Ms >::MeasRef | ( | ) |
Construct an empty MeasRef.
I.e. it will have a standard, default, type; no offsets and Frame.
casacore::MeasRef< Ms >::MeasRef | ( | const MeasRef< Ms > & | other | ) |
Copy constructor.
|
explicit |
Construct a reference with specified type, offset and Frame.
Caution: The following should really be (and should still be called as), but compiler does not accept it, due to incomplete definition when called in MeasBase:
MeasRef(Ms::Types tp);
Furthermore, default arguments are not supported with templated classes:
casacore::MeasRef< Ms >::MeasRef | ( | const uInt | tp, |
const Ms & | ep | ||
) |
casacore::MeasRef< Ms >::MeasRef | ( | const uInt | tp, |
const MeasFrame & | mf | ||
) |
casacore::MeasRef< Ms >::MeasRef | ( | const uInt | tp, |
const MeasFrame & | mf, | ||
const Ms & | ep | ||
) |
casacore::MeasRef< Ms >::~MeasRef | ( | ) |
|
private |
Copy an instance.
|
private |
Create an instance of MeasRef.
|
virtual |
Check if empty reference.
Implements casacore::MRBase.
|
static |
|
static |
|
static |
|
static |
Return the first frame which has specified information.
Checking is done in argument order.
|
static |
|
virtual |
Return the frame of reference.
Implements casacore::MRBase.
|
virtual |
Return the type of the reference
Caution: the following should really be (and should be interpreted as), but cannot create a virtual function:
Ms::Types getType();
Implements casacore::MRBase.
Referenced by casacore::SDPointingHandler::directionRefType().
|
virtual |
Return the offset (or 0)
Implements casacore::MRBase.
Bool casacore::MeasRef< Ms >::operator!= | ( | const MeasRef< Ms > & | other | ) | const |
Check if unequal MeasRef.
MeasRef& casacore::MeasRef< Ms >::operator= | ( | const MeasRef< Ms > & | other | ) |
Copy assignment.
Bool casacore::MeasRef< Ms >::operator== | ( | const MeasRef< Ms > & | other | ) | const |
Check if same MeasRef.
|
virtual |
Print a Measure.
Implements casacore::MRBase.
|
virtual |
Implements casacore::MRBase.
void casacore::MeasRef< Ms >::set | ( | const Ms & | ep | ) |
Set a new offset.
void casacore::MeasRef< Ms >::set | ( | const Measure & | ep | ) |
Set a new offset (for internal use only)
|
virtual |
Set a new frame.
Implements casacore::MRBase.
|
virtual |
Set the type.
Caution: the following should really be (and should be called as), but compiler does not accept it, since a virtual function:
void set(Ms::Types tp);
Implements casacore::MRBase.
|
static |
Check the type of Measure the reference can be used for.
|
private |