SatellitesComponent
#include <satellitescomponent.h>

Public Member Functions | |
SatellitesComponent (SkyComposite *parent=nullptr) | |
~SatellitesComponent () override | |
void | draw (SkyPainter *skyp) override |
void | drawLabel (Satellite *sat, const QPointF &pos) |
SkyObject * | findByName (const QString &name, bool exact=true) override |
Satellite * | findSatellite (QString name) |
QList< SatelliteGroup * > | groups () |
void | loadData () |
SkyObject * | objectNearest (SkyPoint *p, double &maxrad) override |
bool | selected () override |
void | update (KSNumbers *num) override |
void | updateTLEs () |
![]() | |
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 () |
QStringList & | objectNames (int type) |
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 *) |
Protected Member Functions | |
void | drawTrails (SkyPainter *skyp) override |
Detailed Description
Represents artificial satellites on the sky map.
- Version
- 1.0
Definition at line 23 of file satellitescomponent.h.
Constructor & Destructor Documentation
◆ SatellitesComponent()
|
explicit |
Constructor.
- Parameters
-
parent pointer to the parent SkyComposite
Definition at line 23 of file satellitescomponent.cpp.
◆ ~SatellitesComponent()
|
override |
Destructor.
Definition at line 28 of file satellitescomponent.cpp.
Member Function Documentation
◆ draw()
|
overridevirtual |
Draw all satellites.
- Parameters
-
skyp SkyPainter to use
Implements SkyComponent.
Definition at line 90 of file satellitescomponent.cpp.
◆ drawLabel()
Draw label of a satellite.
- Parameters
-
sat The satellite pos The position of the satellite
Definition at line 128 of file satellitescomponent.cpp.
◆ drawTrails()
|
overrideprotectedvirtual |
Draw trails for objects.
Reimplemented from SkyComponent.
Definition at line 135 of file satellitescomponent.cpp.
◆ findByName()
|
overridevirtual |
Return object given name.
- Parameters
-
name object name exact
If true, it will return an exact match, otherwise it can return a partial match.
- Returns
- object if found, otherwise nullptr
Reimplemented from SkyComponent.
Definition at line 246 of file satellitescomponent.cpp.
◆ findSatellite()
Search a satellite by name.
- Parameters
-
name The name of the satellite
- Returns
- Satellite that was find or 0
Definition at line 196 of file satellitescomponent.cpp.
◆ groups()
QList< SatelliteGroup * > SatellitesComponent::groups | ( | ) |
- Returns
- The list of all groups
Definition at line 191 of file satellitescomponent.cpp.
◆ objectNearest()
Search the nearest satellite from point p.
- Parameters
-
p maxrad
Reimplemented from SkyComponent.
Definition at line 211 of file satellitescomponent.cpp.
◆ selected()
|
overridevirtual |
- Returns
- true if satellites must be draw.
Reimplemented from SkyComponent.
Definition at line 73 of file satellitescomponent.cpp.
◆ update()
|
overridevirtual |
Update satellites position.
- Parameters
-
num
Reimplemented from SkyComponent.
Definition at line 78 of file satellitescomponent.cpp.
◆ updateTLEs()
void SatellitesComponent::updateTLEs | ( | ) |
Download new TLE files.
Definition at line 140 of file satellitescomponent.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Nov 30 2023 04:05:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.