casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::MCFrame Class Reference

Measure frame calculations proxy. More...

#include <MCFrame.h>

List of all members.

Public Member Functions

 MCFrame (MeasFrame &inf)
 Construct using the MeasFrame parent.
 ~MCFrame ()
 Destructor.
void resetEpoch ()
 Reset Epoch value.
void resetPosition ()
 Reset Position value.
void resetDirection ()
 Reset Direction value.
void resetRadialVelocity ()
 Reset RadialVelocity value.
void resetComet ()
 Reset Comet.
void makeEpoch ()
 Make full Epoch.
void makePosition ()
 Make full Position.
void makeDirection ()
 Make full Direction.
void makeRadialVelocity ()
 Make full RadialVelocity.
void makeComet ()
 Make full Comet.
Bool getTDB (Double &tdb)
 Get TDB in days.
Bool getUT1 (Double &tdb)
 Get UT1 in days.
Bool getTT (Double &tdb)
 Get TT in days.
Bool getLong (Double &tdb)
 Get the longitude (in rad)
Bool getLat (Double &tdb)
 Get the latitude (ITRF) (in rad)
Bool getITRF (MVPosition &tdb)
 Get the position.
Bool getRadius (Double &tdb)
 Get the geocentric position (in m)
Bool getLatGeo (Double &tdb)
 Get the geodetic latitude.
Bool getLAST (Double &tdb)
 Get the LAST (in days)
Bool getLASTr (Double &tdb)
 Get the LAST (in rad)
Bool getJ2000 (MVDirection &tdb)
 Get J2000 coordinates (direction cosines) and long/lat (rad)
Bool getJ2000Long (Double &tdb)
Bool getJ2000Lat (Double &tdb)
Bool getB1950 (MVDirection &tdb)
 Get B1950 coordinates (direction cosines) and long/lat (rad)
Bool getB1950Long (Double &tdb)
Bool getB1950Lat (Double &tdb)
Bool getApp (MVDirection &tdb)
 Get apparent coordinates (direction cosines) and long/lat (rad)
Bool getAppLong (Double &tdb)
Bool getAppLat (Double &tdb)
Bool getLSR (Double &tdb)
 Get LSR radial velocity (m/s)
Bool getCometType (uInt &tdb)
 Get Comet type.
Bool getComet (MVPosition &tdb)
 Get Comet position.

Private Member Functions

 MCFrame ()
 Default constructor (not implemented)
 MCFrame (const MCFrame &other)
 Copy constructor (not implemented)
MCFrameoperator= (const MCFrame &other)
 Copy assignment (not implemented)

Private Attributes

MeasFrame myf
 The belonging frame pointer.
void * epConvTDB
 The actual measure conversion values.
DoubleepTDBp
 TDB time.
void * epConvUT1
 Conversion to UT1 time.
DoubleepUT1p
 UT1 time.
void * epConvTT
 Conversion to TT time.
DoubleepTTp
 TT time.
void * epConvLAST
 Conversion to LAST time.
DoubleepLASTp
 LAST time.
void * posConvLong
 Conversion to ITRF longitude/latitude.
Vector< Double > * posLongp
 Longitude.
MVPositionposITRFp
 Position.
void * posConvLongGeo
 Conversion to geodetic longitude/latitude.
Vector< Double > * posLongGeop
 Latitude.
MVPositionposGeop
 Position.
void * dirConvJ2000
 Conversion to J2000.
Vector< Double > * j2000Longp
 Longitude.
MVDirectiondirJ2000p
 J2000 coordinates.
void * dirConvB1950
 Conversion to B1950.
Vector< Double > * b1950Longp
 Longitude.
MVDirectiondirB1950p
 B1950 coordinates.
void * dirConvApp
 Conversion to apparent coordinates.
Vector< Double > * appLongp
 Longitude.
MVDirectiondirAppp
 Apparent coordinates.
void * radConvLSR
 Conversion to LSR radial velocity.
DoubleradLSRp
 Radial velocity.

Detailed Description

Measure frame calculations proxy.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Test programs:
tMeasure

Prerequisite

Etymology

From Measure and Frame

Synopsis

