• 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
SolarSystemComposite Class Reference

#include <solarsystemcomposite.h>

Inheritance diagram for SolarSystemComposite:
Inheritance graph
[legend]

Public Member Functions

 SolarSystemComposite (SkyComposite *parent)
 
 ~SolarSystemComposite ()
 
const QList< SkyObject * > & asteroids () const
 
AsteroidsComponent * asteroidsComponent ()
 
const QList< SkyObject * > & comets () const
 
CometsComponent * cometsComponent ()
 
void drawTrails (SkyPainter *skyp)
 
KSPlanet * earth ()
 
bool selected ()
 
virtual void update (KSNumbers *num)
 
virtual void updateMoons (KSNumbers *num)
 
virtual void updatePlanets (KSNumbers *num)
 
- Public Member Functions inherited from SkyComposite
 SkyComposite (SkyComposite *parent)
 
virtual ~SkyComposite ()
 
void addComponent (SkyComponent *comp)
 
QList< SkyComponent * > & components ()
 
virtual void draw (SkyPainter *skyp)
 
virtual SkyObject * findByName (const QString &name)
 
virtual SkyObject * objectNearest (SkyPoint *p, double &maxrad)
 
void removeComponent (SkyComponent *comp)
 
- Public Member Functions inherited from SkyComponent
 SkyComponent (SkyComposite *parent)
 
virtual ~SkyComponent ()
 
virtual void emitProgressText (const QString &message)
 
QHash< int, QStringList > & objectNames ()
 
QStringList & objectNames (int type)
 
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
 
SkyComposite * parent ()
 

Additional Inherited Members

- Protected Member Functions inherited from SkyComponent
void removeFromNames (const SkyObject *obj)
 

Detailed Description

The solar system composite manages all planets, asteroids and comets.

As every sub component of solar system needs the earth , the composite is managing this object by itself.

Author
Thomas Kabelmann
Version
0.1

Definition at line 41 of file solarsystemcomposite.h.

Constructor & Destructor Documentation

SolarSystemComposite::SolarSystemComposite ( SkyComposite *  parent)
explicit

Definition at line 37 of file solarsystemcomposite.cpp.

SolarSystemComposite::~SolarSystemComposite ( )

Definition at line 64 of file solarsystemcomposite.cpp.

Member Function Documentation

const QList< SkyObject * > & SolarSystemComposite::asteroids ( ) const

Definition at line 114 of file solarsystemcomposite.cpp.

AsteroidsComponent * SolarSystemComposite::asteroidsComponent ( )

Definition at line 127 of file solarsystemcomposite.cpp.

const QList< SkyObject * > & SolarSystemComposite::comets ( ) const

Definition at line 118 of file solarsystemcomposite.cpp.

CometsComponent * SolarSystemComposite::cometsComponent ( )

Definition at line 122 of file solarsystemcomposite.cpp.

void SolarSystemComposite::drawTrails ( SkyPainter *  skyp)
virtual

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 107 of file solarsystemcomposite.cpp.

KSPlanet* SolarSystemComposite::earth ( )
inline

Definition at line 47 of file solarsystemcomposite.h.

bool SolarSystemComposite::selected ( )
virtual
Returns
true if component is to be drawn on the map.

Reimplemented from SkyComponent.

Definition at line 69 of file solarsystemcomposite.cpp.

void SolarSystemComposite::update ( KSNumbers *  num)
virtual

Delegate update-position requests to all sub components.

This function usually just updates the Horizontal (Azimuth/Altitude) coordinates. However, the precession and nutation must also be recomputed periodically. Requests to do so are sent through the doPrecess parameter. num Pointer to the KSNumbers object

See also
updatePlanets()
updateMoons()
Note
By default, the num parameter is NULL, indicating that Precession/Nutation computation should be skipped; this computation is only occasionally required.

Reimplemented from SkyComposite.

Definition at line 75 of file solarsystemcomposite.cpp.

void SolarSystemComposite::updateMoons ( KSNumbers *  num)
virtual

Reimplemented from SkyComponent.

Definition at line 97 of file solarsystemcomposite.cpp.

void SolarSystemComposite::updatePlanets ( KSNumbers *  num)
virtual

Reimplemented from SkyComponent.

Definition at line 89 of file solarsystemcomposite.cpp.


The documentation for this class was generated from the following files:
  • solarsystemcomposite.h
  • solarsystemcomposite.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 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