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 32 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 94 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 132 of file satellitescomponent.cpp.

◆ drawTrails()

void SatellitesComponent::drawTrails ( SkyPainter * skyp)
overrideprotectedvirtual

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 139 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 250 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 200 of file satellitescomponent.cpp.

◆ groups()

QList< SatelliteGroup * > SatellitesComponent::groups ( )
Returns
The list of all groups

Definition at line 195 of file satellitescomponent.cpp.

◆ loadData()

void SatellitesComponent::loadData ( )

Definition at line 38 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 215 of file satellitescomponent.cpp.

◆ selected()

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

Reimplemented from SkyComponent.

Definition at line 77 of file satellitescomponent.cpp.

◆ update()

void SatellitesComponent::update ( KSNumbers * num)
overridevirtual

Update satellites position.

Parameters
num

Reimplemented from SkyComponent.

Definition at line 82 of file satellitescomponent.cpp.

◆ updateTLEs()

void SatellitesComponent::updateTLEs ( )

Download new TLE files.

Definition at line 144 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-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.