#include <orsa_body.h>
Inheritance diagram for BodyWithEpoch:
Public Member Functions | |
BodyWithEpoch () | |
BodyWithEpoch (const BodyWithEpoch &) | |
BodyWithEpoch (const double mass) | |
BodyWithEpoch (const std::string &name, const double mass) | |
BodyWithEpoch (const std::string &name, const double mass, const Vector &r, const Vector &v) | |
BodyWithEpoch (const std::string &name, const double mass, const Vector &r, const Vector &v, const Date &d) | |
BodyWithEpoch (const std::string &name, const double mass, const Vector &r, const Vector &v, const double t) | |
BodyWithEpoch (const std::string &name, const double mass, const Vector &r, const Vector &v, const UniverseTypeAwareTime &t) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius, const JPL_planets p) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius, const JPL_planets p, const UniverseTypeAwareTime &t) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius, const double J2, const double J3, const double J4) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius, const JPL_planets p, const double J2, const double J3, const double J4) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius, const JPL_planets p, const UniverseTypeAwareTime &t, const double J2, const double J3, const double J4) | |
BodyWithEpoch (const std::string &name, const double mass, const double radius, const JPL_planets p, const UniverseTypeAwareTime &t, const double J2, const double J3, const double J4, const double C22, const double C31, const double C32, const double C33, const double C41, const double C42, const double C43, const double C44, const double S31, const double S32, const double S33, const double S41, const double S42, const double S43, const double S44) | |
const UniverseTypeAwareTime & | Epoch () const |
const UniverseTypeAwareTime & | GetEpoch () const |
virtual void | SetEpoch (const UniverseTypeAwareTime &t) |
const std::string & | name () const |
double | mass () const |
double | mu () const |
bool | has_zero_mass () const |
double | radius () const |
JPL_planets | JPLPlanet () const |
double | J2 () const |
double | J3 () const |
double | J4 () const |
double | C22 () const |
double | C31 () const |
double | C32 () const |
double | C33 () const |
double | C41 () const |
double | C42 () const |
double | C43 () const |
double | C44 () const |
double | S31 () const |
double | S32 () const |
double | S33 () const |
double | S41 () const |
double | S42 () const |
double | S43 () const |
double | S44 () const |
const Vector & | position () const |
const Vector & | velocity () const |
void | AddToPosition (const Vector &v) |
void | AddToVelocity (const Vector &v) |
void | SetPosition (const Vector &v) |
void | SetPosition (const double x, const double y, const double z) |
void | SetVelocity (const Vector &v) |
void | SetVelocity (const double x, const double y, const double z) |
Vector | distanceVector (const Body &b) const |
double | distance (const Body &b) const |
Vector | DistanceVector (const Body &b) const |
double | Distance (const Body &b) const |
double | KineticEnergy () const |
unsigned int | BodyId () const |
bool | operator< (const Body &b) const |
Protected Attributes | |
UniverseTypeAwareTime | epoch |
BodyConstants * | bc |
Vector | _position |
Vector | _velocity |
Definition at line 228 of file orsa_body.h.
BodyWithEpoch | ( | ) | [inline] |
BodyWithEpoch | ( | const BodyWithEpoch & | ) |
BodyWithEpoch | ( | const double | mass | ) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const Vector & | r, | |||
const Vector & | v | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const Vector & | r, | |||
const Vector & | v, | |||
const Date & | d | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const Vector & | r, | |||
const Vector & | v, | |||
const double | t | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const Vector & | r, | |||
const Vector & | v, | |||
const UniverseTypeAwareTime & | t | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius, | |||
const JPL_planets | p | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius, | |||
const JPL_planets | p, | |||
const UniverseTypeAwareTime & | t | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius, | |||
const double | J2, | |||
const double | J3, | |||
const double | J4 | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius, | |||
const JPL_planets | p, | |||
const double | J2, | |||
const double | J3, | |||
const double | J4 | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius, | |||
const JPL_planets | p, | |||
const UniverseTypeAwareTime & | t, | |||
const double | J2, | |||
const double | J3, | |||
const double | J4 | |||
) | [inline] |
BodyWithEpoch | ( | const std::string & | name, | |
const double | mass, | |||
const double | radius, | |||
const JPL_planets | p, | |||
const UniverseTypeAwareTime & | t, | |||
const double | J2, | |||
const double | J3, | |||
const double | J4, | |||
const double | C22, | |||
const double | C31, | |||
const double | C32, | |||
const double | C33, | |||
const double | C41, | |||
const double | C42, | |||
const double | C43, | |||
const double | C44, | |||
const double | S31, | |||
const double | S32, | |||
const double | S33, | |||
const double | S41, | |||
const double | S42, | |||
const double | S43, | |||
const double | S44 | |||
) | [inline] |
void AddToPosition | ( | const Vector & | v | ) | [inline, inherited] |
void AddToVelocity | ( | const Vector & | v | ) | [inline, inherited] |
unsigned int BodyId | ( | ) | const [inline, inherited] |
Definition at line 196 of file orsa_body.h.
References Body::bc, and BodyConstants::BodyId().
Referenced by orsa::operator==().
00196 { return bc->BodyId(); }
Here is the call graph for this function:
double C22 | ( | ) | const [inline, inherited] |
Definition at line 157 of file orsa_body.h.
References Body::bc, and BodyConstants::C22().
00157 { return bc->C22(); }
Here is the call graph for this function:
double C31 | ( | ) | const [inline, inherited] |
Definition at line 158 of file orsa_body.h.
References Body::bc, and BodyConstants::C31().
00158 { return bc->C31(); }
Here is the call graph for this function:
double C32 | ( | ) | const [inline, inherited] |
Definition at line 159 of file orsa_body.h.
References Body::bc, and BodyConstants::C32().
00159 { return bc->C32(); }
Here is the call graph for this function:
double C33 | ( | ) | const [inline, inherited] |
Definition at line 160 of file orsa_body.h.
References Body::bc, and BodyConstants::C33().
00160 { return bc->C33(); }
Here is the call graph for this function:
double C41 | ( | ) | const [inline, inherited] |
Definition at line 161 of file orsa_body.h.
References Body::bc, and BodyConstants::C41().
00161 { return bc->C41(); }
Here is the call graph for this function:
double C42 | ( | ) | const [inline, inherited] |
Definition at line 162 of file orsa_body.h.
References Body::bc, and BodyConstants::C42().
00162 { return bc->C42(); }
Here is the call graph for this function:
double C43 | ( | ) | const [inline, inherited] |
Definition at line 163 of file orsa_body.h.
References Body::bc, and BodyConstants::C43().
00163 { return bc->C43(); }
Here is the call graph for this function:
double C44 | ( | ) | const [inline, inherited] |
Definition at line 164 of file orsa_body.h.
References Body::bc, and BodyConstants::C44().
00164 { return bc->C44(); }
Here is the call graph for this function:
double Distance | ( | const Body & | b | ) | const [inline, inherited] |
Definition at line 191 of file orsa_body.h.
References Body::distance().
00191 { return distance(b); }
Here is the call graph for this function:
double distance | ( | const Body & | b | ) | const [inline, inherited] |
Definition at line 187 of file orsa_body.h.
References Body::distanceVector(), and Vector::Length().
Referenced by Body::Distance().
00187 { return distanceVector(b).Length(); }
Here is the call graph for this function:
Definition at line 190 of file orsa_body.h.
References Body::distanceVector().
00190 { return distanceVector(b); }
Here is the call graph for this function:
Definition at line 186 of file orsa_body.h.
References Body::position().
Referenced by Body::distance(), and Body::DistanceVector().
00186 { return b.position()-position(); }
Here is the call graph for this function:
const UniverseTypeAwareTime& Epoch | ( | ) | const [inline] |
const UniverseTypeAwareTime& GetEpoch | ( | ) | const [inline] |
bool has_zero_mass | ( | ) | const [inline, inherited] |
Definition at line 151 of file orsa_body.h.
References Body::bc, and BodyConstants::has_zero_mass().
00151 { return bc->has_zero_mass(); }
Here is the call graph for this function:
double J2 | ( | ) | const [inline, inherited] |
Definition at line 154 of file orsa_body.h.
References Body::bc, and BodyConstants::J2().
00154 { return bc->J2(); }
Here is the call graph for this function:
double J3 | ( | ) | const [inline, inherited] |
Definition at line 155 of file orsa_body.h.
References Body::bc, and BodyConstants::J3().
00155 { return bc->J3(); }
Here is the call graph for this function:
double J4 | ( | ) | const [inline, inherited] |
Definition at line 156 of file orsa_body.h.
References Body::bc, and BodyConstants::J4().
00156 { return bc->J4(); }
Here is the call graph for this function:
JPL_planets JPLPlanet | ( | ) | const [inline, inherited] |
Definition at line 153 of file orsa_body.h.
References Body::bc, and BodyConstants::JPLPlanet().
Referenced by JPLBody::JPLBody(), JPLBody::SetEpoch(), and OrsaFile::Write().
00153 { return bc->JPLPlanet(); }
Here is the call graph for this function:
double KineticEnergy | ( | ) | const [inline, inherited] |
Definition at line 193 of file orsa_body.h.
References Body::_velocity, Body::bc, Vector::LengthSquared(), and BodyConstants::mass().
Here is the call graph for this function:
double mass | ( | ) | const [inline, inherited] |
Definition at line 149 of file orsa_body.h.
References Body::bc, and BodyConstants::mass().
Referenced by Orbit::Compute(), Body::operator<(), orsa::operator==(), orsa::print(), TLEFile::Read(), and OrsaFile::Write().
00149 { return bc->mass(); };
Here is the call graph for this function:
double mu | ( | ) | const [inline, inherited] |
Definition at line 150 of file orsa_body.h.
References Body::bc, and BodyConstants::mu().
00150 { return bc->mu(); };
Here is the call graph for this function:
const std::string& name | ( | ) | const [inline, inherited] |
Definition at line 148 of file orsa_body.h.
References Body::bc, and BodyConstants::name().
Referenced by orsa::operator==(), orsa::print(), and OrsaFile::Write().
00148 { return bc->name(); };
Here is the call graph for this function:
bool operator< | ( | const Body & | b | ) | const [inline, inherited] |
Definition at line 200 of file orsa_body.h.
References Body::mass().
00200 { return b.mass() < mass(); }
Here is the call graph for this function:
const Vector& position | ( | ) | const [inline, inherited] |
Definition at line 173 of file orsa_body.h.
References Body::_position.
Referenced by Body::Body(), Orbit::Compute(), orsa::Compute_Gauss(), Body::distanceVector(), Frame::ForceJPLEphemerisData(), orsa::operator==(), orsa::print(), OptimizedOrbitPositions::PropagatedOrbit(), TLEFile::Read(), and OrsaFile::Write().
00173 { return _position; }
double radius | ( | ) | const [inline, inherited] |
Definition at line 152 of file orsa_body.h.
References Body::bc, and BodyConstants::radius().
Referenced by OrsaFile::Write().
00152 { return bc->radius(); };
Here is the call graph for this function:
double S31 | ( | ) | const [inline, inherited] |
Definition at line 165 of file orsa_body.h.
References Body::bc, and BodyConstants::S31().
00165 { return bc->S31(); }
Here is the call graph for this function:
double S32 | ( | ) | const [inline, inherited] |
Definition at line 166 of file orsa_body.h.
References Body::bc, and BodyConstants::S32().
00166 { return bc->S32(); }
Here is the call graph for this function:
double S33 | ( | ) | const [inline, inherited] |
Definition at line 167 of file orsa_body.h.
References Body::bc, and BodyConstants::S33().
00167 { return bc->S33(); }
Here is the call graph for this function:
double S41 | ( | ) | const [inline, inherited] |
Definition at line 168 of file orsa_body.h.
References Body::bc, and BodyConstants::S41().
00168 { return bc->S41(); }
Here is the call graph for this function:
double S42 | ( | ) | const [inline, inherited] |
Definition at line 169 of file orsa_body.h.
References Body::bc, and BodyConstants::S42().
00169 { return bc->S42(); }
Here is the call graph for this function:
double S43 | ( | ) | const [inline, inherited] |
Definition at line 170 of file orsa_body.h.
References Body::bc, and BodyConstants::S43().
00170 { return bc->S43(); }
Here is the call graph for this function:
double S44 | ( | ) | const [inline, inherited] |
Definition at line 171 of file orsa_body.h.
References Body::bc, and BodyConstants::S44().
00171 { return bc->S44(); }
Here is the call graph for this function:
virtual void SetEpoch | ( | const UniverseTypeAwareTime & | t | ) | [inline, virtual] |
Reimplemented in JPLBody.
Definition at line 253 of file orsa_body.h.
References BodyWithEpoch::epoch.
00253 { 00254 epoch = t; 00255 }
void SetPosition | ( | const double | x, | |
const double | y, | |||
const double | z | |||
) | [inline, inherited] |
Definition at line 180 of file orsa_body.h.
References Body::SetPosition().
00180 { Vector v(x,y,z); SetPosition(v); }
Here is the call graph for this function:
void SetPosition | ( | const Vector & | v | ) | [inline, inherited] |
Definition at line 179 of file orsa_body.h.
References Body::_position.
Referenced by orsa::Interpolate(), OptimizedOrbitPositions::PropagatedOrbit(), orsa::PropagatedSky_J2000(), OrsaFile::Read(), and Body::SetPosition().
00179 { _position = v; }
void SetVelocity | ( | const double | x, | |
const double | y, | |||
const double | z | |||
) | [inline, inherited] |
Definition at line 183 of file orsa_body.h.
References Body::SetVelocity().
00183 { Vector v(x,y,z); SetVelocity(v); }
Here is the call graph for this function:
void SetVelocity | ( | const Vector & | v | ) | [inline, inherited] |
Definition at line 182 of file orsa_body.h.
References Body::_velocity.
Referenced by orsa::Interpolate(), OptimizedOrbitPositions::PropagatedOrbit(), orsa::PropagatedSky_J2000(), OrsaFile::Read(), and Body::SetVelocity().
00182 { _velocity = v; }
const Vector& velocity | ( | ) | const [inline, inherited] |
Definition at line 174 of file orsa_body.h.
References Body::_velocity.
Referenced by Body::Body(), Orbit::Compute(), Frame::ForceJPLEphemerisData(), orsa::operator==(), orsa::print(), OptimizedOrbitPositions::PropagatedOrbit(), TLEFile::Read(), and OrsaFile::Write().
00174 { return _velocity; }
Definition at line 206 of file orsa_body.h.
Referenced by Body::AddToPosition(), Body::Body(), JPLBody::JPLBody(), Body::operator=(), Body::position(), JPLBody::SetEpoch(), and Body::SetPosition().
Definition at line 206 of file orsa_body.h.
Referenced by Body::AddToVelocity(), Body::Body(), JPLBody::JPLBody(), Body::KineticEnergy(), Body::operator=(), JPLBody::SetEpoch(), Body::SetVelocity(), and Body::velocity().
BodyConstants* bc [protected, inherited] |
Definition at line 203 of file orsa_body.h.
Referenced by Body::Body(), Body::BodyId(), Body::C22(), Body::C31(), Body::C32(), Body::C33(), Body::C41(), Body::C42(), Body::C43(), Body::C44(), Body::has_zero_mass(), Body::J2(), Body::J3(), Body::J4(), Body::JPLPlanet(), Body::KineticEnergy(), Body::mass(), Body::mu(), Body::name(), Body::operator=(), Body::radius(), Body::S31(), Body::S32(), Body::S33(), Body::S41(), Body::S42(), Body::S43(), Body::S44(), and Body::~Body().
UniverseTypeAwareTime epoch [protected] |
Definition at line 258 of file orsa_body.h.
Referenced by BodyWithEpoch::Epoch(), BodyWithEpoch::GetEpoch(), JPLBody::JPLBody(), BodyWithEpoch::SetEpoch(), and JPLBody::SetEpoch().