Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CCelestialBody Class Reference

#include <Ephemeris.h>

Inheritance diagram for CCelestialBody:

CJupiter CMars CMercury CMoon CSaturn CSol CVenus List of all members.

Public Member Functions

 CCelestialBody (double Nf, double If, double wf, double af, double ef, double Mf, double Ns, double Is, double ws, double as, double es, double Ms, double mjd)
 CCelestialBody (double Nf, double If, double wf, double af, double ef, double Mf, double Ns, double Is, double ws, double as, double es, double Ms)
void SetElements (double Nf, double If, double wf, double af, double ef, double Mf, double Ns, double Is, double ws, double as, double es, double Ms, double mjd)
void SetElements (double Nf, double If, double wf, double af, double ef, double Mf, double Ns, double Is, double ws, double as, double es, double Ms)
void GetPos (double *ra, double *dec)
void GetPos (double *ra, double *dec, double *magnitude)
double GetRightAscension ()
double GetDeclination ()
double GetMagnitude ()
double GetLon ()
double GetLat ()
void UpdatePosition (double mjd, CSol *ourSun)

Protected Member Functions

double CalcEccAnom (double M, double e)
double CalcActTime (double mjd)
void UpdateOrbElements (double mjd)

Protected Attributes

double Nf
double If
double wf
double af
double ef
double Mf
double Ns
double Is
double ws
double as
double es
double Ms
double N
double i
double w
double a
double e
double M
double rightAscension
double declination
double r
double R
double s
double FV
double magnitude
double lonEcl
double latEcl

Detailed Description

Definition at line 70 of file Ephemeris.h.


Constructor & Destructor Documentation

CCelestialBody::CCelestialBody double  Nf,
double  If,
double  wf,
double  af,
double  ef,
double  Mf,
double  Ns,
double  Is,
double  ws,
double  as,
double  es,
double  Ms,
double  mjd
 

Definition at line 183 of file CelestialBody.cpp.

References SetElements().

CCelestialBody::CCelestialBody double  Nf,
double  If,
double  wf,
double  af,
double  ef,
double  Mf,
double  Ns,
double  Is,
double  ws,
double  as,
double  es,
double  Ms
 

Definition at line 192 of file CelestialBody.cpp.

References SetElements().


Member Function Documentation

double CCelestialBody::CalcActTime double  mjd  )  [protected]
 

Definition at line 279 of file CelestialBody.cpp.

Referenced by UpdateOrbElements(), CSol::UpdatePosition(), CSaturn::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::CalcEccAnom double  M,
double  e
[protected]
 

Definition at line 141 of file CelestialBody.cpp.

Referenced by CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::GetDeclination  ) 
 

Definition at line 314 of file CelestialBody.cpp.

References declination.

Referenced by CSkyManager::Print(), and CSkyManager::Update().

double CCelestialBody::GetLat  ) 
 

Definition at line 317 of file CelestialBody.cpp.

References latEcl.

double CCelestialBody::GetLon  ) 
 

Definition at line 316 of file CelestialBody.cpp.

References lonEcl.

Referenced by CMoon::UpdatePosition().

double CCelestialBody::GetMagnitude  ) 
 

Definition at line 315 of file CelestialBody.cpp.

References magnitude.

Referenced by CSkyManager::Update().

void CCelestialBody::GetPos double *  ra,
double *  dec,
double *  magnitude
 

Definition at line 301 of file CelestialBody.cpp.

References declination, magnitude, and rightAscension.

void CCelestialBody::GetPos double *  ra,
double *  dec
 

Definition at line 290 of file CelestialBody.cpp.

References declination, and rightAscension.

double CCelestialBody::GetRightAscension  ) 
 

Definition at line 313 of file CelestialBody.cpp.

References rightAscension.

Referenced by CSkyManager::Print(), and CSkyManager::Update().

void CCelestialBody::SetElements double  Nf,
double  If,
double  wf,
double  af,
double  ef,
double  Mf,
double  Ns,
double  Is,
double  ws,
double  as,
double  es,
double  Ms
 

Definition at line 228 of file CelestialBody.cpp.

void CCelestialBody::SetElements double  Nf,
double  If,
double  wf,
double  af,
double  ef,
double  Mf,
double  Ns,
double  Is,
double  ws,
double  as,
double  es,
double  Ms,
double  mjd
 

Definition at line 205 of file CelestialBody.cpp.

References UpdateOrbElements().

Referenced by CCelestialBody().

void CCelestialBody::UpdateOrbElements double  mjd  )  [protected]
 

Definition at line 258 of file CelestialBody.cpp.

