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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • satellites
SatellitesTLEItem.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Guillaume Martres <smarter@ubuntu.com>
9 //
10 
11 #ifndef MARBLE_SATELLITESTLEITEM_H
12 #define MARBLE_SATELLITESTLEITEM_H
13 
14 #include "TrackerPluginItem.h"
15 
16 #include "GeoDataCoordinates.h"
17 #include "GeoDataTrack.h"
18 
19 #include "sgp4/sgp4unit.h"
20 
21 class QColor;
22 
23 namespace Marble {
24 
25 class GeoDataTrack;
26 class MarbleClock;
27 
32 class SatellitesTLEItem : public TrackerPluginItem
33 {
34 public:
35  SatellitesTLEItem( const QString &name,
36  elsetrec satrec,
37  const MarbleClock *clock );
38 
39  void update();
40 
41 private:
42  double m_earthSemiMajorAxis; // in km
43  elsetrec m_satrec;
44 
45  GeoDataTrack *m_track;
46 
47  const MarbleClock *m_clock;
48 
49  void setDescription();
50 
55  void addPointAt( const QDateTime &dateTime );
56 
63  GeoDataCoordinates fromTEME( double x, double y, double z, double gmst ) const;
64 
68  QDateTime timeAtEpoch() const;
69 
73  double period() const;
74 
78  double apogee() const;
82  double perigee() const;
86  double semiMajorAxis() const;
87 
91  double inclination() const;
92 
97  double gmst( double minutes ) const;
98 
102  static double square( double x );
103 };
104 
105 } // namespace Marble
106 
107 #endif // MARBLE_SATELLITESTLEITEM_H
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::SatellitesTLEItem
An instance SatellitesTLEItem represents an item of a two-line-elements set catalog.
Definition: SatellitesTLEItem.h:32
elsetrec
Definition: sgp4unit.h:63
Marble::GeoDataTrack
A geometry for tracking objects made of (time, coordinates) pairs.
Definition: GeoDataTrack.h:54
Marble::TrackerPluginItem::name
QString name() const
Satellite's name.
Definition: TrackerPluginItem.cpp:44
GeoDataTrack.h
sgp4unit.h
QString
QColor
Marble::SatellitesTLEItem::SatellitesTLEItem
SatellitesTLEItem(const QString &name, elsetrec satrec, const MarbleClock *clock)
Definition: SatellitesTLEItem.cpp:39
Marble::TrackerPluginItem
Subclass this to represent items in your TrackerPluginModel.
Definition: TrackerPluginItem.h:29
Marble::SatellitesTLEItem::update
void update()
Reimplement this method to update the placemark, for example to change its coordinates.
Definition: SatellitesTLEItem.cpp:81
TrackerPluginItem.h
Marble::MarbleClock
Definition: MarbleClock.h:25
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • 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
  • 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