kstars
KSPluto Class Reference
A subclass of KSAsteroid that represents the planet Pluto. More...
#include <kspluto.h>

Public Member Functions | |
KSPluto (KStarsData *kd, QString fn="", double pSize=0) | |
virtual | ~KSPluto () |
Protected Member Functions | |
virtual bool | findGeocentricPosition (const KSNumbers *num, const KSPlanetBase *Earth=NULL) |
Detailed Description
A subclass of KSAsteroid that represents the planet Pluto.Now, we are certainly NOT claiming that Pluto is an asteroid. However, the findPosition() routines of KSPlanet do not work properly for Pluto. We had been using a unique polynomial expansion for Pluto, but even this fails spectacularly for dates much more remote than a few hundred years. We consider it better to instead treat Pluto's orbit much more simply, using elliptical orbital elements as we do for asteroids. In order to improve the long-term accuracy of Pluto's position, we are also including linear approximations of the evolution of each orbital element with time.
The orbital element data (including the time-derivatives) come from the NASA/JPL website: http://ssd.jpl.nasa.gov/elem_planets.html
Provides necessary information about Pluto.
- Version:
- 1.0
Definition at line 44 of file kspluto.h.
Constructor & Destructor Documentation
KSPluto::KSPluto | ( | KStarsData * | kd, | |
QString | fn = "" , |
|||
double | pSize = 0 | |||
) |
Constructor.
Calls KSAsteroid constructor with name="Pluto", and fills in orbital element data (which is hard-coded for now). kd
pointer to the KStarsData object fn
filename of Pluto's image pSize
physical diameter of Pluto, in km
Definition at line 32 of file kspluto.cpp.
KSPluto::~KSPluto | ( | ) | [virtual] |
Member Function Documentation
bool KSPluto::findGeocentricPosition | ( | const KSNumbers * | num, | |
const KSPlanetBase * | Earth = NULL | |||
) | [protected, virtual] |
A custom findPosition() function for Pluto.
Computes the values of the orbital elements on the requested date, and calls KSAsteroid::findGeocentricPosition() using those elements.
- Parameters:
-
num time-dependent values for the desired date Earth planet Earth (needed to calculate geocentric coords)
- Returns:
- true if position was successfully calculated.
Reimplemented from KSAsteroid.
Definition at line 61 of file kspluto.cpp.
The documentation for this class was generated from the following files: