• 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
  • 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  explicit ElevationProfileMarker( const MarbleModel *marbleModel = 0 );
38  ~ElevationProfileMarker();
39 
40  QStringList backendTypes() const;
41 
42  QString renderPolicy() const;
43 
44  QStringList renderPosition() const;
45 
46  qreal zValue() const; // Overriding LayerInterface to paint on top of the route
47 
48  QString name() const;
49 
50  QString guiString() const;
51 
52  QString nameId() const;
53 
54  QString version() const;
55 
56  QString description() const;
57 
58  QString copyrightYears() const;
59 
60  QList<PluginAuthor> pluginAuthors() const;
61 
62  QIcon icon() const;
63 
64  void initialize();
65 
66  bool isInitialized() const;
67 
68  bool render( GeoPainter *painter, ViewportParams *viewport,
69  const QString &renderPos, GeoSceneLayer *layer = 0 );
70 
71  private Q_SLOTS:
72  void onGeoObjectAdded( GeoDataObject *object );
73  void onGeoObjectRemoved( GeoDataObject *object );
74 
75  private:
76  GeoDataPlacemark *m_markerPlacemark;
77  GeoDataCoordinates m_currentPosition;
78 
79  BillboardGraphicsItem m_markerItem;
80  LabelGraphicsItem m_markerIcon;
81  LabelGraphicsItem m_markerText;
82 };
83 
84 
85 }
86 
87 #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:131
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:47
LabelGraphicsItem.h
Marble::BillboardGraphicsItem
Base class for all 2D labels (a.k.a.
Definition: BillboardGraphicsItem.h:32
Marble::ElevationProfileMarker::copyrightYears
QString copyrightYears() const
Definition: ElevationProfileMarker.cpp:96
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:66
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:61
Marble::ElevationProfileMarker::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: ElevationProfileMarker.cpp:101
Marble::ElevationProfileMarker::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: ElevationProfileMarker.cpp:108
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
Marble::ElevationProfileMarker::ElevationProfileMarker
ElevationProfileMarker(const MarbleModel *marbleModel=0)
Definition: ElevationProfileMarker.cpp:28
Marble::ElevationProfileMarker::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: ElevationProfileMarker.cpp:76
QString
QList
QStringList
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:81
Marble::ElevationProfileMarker::description
QString description() const
Returns a user description of the plugin.
Definition: ElevationProfileMarker.cpp:91
Marble::ElevationProfileMarker::name
QString name() const
Returns the user-visible name of the plugin.
Definition: ElevationProfileMarker.cpp:71
Marble::ElevationProfileMarker::version
QString version() const
Definition: ElevationProfileMarker.cpp:86
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:51
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::ElevationProfileMarker::renderPolicy
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: ElevationProfileMarker.cpp:56
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:113
Marble::ElevationProfileMarker::isInitialized
bool isInitialized() const
Definition: ElevationProfileMarker.cpp:126
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:83
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
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:39 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