• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • skycomponents
satellitescomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  satellitescomponent.h - K Desktop Planetarium
3  -------------------
4  begin : Tue 02 Mar 2011
5  copyright : (C) 2009 by Jerome SONRIER
6  email : jsid@emor3j.fr.eu.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef SATELLITESCOMPONENT_H
19 #define SATELLITESCOMPONENT_H
20 
21 #include <QList>
22 
23 #include <kio/job.h>
24 
25 #include "skycomponent.h"
26 #include "satellitegroup.h"
27 
28 class Satellite;
29 
36 class SatellitesComponent : public SkyComponent
37 {
38 public:
43  explicit SatellitesComponent( SkyComposite *parent );
44 
48  ~SatellitesComponent();
49 
53  virtual bool selected();
54 
59  virtual void draw( SkyPainter *skyp );
60 
65  virtual void update( KSNumbers *num );
66 
70  void updateTLEs();
71 
75  QList<SatelliteGroup*> groups();
76 
82  Satellite* findSatellite( QString name );
83 
89  void drawLabel( Satellite *sat, QPointF pos );
90 
96  SkyObject* objectNearest( SkyPoint* p, double& maxrad );
97 
98 protected:
99  virtual void drawTrails( SkyPainter* skyp );
100 
101 private:
102  QList<SatelliteGroup*> m_groups; // List of all groups
103  KIO::Job *m_downloadJob;
104 };
105 
106 #endif
SatellitesComponent
Represents artificial satellites on the sky map.
Definition: satellitescomponent.h:36
satellitegroup.h
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
SatellitesComponent::SatellitesComponent
SatellitesComponent(SkyComposite *parent)
Constructor.
Definition: satellitescomponent.cpp:38
SatellitesComponent::draw
virtual void draw(SkyPainter *skyp)
Draw all satellites.
Definition: satellitescomponent.cpp:79
SatellitesComponent::~SatellitesComponent
~SatellitesComponent()
Destructor.
Definition: satellitescomponent.cpp:59
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
SatellitesComponent::objectNearest
SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Search the nearest satellite from point p.
Definition: satellitescomponent.cpp:156
SatellitesComponent::selected
virtual bool selected()
Definition: satellitescomponent.cpp:64
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
SatellitesComponent::updateTLEs
void updateTLEs()
Download new TLE files.
Definition: satellitescomponent.cpp:111
SatellitesComponent::drawTrails
virtual void drawTrails(SkyPainter *skyp)
Draw trails for objects.
Definition: satellitescomponent.cpp:107
skycomponent.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
SatellitesComponent::groups
QList< SatelliteGroup * > groups()
Definition: satellitescomponent.cpp:138
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
SatellitesComponent::drawLabel
void drawLabel(Satellite *sat, QPointF pos)
Draw label of a satellite.
Definition: satellitescomponent.cpp:100
Satellite
Represents an artificial satellites.
Definition: satellite.h:35
SatellitesComponent::update
virtual void update(KSNumbers *num)
Update satellites position.
Definition: satellitescomponent.cpp:68
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
SatellitesComponent::findSatellite
Satellite * findSatellite(QString name)
Search a satellite by name.
Definition: satellitescomponent.cpp:143
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal