#include <CentralBody.h>
Inheritance diagram for O_SESSAME::CentralBody:
The CentralBody class provides a common interface to the group of central body objects (Planet, moon, asteroid, etc.) The central body group stores the pertinent parameters that affect the operating environment of a spacecraft. This includes the radius, mass, gravity field, atmosphere characteristics (if they is an atm), and relationship to other central bodies (such as from the sun, or a moon to planet).
Definition at line 34 of file CentralBody.h.
Public Member Functions | |
virtual | ~CentralBody () |
Default Deconstructor. | |
void | SetMagneticModel (MagneticModel *_pNewMagModel) |
virtual double | GetAvgRotationRate () |
virtual double | GetRadius () |
virtual double | GetGravitationalParameter () |
Vector | GetVector2Body (CentralBody *) const |
calculate the vector from the central body to another central body | |
Vector | GetVector2Body (const OrbitState &_satOrbitState) const |
calculate the vector from the central body to a satellite | |
CentralBody * | operator= (CentralBody *) |
Returns a pointer to the instance of the central body. | |
void | ReleaseReference () |
decrease the number of references to the central body pointer | |
Protected Member Functions | |
CentralBody () | |
Construct a central body object. | |
void | GetReference () |
increase the number of references to the central body pointer | |
Protected Attributes | |
double | m_Radius |
radius of the central body, [km] | |
double | m_Mass |
mass of the central body, [kg] | |
double | m_GravitationalParameter |
gravitational parameter, [km^3/(solar s)^2] | |
double | m_AtmHeight |
double | m_AvgRotationRate |
average rotation rate of the central body, [rad/s] | |
Vector | m_GravitationalFieldConstants |
int | m_ReferenceCount |
MagneticModel * | m_pMagneticFieldModel |
MagneticFieldCoefficients | m_MagFieldCoeffs |
|
Default Deconstructor.
Definition at line 38 of file CentralBody.h. |
|
Construct a central body object.
Definition at line 17 of file CentralBody.cpp. |
|
Definition at line 37 of file CentralBody.cpp. |
|
Definition at line 43 of file CentralBody.cpp. |
|
Definition at line 45 of file CentralBody.cpp. |
|
Definition at line 48 of file CentralBody.h. |
|
calculate the vector from the central body to another central body
|
|
calculate the vector from the central body to a satellite
|
|
Returns a pointer to the instance of the central body.
Definition at line 47 of file CentralBody.cpp. |
|
decrease the number of references to the central body pointer
Definition at line 27 of file CentralBody.cpp. |
|
increase the number of references to the central body pointer
Definition at line 22 of file CentralBody.cpp. |
|
radius of the central body, [km]
Definition at line 71 of file CentralBody.h. |
|
mass of the central body, [kg]
Definition at line 72 of file CentralBody.h. |
|
gravitational parameter, [km^3/(solar s)^2]
Definition at line 73 of file CentralBody.h. |
|
Definition at line 75 of file CentralBody.h. |
|
average rotation rate of the central body, [rad/s]
Definition at line 76 of file CentralBody.h. |
|
Definition at line 77 of file CentralBody.h. |
|
Definition at line 79 of file CentralBody.h. |
|
Definition at line 80 of file CentralBody.h. |
|
Definition at line 81 of file CentralBody.h. |