casacore
|
Base for specific measure conversions. More...
#include <MCBase.h>
Public Types | |
enum | Routes { N_Routes } |
Each derived class should have a list of routines to be called: More... | |
Public Member Functions | |
virtual | ~MCBase () |
virtual void | getConvert (MConvertBase &mc, const MRBase &inref, const MRBase &outref)=0 |
All these functions are called by Measure::Convert classes only. More... | |
virtual void | initConvert (uInt which, MConvertBase &mc)=0 |
Create help structures for Measure conversion routines. More... | |
virtual void | clearConvert ()=0 |
Delete the pointers used in the MeasConvert help structure cache. More... | |
virtual void | doConvert (MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)=0 |
Routine to convert a Measure from one reference frame to another. More... | |
Static Protected Member Functions | |
static void | makeState (uInt *state, const uInt ntyp, const uInt nrout, const uInt list[][3]) |
The following routines create a state transition matrix from a list of all defined transitions. More... | |
static String | showState (uInt *state, const uInt ntyp, const uInt nrout, const uInt list[][3]) |
Return a fromatted String with matrix information (based on < 100 types) More... | |
Static Private Member Functions | |
static Bool | findState (uInt &len, uInt *state, uInt *mcnt, Bool &okall, Bool *visit, const uInt *tcnt, const uInt *tree, const uInt &in, const uInt &out, const uInt ntyp, const uInt nrout, const uInt list[][3]) |
Routine to find the shortest route between two points. More... | |
Base for specific measure conversions.
Internal
Measure, Conversion and Base
MCBase forms the base for the individual state machines doing actual conversions between frames. (see e.g. MCEpoch)
It also has a static routine to calculate the state transition table based on a list of transitions. The makeState() method find the shortest route (weighted if necessary) for a given list of state transitions.
The user of the Measure classes has no direct interaction with this class.
Convert (with all steps explicit) a UTC to an IAT time.
To get a static state transition matrix:
To have specific conversion bases
|
virtual |
|
pure virtual |
Delete the pointers used in the MeasConvert help structure cache.
Implemented in casacore::MCDirection, casacore::MCEarthMagnetic, casacore::MCuvw, casacore::MCBaseline, casacore::MCEpoch, casacore::MCFrequency, casacore::MCRadialVelocity, casacore::MCDoppler, and casacore::MCPosition.
|
pure virtual |
Routine to convert a Measure from one reference frame to another.
Implemented in casacore::MCDirection, casacore::MCEarthMagnetic, casacore::MCuvw, casacore::MCBaseline, casacore::MCEpoch, casacore::MCFrequency, casacore::MCRadialVelocity, casacore::MCDoppler, and casacore::MCPosition.
|
staticprivate |
Routine to find the shortest route between two points.
|
pure virtual |
All these functions are called by Measure::Convert classes only.
Create conversion state machine list
Implemented in casacore::MCDirection, casacore::MCEarthMagnetic, casacore::MCuvw, casacore::MCBaseline, casacore::MCEpoch, casacore::MCFrequency, casacore::MCRadialVelocity, casacore::MCDoppler, and casacore::MCPosition.
|
pure virtual |
Create help structures for Measure conversion routines.
Implemented in casacore::MCDirection, casacore::MCEarthMagnetic, casacore::MCuvw, casacore::MCBaseline, casacore::MCEpoch, casacore::MCFrequency, casacore::MCRadialVelocity, casacore::MCDoppler, and casacore::MCPosition.
|
staticprotected |
The following routines create a state transition matrix from a list
of all defined transitions.
It uses the following information:
Routine to make the transition table if necessary
|
staticprotected |
Return a fromatted String with matrix information (based on < 100 types)