#include <OrbitState.h>
The OrbitState class is an abstract representation of a current orbital state, including its position and velocity (in some OrbitStateRepresentation) and respective frame (OrbitFrame). Each instance of OrbitState is a snapshot of the spacecraft at an instant in time.
OrbitState myOrbitState; myOrbitState.SetStateRepresentation(new PositionVelocity); myOrbitState.SetOrbitFrame(new OrbitFrameIJK); Vector initPV(6); // Space station initPV(VectorIndexBase+0) = -5776.6; // km initPV(VectorIndexBase+1) = -157; // km initPV(VectorIndexBase+2) = 3496.9; // km initPV(VectorIndexBase+3) = -2.595; // km/s initPV(VectorIndexBase+4) = -5.651; // km/s initPV(VectorIndexBase+5) = -4.513; // km/s myOrbitState.SetState(initPV);
change to be a template class of the Representation Types
Definition at line 47 of file OrbitState.h.
Public Member Functions | |
OrbitState () | |
Create an initially empty orbit state object. | |
virtual | ~OrbitState () |
Default deconstructor. Deletes any unused variables. | |
OrbitState (const OrbitState &_OrbStateCopy) | |
Create an orbit state from a copy of another orbit state. | |
OrbitState (OrbitStateRepresentation *_pOrbRep, OrbitFrame *_pOrbFrame=NULL) | |
Create an orbit state object from a pointer to an orbit representation (positionVelocity, keplerian, etc), and orbit frame (IJK, PQW, etc.). | |
void | SetOrbitFrame (OrbitFrame *_pnewOrbitFrame) |
Set (or Change) the stored orbit frame that is the reference for the represenation. | |
OrbitFrame * | GetOrbitFrame () const |
Returns the pointer to the current reference frame of the orbit state. | |
void | SetStateRepresentation (OrbitStateRepresentation *_pStateRep) |
Set (or change) the orbit state's representation. | |
void | SetStateRepresentation (OrbitStateRepresentation *_pStateRep, OrbitFrame *_pOrbFrame) |
Set (or change) the orbit state's representation and reference frame. | |
OrbitStateRepresentation * | GetStateRepresentation () const |
Return a pointer to the orbit state's current state representation. | |
double | GetOrbitAngularMomentum () const |
Calculates the orbit angular momentum at the current orbit state. | |
void | SetState (const Vector &_state) |
internally set the orbit representation's state. | |
void | SetState (const Vector &_state, OrbitFrame *_pOrbFrame) |
internally set the orbit representation's state and reference frame. | |
Vector | GetState () const |
internally return the orbit representation's state Vector. | |
OrbitState | operator= (const OrbitState &_OrbStateCopy) |
Copy an instance of OrbitState. | |
Private Attributes | |
OrbitStateRepresentation * | m_pOrbitStateRepresentation |
internal pointer to the current orbit state representation | |
OrbitFrame * | m_pOrbitFrame |
internal pointer to the current orbit state reference frame |
|
Create an initially empty orbit state object.
Definition at line 16 of file OrbitState.cpp. |
|
Default deconstructor. Deletes any unused variables.
Definition at line 37 of file OrbitState.cpp. |
|
Create an orbit state from a copy of another orbit state.
Definition at line 21 of file OrbitState.cpp. |
|
Create an orbit state object from a pointer to an orbit representation (positionVelocity, keplerian, etc), and orbit frame (IJK, PQW, etc.).
Definition at line 47 of file OrbitState.cpp. |
|
Set (or Change) the stored orbit frame that is the reference for the represenation. In the future, this will convert the orbit representation from the previous frame (if defined) to the new frame.
Definition at line 52 of file OrbitState.cpp. |
|
Returns the pointer to the current reference frame of the orbit state.
Definition at line 63 of file OrbitState.cpp. |
|
Set (or change) the orbit state's representation.
Definition at line 67 of file OrbitState.cpp. |
|
Set (or change) the orbit state's representation and reference frame.
Definition at line 77 of file OrbitState.cpp. |
|
Return a pointer to the orbit state's current state representation.
Definition at line 83 of file OrbitState.cpp. |
|
Calculates the orbit angular momentum at the current orbit state.
Definition at line 88 of file OrbitState.cpp. |
|
internally set the orbit representation's state.
Definition at line 97 of file OrbitState.cpp. |
|
internally set the orbit representation's state and reference frame.
|
|
internally return the orbit representation's state Vector.
Definition at line 103 of file OrbitState.cpp. |
|
Copy an instance of OrbitState.
Definition at line 111 of file OrbitState.cpp. |
|
internal pointer to the current orbit state representation
Definition at line 125 of file OrbitState.h. |
|
internal pointer to the current orbit state reference frame
Definition at line 127 of file OrbitState.h. |