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

kstars

KSAsteroid Class Reference

A subclass of KSPlanetBase that implements asteroids. More...

#include <ksasteroid.h>

Inheritance diagram for KSAsteroid:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 KSAsteroid (KStarsData *kd, QString s, QString image_file, long double JD, double a, double e, dms i, dms w, dms N, dms M, double H)
virtual bool loadData ()
virtual ~KSAsteroid ()

Protected Member Functions

virtual bool findGeocentricPosition (const KSNumbers *num, const KSPlanetBase *Earth=NULL)
void set_a (double newa)
void set_e (double newe)
void set_i (double newi)
void set_M (double newM)
void set_N (double newN)
void set_P (double newP)
void set_w (double neww)
void setJD (long double jd)

Detailed Description

A subclass of KSPlanetBase that implements asteroids.

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
  • a semi-major axis length (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)
  • M mean anomaly at epoch JD
  • H absolute magnitude
Author:
Jason Harris
Version:
1.0

Definition at line 48 of file ksasteroid.h.


Constructor & Destructor Documentation

KSAsteroid::KSAsteroid ( KStarsData *  kd,
QString  s,
QString  image_file,
long double  JD,
double  a,
double  e,
dms  i,
dms  w,
dms  N,
dms  M,
double  H 
)

Constructor.

kd pointer to the KStarsData object s the name of the asteroid image_file the filename for an image of the asteroid JD the Julian Day for the orbital elements a the semi-major axis of the asteroid's orbit (AU) e the eccentricity of the asteroid's orbit i the inclination angle of the asteroid'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 H absolute magnitude

Definition at line 26 of file ksasteroid.cpp.

virtual KSAsteroid::~KSAsteroid (  )  [inline, virtual]

Destructor (empty).

Definition at line 68 of file ksasteroid.h.


Member Function Documentation

bool KSAsteroid::findGeocentricPosition ( const KSNumbers *  num,
const KSPlanetBase *  Earth = NULL 
) [protected, virtual]

Calculate the geocentric RA, Dec coordinates of the Asteroid.

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.

Reimplemented in KSPluto.

Definition at line 36 of file ksasteroid.cpp.

bool KSAsteroid::loadData (  )  [virtual]

This is inherited from KSPlanetBase.

We don't use it in this class, so it is empty.

Implements KSPlanetBase.

Definition at line 134 of file ksasteroid.cpp.

void KSAsteroid::set_a ( double  newa  )  [inline, protected]

Definition at line 85 of file ksasteroid.h.

void KSAsteroid::set_e ( double  newe  )  [inline, protected]

Definition at line 86 of file ksasteroid.h.

void KSAsteroid::set_i ( double  newi  )  [inline, protected]

Definition at line 88 of file ksasteroid.h.

void KSAsteroid::set_M ( double  newM  )  [inline, protected]

Definition at line 90 of file ksasteroid.h.

void KSAsteroid::set_N ( double  newN  )  [inline, protected]

Definition at line 91 of file ksasteroid.h.

void KSAsteroid::set_P ( double  newP  )  [inline, protected]

Definition at line 87 of file ksasteroid.h.

void KSAsteroid::set_w ( double  neww  )  [inline, protected]

Definition at line 89 of file ksasteroid.h.

void KSAsteroid::setJD ( long double  jd  )  [inline, protected]

Definition at line 92 of file ksasteroid.h.


The documentation for this class was generated from the following files:
  • ksasteroid.h
  • ksasteroid.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