• 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
SatellitesModel.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_SATELLITESMODEL_H
12 #define MARBLE_SATELLITESMODEL_H
13 
14 #include <QVariant>
15 #include <QStringList>
16 #include <QVector>
17 
18 #include "TrackerPluginModel.h"
19 
20 namespace Marble {
21 
22 class MarbleClock;
23 
27 class SatellitesModel : public TrackerPluginModel
28 {
29  Q_OBJECT
30 public:
31  SatellitesModel( GeoDataTreeModel *treeModel,
32  const MarbleClock *clock );
33 
34  void loadSettings( const QHash<QString, QVariant> &settings );
35  void setPlanet( const QString &lcPlanet );
36  void updateVisibility();
37 
38  void parseFile( const QString &id, const QByteArray &file );
39 
40 protected:
46  void parseCatalog( const QString &id, const QByteArray &data );
50  void parseTLE( const QString &id, const QByteArray &data );
51 
52 private:
53  void setupColors();
54  QColor nextColor();
55 
56 private:
57  const MarbleClock *m_clock;
58  QStringList m_enabledIds;
59  QString m_lcPlanet;
60  QVector<QColor> m_colorList;
61  int m_currentColorIndex;
62 };
63 
64 } // namespace Marble
65 
66 #endif // MARBLE_SATELLITESMODEL_H
Marble::SatellitesModel::parseTLE
void parseTLE(const QString &id, const QByteArray &data)
Parse the two line elements set file id with content data.
Definition: SatellitesModel.cpp:201
Marble::GeoDataTreeModel
The representation of GeoData in a model This class represents all available data given by kml-data f...
Definition: GeoDataTreeModel.h:32
Marble::SatellitesModel
The model for satellites.
Definition: SatellitesModel.h:27
Marble::SatellitesModel::setPlanet
void setPlanet(const QString &lcPlanet)
Definition: SatellitesModel.cpp:77
Marble::SatellitesModel::SatellitesModel
SatellitesModel(GeoDataTreeModel *treeModel, const MarbleClock *clock)
Definition: SatellitesModel.cpp:28
Marble::SatellitesModel::updateVisibility
void updateVisibility()
Definition: SatellitesModel.cpp:88
Marble::SatellitesModel::parseCatalog
void parseCatalog(const QString &id, const QByteArray &data)
Parse the Marble Satellite Catalog id with content data.
Definition: SatellitesModel.cpp:134
Marble::SatellitesModel::parseFile
void parseFile(const QString &id, const QByteArray &file)
This method is called whenever a file queued up for download by downloadFile() has finished downloadi...
Definition: SatellitesModel.cpp:119
Marble::SatellitesModel::loadSettings
void loadSettings(const QHash< QString, QVariant > &settings)
Definition: SatellitesModel.cpp:69
TrackerPluginModel.h
Marble::TrackerPluginModel
A model used to download, store and update items.
Definition: TrackerPluginModel.h:29
Marble::MarbleClock
Definition: MarbleClock.h:25
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