Search for usage in LXR

HorizonComponent Class Reference

#include <horizoncomponent.h>

Inheritance diagram for HorizonComponent:

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 SkyObjectfindByName (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 ()
QStringListobjectNames (int type)
virtual SkyObjectobjectNearest (SkyPoint *p, double &maxrad)
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
SkyCompositeparent ()
void removeFromLists (const SkyObject *obj)
void removeFromNames (const SkyObject *obj)
virtual void updateMoons (KSNumbers *)
virtual void updateSolarSystemBodies (KSNumbers *)

Detailed Description

Represents the horizon on the sky map.

Thomas Kabelmann

Definition at line 23 of file horizoncomponent.h.

Constructor & Destructor Documentation

◆ HorizonComponent()

HorizonComponent::HorizonComponent ( SkyComposite * parent)


parent Pointer to the parent SkyComposite object

Definition at line 25 of file horizoncomponent.cpp.

Member Function Documentation

◆ draw()

void HorizonComponent::draw ( SkyPainter * skyp)

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

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

Reimplemented from SkyComponent.

Definition at line 43 of file horizoncomponent.cpp.

◆ update()

void HorizonComponent::update ( KSNumbers * )

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

Reimplemented from SkyComponent.

Definition at line 48 of file horizoncomponent.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 Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.