References a, af, as, CalcActTime(), e, ef, es, i, If, Is, M, Mf, Ms, N, Nf, Ns, w, wf, WrapTwoPi(), and ws.

Referenced by SetElements(), CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

void CCelestialBody::UpdatePosition double  mjd,
CSol ourSun
 

Reimplemented in CMercury, CVenus, CMars, CJupiter, and CSaturn.

Definition at line 58 of file CelestialBody.cpp.

References a, CalcActTime(), CalcEccAnom(), declination, e, FV, CSol::getDistance(), CSol::getxs(), CSol::getys(), i, latEcl, lonEcl, M, N, R, r, rightAscension, s, UpdateOrbElements(), and w.

Referenced by CVenus::UpdatePosition(), CSaturn::UpdatePosition(), CMercury::UpdatePosition(), CMars::UpdatePosition(), and CJupiter::UpdatePosition().


Member Data Documentation

double CCelestialBody::a [protected]
 

Definition at line 75 of file Ephemeris.h.

Referenced by UpdateOrbElements(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::af [protected]
 

Definition at line 73 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::as [protected]
 

Definition at line 74 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::declination [protected]
 

Definition at line 77 of file Ephemeris.h.

Referenced by GetDeclination(), GetPos(), CSol::UpdatePosition(), CSaturn::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::e [protected]
 

Definition at line 75 of file Ephemeris.h.

Referenced by UpdateOrbElements(), CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::ef [protected]
 

Definition at line 73 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::es [protected]
 

Definition at line 74 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::FV [protected]
 

Definition at line 78 of file Ephemeris.h.

Referenced by CVenus::UpdatePosition(), CSaturn::UpdatePosition(), CMercury::UpdatePosition(), CMars::UpdatePosition(), CJupiter::UpdatePosition(), and UpdatePosition().

double CCelestialBody::i [protected]
 

Definition at line 75 of file Ephemeris.h.

Referenced by UpdateOrbElements(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::If [protected]
 

Definition at line 73 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::Is [protected]
 

Definition at line 74 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::latEcl [protected]
 

Definition at line 80 of file Ephemeris.h.

Referenced by GetLat(), CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::lonEcl [protected]
 

Definition at line 80 of file Ephemeris.h.

Referenced by GetLon(), CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::M [protected]
 

Definition at line 75 of file Ephemeris.h.

Referenced by CSol::getM(), UpdateOrbElements(), CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::magnitude [protected]
 

Definition at line 79 of file Ephemeris.h.

Referenced by GetMagnitude(), GetPos(), CVenus::UpdatePosition(), CSaturn::UpdatePosition(), CMercury::UpdatePosition(), CMars::UpdatePosition(), and CJupiter::UpdatePosition().

double CCelestialBody::Mf [protected]
 

Definition at line 73 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::Ms [protected]
 

Definition at line 74 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::N [protected]
 

Definition at line 75 of file Ephemeris.h.

Referenced by UpdateOrbElements(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::Nf [protected]
 

Definition at line 73 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::Ns [protected]
 

Definition at line 74 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::R [protected]
 

Definition at line 78 of file Ephemeris.h.

Referenced by CVenus::UpdatePosition(), CSaturn::UpdatePosition(), CMercury::UpdatePosition(), CMars::UpdatePosition(), CJupiter::UpdatePosition(), and UpdatePosition().

double CCelestialBody::r [protected]
 

Definition at line 78 of file Ephemeris.h.

Referenced by CVenus::UpdatePosition(), CSol::UpdatePosition(), CSaturn::UpdatePosition(), CMoon::UpdatePosition(), CMercury::UpdatePosition(), CMars::UpdatePosition(), CJupiter::UpdatePosition(), and UpdatePosition().

double CCelestialBody::rightAscension [protected]
 

Definition at line 77 of file Ephemeris.h.

Referenced by GetPos(), GetRightAscension(), CSol::UpdatePosition(), CSaturn::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::s [protected]
 

Definition at line 78 of file Ephemeris.h.

Referenced by UpdatePosition().

double CCelestialBody::w [protected]
 

Definition at line 75 of file Ephemeris.h.

Referenced by CSol::getw(), UpdateOrbElements(), CSol::UpdatePosition(), CMoon::UpdatePosition(), and UpdatePosition().

double CCelestialBody::wf [protected]
 

Definition at line 73 of file Ephemeris.h.

Referenced by UpdateOrbElements().

double CCelestialBody::ws [protected]
 

Definition at line 74 of file Ephemeris.h.

Referenced by UpdateOrbElements().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen