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 ()
QMap< 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.

Thomas Kabelmann

Definition at line 30 of file solarsystemcomposite.h.

Member Function Documentation

◆ drawTrails()

void SolarSystemComposite::drawTrails ( SkyPainter skyp)

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 144 of file solarsystemcomposite.cpp.

◆ selected()

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

Reimplemented from SkyComponent.

Definition at line 100 of file solarsystemcomposite.cpp.

◆ update()

void SolarSystemComposite::update ( KSNumbers num)

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
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.