HorizonComponent
#include <horizoncomponent.h>
Public Member Functions | |
HorizonComponent (SkyComposite *parent) | |
void | draw (SkyPainter *skyp) override |
bool | selected () override |
void | update (KSNumbers *) override |
Public Member Functions inherited from PointListComponent | |
PointListComponent (SkyComposite *parent) | |
QList< std::shared_ptr< SkyPoint > > & | pointList () |
void | update (KSNumbers *num=nullptr) override |
Public Member Functions inherited from SkyComponent | |
SkyComponent (SkyComposite *parent=nullptr) | |
virtual void | drawTrails (SkyPainter *skyp) |
virtual void | emitProgressText (const QString &message) |
virtual SkyObject * | findByName (const QString &name, bool exact=true) |
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 SkyObject * | objectNearest (SkyPoint *p, double &maxrad) |
virtual void | objectsInArea (QList< SkyObject * > &list, const SkyRegion ®ion) |
SkyComposite * | parent () |
void | removeFromLists (const SkyObject *obj) |
void | removeFromNames (const SkyObject *obj) |
virtual void | updateMoons (KSNumbers *) |
virtual void | updateSolarSystemBodies (KSNumbers *) |
Detailed Description
Constructor & Destructor Documentation
◆ HorizonComponent()
|
explicit |
Constructor.
parent
Pointer to the parent SkyComposite object
Definition at line 25 of file horizoncomponent.cpp.
Member Function Documentation
◆ draw()
|
overridevirtual |
Draw the Horizon on the Sky map.
map
Pointer to the SkyMap object psky
Reference to the QPainter on which to paint
Implements SkyComponent.
Definition at line 65 of file horizoncomponent.cpp.
◆ selected()
|
overridevirtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 43 of file horizoncomponent.cpp.
◆ update()
|
overridevirtual |
Update the sky position(s) of this component.
This function usually just updates the Horizontal (Azimuth/Altitude) coordinates of its member object(s). However, the precession and nutation must also be recomputed periodically. num
Pointer to the KSNumbers object
- See also
- SingleComponent::update()
- ListComponent::update()
- ConstellationBoundaryComponent::update()
Reimplemented from SkyComponent.
Definition at line 48 of file horizoncomponent.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.