SolarSystemListComponent

Search for usage in LXR

SolarSystemListComponent Class Reference

#include <solarsystemlistcomponent.h>

Inheritance diagram for SolarSystemListComponent:

Public Member Functions

 SolarSystemListComponent (SolarSystemComposite *parent)
 
void update (KSNumbers *num) override
 
void updateSolarSystemBodies (KSNumbers *num) override
 
- Public Member Functions inherited from ListComponent
 ListComponent (SkyComposite *parent)
 
void appendListObject (SkyObject *object)
 
void clear ()
 
SkyObjectfindByName (const QString &name, bool exact=true) override
 
const QList< SkyObject * > & objectList () const
 
SkyObjectobjectNearest (SkyPoint *p, double &maxrad) override
 
- Public Member Functions inherited from SkyComponent
 SkyComponent (SkyComposite *parent=nullptr)
 
virtual void draw (SkyPainter *skyp)=0
 
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)
 
virtual bool selected ()
 
virtual void updateMoons (KSNumbers *)
 

Protected Member Functions

void drawTrails (SkyPainter *skyp) override
 

Additional Inherited Members

- Protected Attributes inherited from ListComponent
QHash< QString, SkyObject * > m_ObjectHash
 
QList< SkyObject * > m_ObjectList
 

Detailed Description

Author
Jason Harris
Version
1.0

Definition at line 20 of file solarsystemlistcomponent.h.

Member Function Documentation

◆ drawTrails()

void SolarSystemListComponent::drawTrails ( SkyPainter skyp)
overrideprotectedvirtual

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 64 of file solarsystemlistcomponent.cpp.

◆ update()

void SolarSystemListComponent::update ( KSNumbers num)
overridevirtual

Update the sky positions of this component.

This function usually just updates the Horizontal (Azimuth/Altitude) coordinates of the objects in this component. If the KSNumbers* argument is not nullptr, this function also recomputes precession and nutation for the date in KSNumbers. num Pointer to the KSNumbers object

Note
By default, the num parameter is nullptr, indicating that Precession/Nutation computation should be skipped; this computation is only occasionally required.

Reimplemented from ListComponent.

Definition at line 31 of file solarsystemlistcomponent.cpp.

◆ updateSolarSystemBodies()

void SolarSystemListComponent::updateSolarSystemBodies ( KSNumbers num)
overridevirtual

Update the coordinates of the solar system bodies in this component.

This function updates the position of the moving solar system bodies. data Pointer to the KStarsData object num Pointer to the KSNumbers object

Reimplemented from SkyComponent.

Definition at line 47 of file solarsystemlistcomponent.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.