SatellitesComponent

Search for usage in LXR

#include <satellitescomponent.h>

Inheritance diagram for SatellitesComponent:

Public Member Functions

 SatellitesComponent (SkyComposite *parent=nullptr)
 
 ~SatellitesComponent () override
 
void draw (SkyPainter *skyp) override
 
void drawLabel (Satellite *sat, const QPointF &pos)
 
SkyObjectfindByName (const QString &name, bool exact=true) override
 
SatellitefindSatellite (QString name)
 
QList< SatelliteGroup * > groups ()
 
void loadData ()
 
SkyObjectobjectNearest (SkyPoint *p, double &maxrad) override
 
bool selected () override
 
void update (KSNumbers *num) override
 
void updateTLEs ()
 
- 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)
 
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.

Author
Jérôme SONRIER
Version
1.0

Definition at line 23 of file satellitescomponent.h.

Constructor & Destructor Documentation

◆ SatellitesComponent()

SatellitesComponent::SatellitesComponent ( SkyComposite parent = nullptr)
explicit

Constructor.

Parameters
parentpointer to the parent SkyComposite

Definition at line 23 of file satellitescomponent.cpp.

◆ ~SatellitesComponent()

SatellitesComponent::~SatellitesComponent ( )
override

Destructor.

Definition at line 28 of file satellitescomponent.cpp.

Member Function Documentation

◆ draw()

void SatellitesComponent::draw ( SkyPainter skyp)
overridevirtual

Draw all satellites.

Parameters
skypSkyPainter to use

Implements SkyComponent.

Definition at line 90 of file satellitescomponent.cpp.

◆ drawLabel()

void SatellitesComponent::drawLabel ( Satellite sat,
const QPointF pos 
)

Draw label of a satellite.

Parameters
satThe satellite
posThe position of the satellite

Definition at line 128 of file satellitescomponent.cpp.

◆ drawTrails()

void SatellitesComponent::drawTrails ( SkyPainter skyp)
overrideprotectedvirtual

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 135 of file satellitescomponent.cpp.

◆ findByName()

SkyObject * SatellitesComponent::findByName ( const QString name,
bool  exact = true 
)
overridevirtual

Return object given name.

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

Satellite * SatellitesComponent::findSatellite ( QString  name)

Search a satellite by name.

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

SkyObject * SatellitesComponent::objectNearest ( SkyPoint p,
double &  maxrad 
)
overridevirtual

Search the nearest satellite from point p.

Parameters
p
maxrad

Reimplemented from SkyComponent.

Definition at line 211 of file satellitescomponent.cpp.

◆ selected()

bool SatellitesComponent::selected ( )
overridevirtual
Returns
true if satellites must be draw.

Reimplemented from SkyComponent.

Definition at line 73 of file satellitescomponent.cpp.

◆ update()

void SatellitesComponent::update ( KSNumbers num)
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Aug 17 2022 04:14:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.