SolarSystemComposite

Search for usage in LXR

SolarSystemComposite Class Reference

#include <solarsystemcomposite.h>

Inheritance diagram for SolarSystemComposite:

Public Member Functions

 SolarSystemComposite (SkyComposite *parent)
 
const QList< SkyObject * > & asteroids () const
 
AsteroidsComponentasteroidsComponent ()
 
const QList< SkyObject * > & comets () const
 
CometsComponentcometsComponent ()
 
void drawTrails (SkyPainter *skyp) override
 
KSPlanetearth ()
 
KSEarthShadowearthShadow ()
 
KSMoonmoon ()
 
const QList< SkyObject * > & moons () const
 
QList< PlanetMoonsComponent * > planetMoonsComponent () const
 
const QList< SkyObject * > & planetObjects () const
 
const QList< SolarSystemSingleComponent * > & planets () const
 
bool selected () override
 
KSSunsun ()
 
void update (KSNumbers *num) override
 
void updateMoons (KSNumbers *num) override
 
void updateSolarSystemBodies (KSNumbers *num) override
 
- Public Member Functions inherited from SkyComposite
 SkyComposite (SkyComposite *parent=nullptr)
 
 ~SkyComposite () override
 
void addComponent (SkyComponent *comp, int priority=1024)
 
QList< SkyComponent * > components ()
 
QMultiMap< int, SkyComponent * > & componentsWithPriorities ()
 
void draw (SkyPainter *skyp) override
 
SkyObjectfindByName (const QString &name, bool exact=true) override
 
SkyObjectobjectNearest (SkyPoint *p, double &maxrad) override
 
void removeComponent (SkyComponent *const comp)
 
- Public Member Functions inherited from SkyComponent
 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 ()
 
QStringListobjectNames (int type)
 
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
 
SkyCompositeparent ()
 
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.

Author
Thomas Kabelmann
Version
0.1

Definition at line 30 of file solarsystemcomposite.h.

Constructor & Destructor Documentation

◆ SolarSystemComposite()

SolarSystemComposite::SolarSystemComposite ( SkyComposite * parent)
explicit

Definition at line 23 of file solarsystemcomposite.cpp.

◆ ~SolarSystemComposite()

SolarSystemComposite::~SolarSystemComposite ( )
override

Definition at line 95 of file solarsystemcomposite.cpp.

Member Function Documentation

◆ asteroids()

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

Definition at line 153 of file solarsystemcomposite.cpp.

◆ asteroidsComponent()

AsteroidsComponent * SolarSystemComposite::asteroidsComponent ( )

Definition at line 178 of file solarsystemcomposite.cpp.

◆ comets()

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

Definition at line 158 of file solarsystemcomposite.cpp.

◆ cometsComponent()

CometsComponent * SolarSystemComposite::cometsComponent ( )

Definition at line 173 of file solarsystemcomposite.cpp.

◆ drawTrails()

void SolarSystemComposite::drawTrails ( SkyPainter * skyp)
overridevirtual

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 144 of file solarsystemcomposite.cpp.

◆ earth()

KSPlanet * SolarSystemComposite::earth ( )
inline

Definition at line 37 of file solarsystemcomposite.h.

◆ earthShadow()

KSEarthShadow * SolarSystemComposite::earthShadow ( )
inline

Definition at line 40 of file solarsystemcomposite.h.

◆ moon()

KSMoon * SolarSystemComposite::moon ( )
inline

Definition at line 39 of file solarsystemcomposite.h.

◆ moons()

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

Definition at line 168 of file solarsystemcomposite.cpp.

◆ planetObjects()

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

Definition at line 163 of file solarsystemcomposite.cpp.

◆ planets()

const QList< SolarSystemSingleComponent * > & SolarSystemComposite::planets ( ) const

Definition at line 183 of file solarsystemcomposite.cpp.

◆ selected()

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

Reimplemented from SkyComponent.

Definition at line 100 of file solarsystemcomposite.cpp.

◆ sun()

KSSun * SolarSystemComposite::sun ( )
inline

Definition at line 38 of file solarsystemcomposite.h.

◆ update()

void SolarSystemComposite::update ( KSNumbers * num)
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.

◆ updateMoons()

void SolarSystemComposite::updateMoons ( KSNumbers * num)
overridevirtual

Reimplemented from SkyComponent.

Definition at line 133 of file solarsystemcomposite.cpp.

◆ updateSolarSystemBodies()

void SolarSystemComposite::updateSolarSystemBodies ( KSNumbers * num)
overridevirtual

Reimplemented from SkyComponent.

Definition at line 124 of file solarsystemcomposite.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.