kstars
KSComet Class Reference
A subclass of KSPlanetBase that implements comets. More...
#include <kscomet.h>

Public Member Functions | |
KSComet (KStarsData *kd, QString s, QString image_file, long double JD, double q, double e, dms i, dms w, dms N, double Tp) | |
virtual bool | loadData () |
virtual | ~KSComet () |
Protected Member Functions | |
virtual bool | findGeocentricPosition (const KSNumbers *num, const KSPlanetBase *Earth=NULL) |
Detailed Description
A subclass of KSPlanetBase that implements comets.The orbital elements are stored as private member variables, and it provides methods to compute the ecliptic coordinates for any time from the orbital elements.
The orbital elements are:
- JD Epoch of element values
- q perihelion distance (AU)
- e eccentricity of orbit
- i inclination angle (with respect to J2000.0 ecliptic plane)
- w argument of perihelion (w.r.t. J2000.0 ecliptic plane)
- N longitude of ascending node (J2000.0 ecliptic)
- Tp time of perihelion passage (YYYYMMDD.DDD)
- Version:
- 1.0
Definition at line 47 of file kscomet.h.
Constructor & Destructor Documentation
KSComet::KSComet | ( | KStarsData * | kd, | |
QString | s, | |||
QString | image_file, | |||
long double | JD, | |||
double | q, | |||
double | e, | |||
dms | i, | |||
dms | w, | |||
dms | N, | |||
double | Tp | |||
) |
Constructor.
kd
pointer to the KStarsData object s
the name of the comet image_file
the filename for an image of the comet JD
the Julian Day for the orbital elements q
the perihelion distance of the comet's orbit (AU) e
the eccentricity of the comet's orbit i
the inclination angle of the comet's orbit w
the argument of the orbit's perihelion N
the longitude of the orbit's ascending node M
the mean anomaly for the Julian Day Tp
The date of the most proximate perihelion passage (YYYYMMDD.DDD)
Definition at line 27 of file kscomet.cpp.
virtual KSComet::~KSComet | ( | ) | [inline, virtual] |
Member Function Documentation
bool KSComet::findGeocentricPosition | ( | const KSNumbers * | num, | |
const KSPlanetBase * | Earth = NULL | |||
) | [protected, virtual] |
Calculate the geocentric RA, Dec coordinates of the Comet.
- Note:
- reimplemented from KSPlanetBase
- Parameters:
-
num time-dependent values for the desired date Earth planet Earth (needed to calculate geocentric coords)
- Returns:
- true if position was successfully calculated.
Implements KSPlanetBase.
Definition at line 58 of file kscomet.cpp.
bool KSComet::loadData | ( | ) | [virtual] |
Unused virtual function inherited from KSPlanetBase, so it's simply empty here.
Implements KSPlanetBase.
Definition at line 165 of file kscomet.cpp.
The documentation for this class was generated from the following files: