• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
JupiterMoons Class Reference

#include <jupitermoons.h>

Inheritance diagram for JupiterMoons:
Inheritance graph
[legend]

Public Member Functions

 JupiterMoons ()
 
virtual ~JupiterMoons ()
 
virtual void findPosition (const KSNumbers *num, const KSPlanetBase *jup, const KSSun *sunptr)
 
- Public Member Functions inherited from PlanetMoons
 PlanetMoons ()
 
virtual ~PlanetMoons ()
 
void EquatorialToHorizontal (const dms *LSTh, const dms *lat)
 
bool inFront (int id) const
 
TrailObject * moon (int id)
 
QString name (int id) const
 
int nMoons () const
 
double x (int i) const
 
double y (int i) const
 
double z (int i) const
 

Additional Inherited Members

- Protected Attributes inherited from PlanetMoons
QVector< bool > InFront
 
QVector< TrailObject * > Moon
 
QVector< double > XP
 
QVector< double > YP
 
QVector< double > ZP
 

Detailed Description

Implements the four largest moons of Jupiter.

See Chapter 43 of "Astronomical Algorithms"by Jean Meeus for details

TODO: make the moons SkyObjects, rather than just points.

Author
Jason Harris
Version
1.0

Definition at line 41 of file jupitermoons.h.

Constructor & Destructor Documentation

JupiterMoons::JupiterMoons ( )

Constructor.

Assign the name of each moon, and initialize their XYZ positions to zero.

Definition at line 25 of file jupitermoons.cpp.

JupiterMoons::~JupiterMoons ( )
virtual

Destructor.

Delete moon objects.

Definition at line 39 of file jupitermoons.cpp.

Member Function Documentation

void JupiterMoons::findPosition ( const KSNumbers *  num,
const KSPlanetBase *  jup,
const KSSun *  sunptr 
)
virtual

Find the positions of each Moon, relative to Jupiter.

We use an XYZ coordinate system, centered on Jupiter, where the X-axis corresponds to Jupiter's Equator, the Y-Axis is parallel to Jupiter's Poles, and the Z-axis points along the line joining the Earth and Jupiter. Once the XYZ positions are known, this function also computes the RA,Dec positions of each Moon, and sets the inFront bool variable to indicate whether the Moon is nearer to us than Jupiter or not (this information is used to determine whether the Moon should be drawn on top of Jupiter, or vice versa).

See "Astronomical Algorithms" bu Jean Meeus, Chapter 43.

Parameters
numpointer to the KSNumbers object describing the date/time at which to find the positions.
juppointer to the jupiter object
sunptrpointer to the Sun object

Implements PlanetMoons.

Definition at line 42 of file jupitermoons.cpp.


The documentation for this class was generated from the following files:
  • jupitermoons.h
  • jupitermoons.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal