• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

KSPluto Class Reference

A subclass of KSAsteroid that represents the planet Pluto. More...

#include <kspluto.h>

Inheritance diagram for KSPluto:

Inheritance graph
[legend]

List of all members.


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.

Author:
Jason Harris
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]

Destructor (empty).

Definition at line 56 of file kspluto.cpp.


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:
  • kspluto.h
  • kspluto.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal