SolarSystemComposite
#include <solarsystemcomposite.h>

Public Member Functions | |
SolarSystemComposite (SkyComposite *parent) | |
const QList< SkyObject * > & | asteroids () const |
AsteroidsComponent * | asteroidsComponent () |
const QList< SkyObject * > & | comets () const |
CometsComponent * | cometsComponent () |
void | drawTrails (SkyPainter *skyp) override |
KSPlanet * | earth () |
KSEarthShadow * | earthShadow () |
KSMoon * | moon () |
const QList< SkyObject * > & | moons () const |
QList< PlanetMoonsComponent * > | planetMoonsComponent () const |
const QList< SkyObject * > & | planetObjects () const |
const QList< SolarSystemSingleComponent * > & | planets () const |
bool | selected () override |
KSSun * | sun () |
void | update (KSNumbers *num) override |
void | updateMoons (KSNumbers *num) override |
void | updateSolarSystemBodies (KSNumbers *num) override |
![]() | |
SkyComposite (SkyComposite *parent=nullptr) | |
~SkyComposite () override | |
void | addComponent (SkyComponent *comp, int priority=1024) |
QList< SkyComponent * > | components () |
QMap< int, SkyComponent * > & | componentsWithPriorities () |
void | draw (SkyPainter *skyp) override |
SkyObject * | findByName (const QString &name, bool exact=true) override |
SkyObject * | objectNearest (SkyPoint *p, double &maxrad) override |
void | removeComponent (SkyComponent *const comp) |
![]() | |
SkyComponent (SkyComposite *parent=nullptr) | |
virtual void | emitProgressText (const QString &message) |
QHash< int, QVector< QPair< QString, const SkyObject * > > > & | objectLists () |
QVector< QPair< QString, const SkyObject * > > & | objectLists (int type) |
QHash< int, QStringList > & | objectNames () |
QStringList & | objectNames (int type) |
virtual void | objectsInArea (QList< SkyObject * > &list, const SkyRegion ®ion) |
SkyComposite * | parent () |
void | removeFromLists (const SkyObject *obj) |
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.
- Version
- 0.1
Definition at line 30 of file solarsystemcomposite.h.
Member Function Documentation
◆ drawTrails()
|
overridevirtual |
Draw trails for objects.
Reimplemented from SkyComponent.
Definition at line 144 of file solarsystemcomposite.cpp.
◆ selected()
|
overridevirtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 100 of file solarsystemcomposite.cpp.
◆ update()
|
overridevirtual |
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 nullptr, indicating that Precession/Nutation computation should be skipped; this computation is only occasionally required.
Reimplemented from SkyComposite.
Definition at line 109 of file solarsystemcomposite.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:54:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.