• 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
  • elevationprofilemarker
ElevationProfileMarker.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 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
9 //
10 
11 #ifndef ELEVATIONPROFILEMARKER_H
12 #define ELEVATIONPROFILEMARKER_H
13 
14 #include "RenderPlugin.h"
15 
16 #include "BillboardGraphicsItem.h"
17 #include "GeoDataCoordinates.h"
18 #include "LabelGraphicsItem.h"
19 
20 
21 namespace Marble
22 {
23 
24 class GeoDataObject;
25 class GeoDataPlacemark;
26 
27 class ElevationProfileMarker : public RenderPlugin
28 {
29  Q_OBJECT
30  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.ElevationProfileMarker" )
31 
32  Q_INTERFACES( Marble::RenderPluginInterface )
33 
34  MARBLE_PLUGIN( ElevationProfileMarker )
35 
36  public:
37  ElevationProfileMarker();
38  explicit ElevationProfileMarker( const MarbleModel *marbleModel );
39  ~ElevationProfileMarker();
40 
41  QStringList backendTypes() const;
42 
43  QString renderPolicy() const;
44 
45  QStringList renderPosition() const;
46 
47  qreal zValue() const; // Overriding LayerInterface to paint on top of the route
48 
49  QString name() const;
50 
51  QString guiString() const;
52 
53  QString nameId() const;
54 
55  QString version() const;
56 
57  QString description() const;
58 
59  QString copyrightYears() const;
60 
61  QList<PluginAuthor> pluginAuthors() const;
62 
63  QIcon icon() const;
64 
65  void initialize();
66 
67  bool isInitialized() const;
68 
69  bool render( GeoPainter *painter, ViewportParams *viewport,
70  const QString &renderPos, GeoSceneLayer *layer = 0 );
71 
72  private Q_SLOTS:
73  void onGeoObjectAdded( GeoDataObject *object );
74  void onGeoObjectRemoved( GeoDataObject *object );
75 
76  private:
77  int m_fontHeight;
78 
79  GeoDataPlacemark *m_markerPlacemark;
80  GeoDataCoordinates m_currentPosition;
81 
82  BillboardGraphicsItem m_markerItem;
83  LabelGraphicsItem m_markerIcon;
84  LabelGraphicsItem m_markerText;
85 };
86 
87 
88 }
89 
90 #endif // ELEVATIONPROFILEMARKER_H
Marble::ElevationProfileMarker::render
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: ElevationProfileMarker.cpp:134
GeoDataCoordinates.h
BillboardGraphicsItem.h
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::ElevationProfileMarker::~ElevationProfileMarker
~ElevationProfileMarker()
Definition: ElevationProfileMarker.cpp:50
LabelGraphicsItem.h
Marble::ElevationProfileMarker::ElevationProfileMarker
ElevationProfileMarker()
Definition: ElevationProfileMarker.cpp:28
Marble::BillboardGraphicsItem
Base class for all 2D labels (a.k.a.
Definition: BillboardGraphicsItem.h:32
Marble::ElevationProfileMarker::copyrightYears
QString copyrightYears() const
Definition: ElevationProfileMarker.cpp:99
Marble::ElevationProfileMarker
Definition: ElevationProfileMarker.h:27
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::ElevationProfileMarker::zValue
qreal zValue() const
Returns the z value of the layer (default: 0.0).
Definition: ElevationProfileMarker.cpp:69
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::ElevationProfileMarker::renderPosition
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: ElevationProfileMarker.cpp:64
Marble::ElevationProfileMarker::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: ElevationProfileMarker.cpp:104
Marble::ElevationProfileMarker::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: ElevationProfileMarker.cpp:111
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
Marble::ElevationProfileMarker::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: ElevationProfileMarker.cpp:79
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::ElevationProfileMarker::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: ElevationProfileMarker.cpp:84
Marble::ElevationProfileMarker::description
QString description() const
Returns a user description of the plugin.
Definition: ElevationProfileMarker.cpp:94
Marble::ElevationProfileMarker::name
QString name() const
Returns the user-visible name of the plugin.
Definition: ElevationProfileMarker.cpp:74
Marble::ElevationProfileMarker::version
QString version() const
Definition: ElevationProfileMarker.cpp:89
Marble::ElevationProfileMarker::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: ElevationProfileMarker.cpp:54
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
Marble::ElevationProfileMarker::renderPolicy
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: ElevationProfileMarker.cpp:59
RenderPlugin.h
Marble::LabelGraphicsItem
A label item provides an Item that displays text or images/pixmaps.
Definition: LabelGraphicsItem.h:31
Marble::ElevationProfileMarker::initialize
void initialize()
Definition: ElevationProfileMarker.cpp:116
Marble::ElevationProfileMarker::isInitialized
bool isInitialized() const
Definition: ElevationProfileMarker.cpp:129
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:81
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
Marble::RenderPlugin
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:337
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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