DEIMOS
Earth Observation Mission CFI Software
Lib Software User Manual
ESA

EECFI::Coord Class Reference

Base class for Coord objects. More...

Inheritance diagram for EECFI::Coord:
EECFI::CfiClass

List of all members.

Public Member Functions

 Coord ()
 Class constructor (empty constructor).
 Coord (long csRef, long der, double pos[3], double vel[3], double acc[3])
 Class constructor.
 Coord (const Coord &other)
 ~Coord () NOEXCEPT
 Class destructor.
Geodetic getGeodetic (const ModelId &modelId, long deriv) const
void setGeodetic (const ModelId &modelId, long deriv, const Geodetic &geo)
 Set the cartesian vector from the input geodetic coordinates (EARTH FIXED CS).
Kepler getKepler (const ModelId &modelId, long mode) const
 Get Keplerian elements for the input satellite state vector.
void setKepler (const ModelId &modelId, const Kepler &kep)
 Set cartesian satellite state vector from input Keplerian elements.
StarData getRaDec (const ModelId &modelId, long deriv) const
 Get the spherical coordinates of the Coord vector.
void topocentricToEf (const ModelId &modelId, long mode, long deriv, const Coord &topOrigin, const Topocentric &topo)
 Change topocentric to EF CS.
void efToTopocentric (const ModelId &modelId, long mode, long der, const Coord &topOrigin, Topocentric &topo) const
 Change EF to topocentric CS.
void operator= (const Coord &c)
 Operator=.

Public Attributes

long cs
 Coordinate system (enumeration value).
long deriv
 Derivative flag that indicates which derivatives are computed.
double pos [3]
 Position vector.
double vel [3]
 Velocity vector.
double acc [3]
 Acceleration vector.

Detailed Description

Base class for Coord objects.


Constructor & Destructor Documentation

EECFI::Coord::Coord (  ) 

Class constructor (empty constructor).

EECFI::Coord::Coord ( long  csRef,
long  der,
double  pos[3],
double  vel[3],
double  acc[3] 
)

Class constructor.

EECFI::Coord::Coord ( const Coord other  ) 

Copy constructor.

Parameters:
other The Coord to copy from
EECFI::Coord::~Coord (  )  [inline]

Class destructor.


Member Function Documentation

void EECFI::Coord::efToTopocentric ( const ModelId modelId,
long  mode,
long  der,
const Coord topOrigin,
Topocentric topo 
) const

Change EF to topocentric CS.

Geodetic EECFI::Coord::getGeodetic ( const ModelId modelId,
long  deriv 
) const

Get geodetic coordinates of the input cartesian vector; Assumption: Coordinates are given in EARTH FIXED CS, otherwise an error message will be thrown.

Kepler EECFI::Coord::getKepler ( const ModelId modelId,
long  mode 
) const

Get Keplerian elements for the input satellite state vector.

StarData EECFI::Coord::getRaDec ( const ModelId modelId,
long  deriv 
) const

Get the spherical coordinates of the Coord vector.

  • It gets RA and Declination if the input coordinates are equatorial coordinates.
  • It gets galactic longitude and latitude if the input coordinates are galactic.

Note that Coord object must not be in XLCFI_EF CS.

void EECFI::Coord::operator= ( const Coord c  ) 

Operator=.

void EECFI::Coord::setGeodetic ( const ModelId modelId,
long  deriv,
const Geodetic geo 
)

Set the cartesian vector from the input geodetic coordinates (EARTH FIXED CS).

void EECFI::Coord::setKepler ( const ModelId modelId,
const Kepler kep 
)

Set cartesian satellite state vector from input Keplerian elements.

void EECFI::Coord::topocentricToEf ( const ModelId modelId,
long  mode,
long  deriv,
const Coord topOrigin,
const Topocentric topo 
)

Change topocentric to EF CS.


Member Data Documentation

Coordinate system (enumeration value).

Referenced by EECFI::StateVector::change().

Derivative flag that indicates which derivatives are computed.


Generated on Mon Dec 11 2023 13:28:22 for by doxygen 1.7.1