• 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
  • speedometer
Speedometer.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 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
9 //
10 
11 //
12 // This class is a render plugin to display various Position Tracking info.
13 //
14 
15 #ifndef MARBLESpeedometer_H
16 #define MARBLESpeedometer_H
17 
18 #include <QObject>
19 #include <QHash>
20 
21 #include "AbstractFloatItem.h"
22 
23 #include "ui_Speedometer.h"
24 
25 namespace Marble
26 {
27 
28 class GeoDataCoordinates;
29 class WidgetGraphicsItem;
30 class MarbleLocale;
31 
37 class Speedometer : public AbstractFloatItem
38 {
39  Q_OBJECT
40  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.Speedometer" )
41  Q_INTERFACES( Marble::RenderPluginInterface )
42  MARBLE_PLUGIN( Speedometer )
43 
44  public:
45  Speedometer();
46  explicit Speedometer( const MarbleModel *marbleModel );
47  ~Speedometer();
48 
49  QStringList backendTypes() const;
50 
51  QString name() const;
52 
53  QString guiString() const;
54 
55  QString nameId() const;
56 
57  QString version() const;
58 
59  QString description() const;
60 
61  QList<PluginAuthor> pluginAuthors() const;
62 
63  QString copyrightYears() const;
64 
65  QIcon icon () const;
66 
67  void initialize ();
68 
69  bool isInitialized () const;
70 
71  private slots:
72  void updateLocation( GeoDataCoordinates coordinates, qreal speed );
73 
74  private:
75  MarbleLocale* m_locale;
76  Ui::Speedometer m_widget;
77  WidgetGraphicsItem* m_widgetItem;
78 };
79 
80 }
81 
82 #endif
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::RenderPluginInterface
The class that specifies the Marble layer interface of a plugin.
Definition: RenderPluginInterface.h:30
Marble::Speedometer::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: Speedometer.cpp:66
Marble::Speedometer::description
QString description() const
Returns a user description of the plugin.
Definition: Speedometer.cpp:76
Marble::Speedometer::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: Speedometer.cpp:92
Marble::Speedometer
The class that displays Position Tracking info.
Definition: Speedometer.h:37
AbstractFloatItem.h
Marble::Speedometer::Speedometer
Speedometer()
Definition: Speedometer.cpp:27
Marble::Speedometer::name
QString name() const
Returns the user-visible name of the plugin.
Definition: Speedometer.cpp:56
Marble::Speedometer::~Speedometer
~Speedometer()
Definition: Speedometer.cpp:47
Marble::Speedometer::version
QString version() const
Definition: Speedometer.cpp:71
Marble::AbstractFloatItem
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
Marble::Speedometer::copyrightYears
QString copyrightYears() const
Definition: Speedometer.cpp:81
QString
QList
Marble::WidgetGraphicsItem
Definition: WidgetGraphicsItem.h:28
QStringList
Marble::Speedometer::backendTypes
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: Speedometer.cpp:51
Marble::MarbleLocale
A class that contains all localization stuff for Marble.
Definition: MarbleLocale.h:31
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::Speedometer::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: Speedometer.cpp:61
Marble::Speedometer::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: Speedometer.cpp:86
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:83
Marble::Speedometer::initialize
void initialize()
Definition: Speedometer.cpp:97
Marble::Speedometer::isInitialized
bool isInitialized() const
Definition: Speedometer.cpp:116
QIcon
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:340
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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