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

marble

  • sources
  • kde-4.12
  • 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  Q_OBJECT
35 
36 public:
37  SatellitesTLEItem( const QString &name,
38  elsetrec satrec,
39  const MarbleClock *clock );
40 
41  void update();
42 
43  QString name();
44 
45  void showOrbit( bool show );
46  void setOrbitColor( const QColor &color );
47 
48 private:
49  QString m_name;
50  bool m_showOrbit;
51  double m_earthSemiMajorAxis; // in km
52  elsetrec m_satrec;
53 
54  GeoDataTrack *m_track;
55 
56  const MarbleClock *m_clock;
57 
58  void setDescription();
59 
64  void addPointAt( const QDateTime &dateTime );
65 
72  GeoDataCoordinates fromTEME( double x, double y, double z, double gmst );
73 
77  QDateTime timeAtEpoch();
78 
82  double period();
83 
87  double apogee();
91  double perigee();
95  double semiMajorAxis();
96 
100  double inclination();
101 
106  double gmst( double minutes );
107 
111  double square( double x );
112 };
113 
114 } // namespace Marble
115 
116 #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
GeoDataTrack.h
sgp4unit.h
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::name
QString name()
Definition: SatellitesTLEItem.cpp:116
Marble::SatellitesTLEItem::update
void update()
Reimplement this method to update the placemark, for example to change its coordinates.
Definition: SatellitesTLEItem.cpp:88
TrackerPluginItem.h
Marble::SatellitesTLEItem::showOrbit
void showOrbit(bool show)
Marble::MarbleClock
Definition: MarbleClock.h:25
Marble::SatellitesTLEItem::setOrbitColor
void setOrbitColor(const QColor &color)
Definition: SatellitesTLEItem.cpp:121
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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
  • 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