MCDirection.h

Classes

MCDirection -- MDirection conversion routines (full description)

class MCDirection : public MCBase

Types

enum Routes

GAL_J2000
GAL_B1950
J2000_GAL
B1950_GAL
J2000_B1950
B1950_J2000
J2000_JMEAN
B1950_BMEAN
JMEAN_J2000
JMEAN_JTRUE
BMEAN_B1950
BMEAN_BTRUE
JTRUE_JMEAN
BTRUE_BMEAN
J2000_JNAT
JNAT_J2000
B1950_APP
APP_B1950
APP_TOPO
HADEC_AZEL
HADEC_AZELGEO
AZEL_HADEC
AZELGEO_HADEC
HADEC_TOPO
AZEL_AZELSW
AZELGEO_AZELSWGEO
AZELSW_AZEL
AZELSWGEO_AZELGEO
APP_JNAT
JNAT_APP
J2000_ECLIP
ECLIP_J2000
JMEAN_MECLIP
MECLIP_JMEAN
JTRUE_TECLIP
TECLIP_JTRUE
GAL_SUPERGAL
SUPERGAL_GAL
ITRF_HADEC
HADEC_ITRF
TOPO_HADEC
TOPO_APP
N_Routes
R_PLANET0
General for Planets
R_PLANET
R_COMET0
R_COMET
R_MERCURY
Individual planets. Order should be the same as in MDirection.h
R_VENUS
R_MARS
R_JUPITER
R_SATURN
R_URANUS
R_NEPTUNE
R_PLUTO
R_SUN
R_MOON

Interface

Public Members
MCDirection()
~MCDirection()
static String showState()
Private Members
MCDirection(const MCDirection &other)
MCDirection &operator=(const MCDirection &other)
virtual void getConvert(MConvertBase &mc, const MRBase &inref, const MRBase &outref)
virtual void initConvert(uInt which, MConvertBase &mc)
virtual void clearConvert()
virtual void doConvert(MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)
void doConvert(MVDirection &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Description

Review Status

Date Reviewed:
yyyy/mm/dd
Programs:
Tests:

Prerequisite

Etymology

Measure, Convert and Direction

Synopsis

Contains state machinery and caching for actual conversions

Example

See Measures module description for conversion examples.

Motivation

To Do

Member Description

MCDirection()

Default constructor

~MCDirection()

static String showState()

Show the state of the conversion engine (mainly for debugging purposes)

enum Routes

The list of actual routines provided.
Warning Each AA_BB in the list points to routine that can be used in the FromTo list in the getConvert routine. In addition the type to which each is converted should be in the ToRef array, again in the proper order.

MCDirection(const MCDirection &other)

Copy constructor (not implemented)

MCDirection &operator=(const MCDirection &other)

Assignment (not implemented)

virtual void getConvert(MConvertBase &mc, const MRBase &inref, const MRBase &outref)

Create conversion function pointer

virtual void initConvert(uInt which, MConvertBase &mc)

Create help structures for Measure conversion routines

virtual void clearConvert()

Delete the pointers used in the MeasConvert help structure cache

virtual void doConvert(MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Routines to convert directions from one reference frame to another

void doConvert(MVDirection &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Conversion routine to cater for inheritance question