• 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
  • annotate
GroundOverlayFrame.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 2013 Adrian Draghici <draghici.adrian.b@gmail.com>
9 //
10 
11 #ifndef MARBLE_GROUNDOVERLAYFRAME_H
12 #define MARBLE_GROUNDOVERLAYFRAME_H
13 
14 #include "SceneGraphicsItem.h"
15 #include "GeoDataGroundOverlay.h"
16 #include "TextureLayer.h"
17 
18 namespace Marble
19 {
20 
21 class GroundOverlayFrame : public SceneGraphicsItem
22 {
23 public:
24  GroundOverlayFrame( GeoDataPlacemark *placemark, GeoDataGroundOverlay *overlay, TextureLayer *textureLayer );
25 
26  enum MovedRegion {
27  NorthWest,
28  SouthWest,
29  SouthEast,
30  NorthEast,
31  Polygon
32  };
33 
34  void update();
35 
39  virtual const char *graphicType() const;
40 
41 private:
42  virtual void paint( GeoPainter *painter, const ViewportParams *viewport );
43  virtual bool mousePressEvent( QMouseEvent *event );
44  virtual bool mouseMoveEvent( QMouseEvent *event );
45  virtual bool mouseReleaseEvent( QMouseEvent *event );
46 
47 
48  int m_movedPoint;
49  GeoDataCoordinates m_movedPointCoordinates;
50  GeoDataGroundOverlay *m_overlay;
51  TextureLayer *m_textureLayer;
52  const ViewportParams *m_viewport;
53 
54  static void rotateAroundCenter( qreal lon, qreal lat, qreal &rotatedLon, qreal &rotatedLat, GeoDataLatLonBox &box, bool inverse = false );
55 };
56 
57 }
58 
59 #endif
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
GeoDataGroundOverlay.h
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::GroundOverlayFrame::GroundOverlayFrame
GroundOverlayFrame(GeoDataPlacemark *placemark, GeoDataGroundOverlay *overlay, TextureLayer *textureLayer)
Definition: GroundOverlayFrame.cpp:23
Marble::GroundOverlayFrame
Definition: GroundOverlayFrame.h:21
QMouseEvent
Marble::GroundOverlayFrame::NorthWest
Definition: GroundOverlayFrame.h:27
TextureLayer.h
Marble::SceneGraphicsItem
This is the base class for all scene graphics included within the annotate plugin.
Definition: SceneGraphicsItem.h:34
Marble::TextureLayer
Definition: TextureLayer.h:38
Marble::GroundOverlayFrame::SouthWest
Definition: GroundOverlayFrame.h:28
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
SceneGraphicsItem.h
Marble::GroundOverlayFrame::NorthEast
Definition: GroundOverlayFrame.h:30
Marble::GroundOverlayFrame::Polygon
Definition: GroundOverlayFrame.h:31
Marble::GroundOverlayFrame::update
void update()
Definition: GroundOverlayFrame.cpp:138
Marble::GroundOverlayFrame::graphicType
virtual const char * graphicType() const
Provides information for downcasting a SceneGraphicsItem.
Definition: GroundOverlayFrame.cpp:191
Marble::GroundOverlayFrame::SouthEast
Definition: GroundOverlayFrame.h:29
Marble::GeoDataGroundOverlay
Definition: GeoDataGroundOverlay.h:24
Marble::SceneGraphicsItem::placemark
const GeoDataPlacemark * placemark() const
SceneGraphicItem class, when called from one of its derived classes' constructors, takes as a parameter a pointer to the placemark of the graphic element.
Definition: SceneGraphicsItem.cpp:41
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
Marble::GeoDataLatLonBox
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
Marble::GroundOverlayFrame::MovedRegion
MovedRegion
Definition: GroundOverlayFrame.h:26
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