The MeasFrame class contains the 'when and where' of an observed Measure. Calculations to get the appropiate value (e.g. the Earth's longitude) from this frame for conversions are done in this class, together with all the caching of (intermediate) results that can speed-up calculations.
The MCFrame class is used by the individual measure conversion classes (see MCBase class).

Example

        MEpoch my_epoch(Quantity(MeasData::MJDB1950,"d")); // an epoch
        MCFrame frame(my_epoch);        // used in a frame
        frame.set(obser);               // add observatory (an MPosition)
        MEpoch::Convert conv(my_epoch, MEPoch::Ref(MEpoch::LAST, frame));

The conv conversion engine will (transpararently) use the MCFrame class in calls from MCEpoch (the time conversions), which will be called by the MEpoch::Convert () operator.

Motivation

To separate the frame calculations from the Measure containers, to enable e.g. Tables to have Measures.

Definition at line 91 of file MCFrame.h.


Constructor & Destructor Documentation

Construct using the MeasFrame parent.

Destructor.

casa::MCFrame::MCFrame ( ) [private]

Default constructor (not implemented)

casa::MCFrame::MCFrame ( const MCFrame other) [private]

Copy constructor (not implemented)


Member Function Documentation

Get apparent coordinates (direction cosines) and long/lat (rad)

Get B1950 coordinates (direction cosines) and long/lat (rad)

Get Comet position.

Get Comet type.

Get the position.

Get J2000 coordinates (direction cosines) and long/lat (rad)

Get the LAST (in days)

Get the LAST (in rad)

Get the latitude (ITRF) (in rad)

Get the geodetic latitude.

Get the longitude (in rad)

Get LSR radial velocity (m/s)

Get the geocentric position (in m)

Get TDB in days.

Get TT in days.

Get UT1 in days.

Make full Comet.

Make full Direction.

Make full Epoch.

Make full Position.

Make full RadialVelocity.

MCFrame& casa::MCFrame::operator= ( const MCFrame other) [private]

Copy assignment (not implemented)

Reset Comet.

Reset Direction value.

Reset Epoch value.

Reset Position value.

Reset RadialVelocity value.


Member Data Documentation

Longitude.

Definition at line 224 of file MCFrame.h.

Longitude.

Definition at line 218 of file MCFrame.h.

Apparent coordinates.

Definition at line 226 of file MCFrame.h.

B1950 coordinates.

Definition at line 220 of file MCFrame.h.

void* casa::MCFrame::dirConvApp [private]

Conversion to apparent coordinates.

Definition at line 222 of file MCFrame.h.

void* casa::MCFrame::dirConvB1950 [private]

Conversion to B1950.

Definition at line 216 of file MCFrame.h.

void* casa::MCFrame::dirConvJ2000 [private]

Conversion to J2000.

Definition at line 210 of file MCFrame.h.

J2000 coordinates.

Definition at line 214 of file MCFrame.h.

void* casa::MCFrame::epConvLAST [private]

Conversion to LAST time.

Definition at line 194 of file MCFrame.h.

void* casa::MCFrame::epConvTDB [private]

The actual measure conversion values.

Conversion to TDB time (due to some (for me) unsolvable dependency errors) not the proper MeasConvert* here)

Definition at line 182 of file MCFrame.h.

void* casa::MCFrame::epConvTT [private]

Conversion to TT time.

Definition at line 190 of file MCFrame.h.

void* casa::MCFrame::epConvUT1 [private]

Conversion to UT1 time.

Definition at line 186 of file MCFrame.h.

LAST time.

Definition at line 196 of file MCFrame.h.

TDB time.

Definition at line 184 of file MCFrame.h.

TT time.

Definition at line 192 of file MCFrame.h.

UT1 time.

Definition at line 188 of file MCFrame.h.

Longitude.

Definition at line 212 of file MCFrame.h.

The belonging frame pointer.

Definition at line 176 of file MCFrame.h.

void* casa::MCFrame::posConvLong [private]

Conversion to ITRF longitude/latitude.

Definition at line 198 of file MCFrame.h.

Conversion to geodetic longitude/latitude.

Definition at line 204 of file MCFrame.h.

Position.

Definition at line 208 of file MCFrame.h.

Position.

Definition at line 202 of file MCFrame.h.

Latitude.

Definition at line 206 of file MCFrame.h.

Longitude.

Definition at line 200 of file MCFrame.h.

void* casa::MCFrame::radConvLSR [private]

Conversion to LSR radial velocity.

Definition at line 228 of file MCFrame.h.

Radial velocity.

Definition at line 230 of file MCFrame.h.


The documentation for this class was generated from the following file: