• 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
  • lib
  • marble
  • geodata
  • data
GeoDataGroundOverlay.cpp
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 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #include "GeoDataGroundOverlay.h"
12 #include "GeoDataTypes.h"
13 
14 namespace Marble {
15 
16 class GeoDataGroundOverlayPrivate
17 {
18 public:
19  double m_altitude;
20 
21  AltitudeMode m_altitudeMode;
22 
23  GeoDataLatLonBox m_latLonBox;
24 
25  GeoDataLatLonQuad m_latLonQuad;
26 
27  GeoDataGroundOverlayPrivate();
28 };
29 
30 GeoDataGroundOverlayPrivate::GeoDataGroundOverlayPrivate() :
31  m_altitude( 0.0 ), m_altitudeMode( ClampToGround )
32 {
33  // nothing to do
34 }
35 
36 GeoDataGroundOverlay::GeoDataGroundOverlay() : d( new GeoDataGroundOverlayPrivate )
37 {
38  // nothing to do
39 }
40 
41 GeoDataGroundOverlay::GeoDataGroundOverlay( const Marble::GeoDataGroundOverlay &other ) :
42  GeoDataOverlay( other ), d( new GeoDataGroundOverlayPrivate( *other.d ) )
43 {
44  // nothing to do
45 }
46 
47 GeoDataGroundOverlay &GeoDataGroundOverlay::operator=( const GeoDataGroundOverlay &other )
48 {
49  *d = *other.d;
50  return *this;
51 }
52 
53 GeoDataGroundOverlay::~GeoDataGroundOverlay()
54 {
55  delete d;
56 }
57 
58 const char *GeoDataGroundOverlay::nodeType() const
59 {
60  return GeoDataTypes::GeoDataGroundOverlayType;
61 }
62 
63 double GeoDataGroundOverlay::altitude() const
64 {
65  return d->m_altitude;
66 }
67 
68 void GeoDataGroundOverlay::setAltitude( double altitude )
69 {
70  d->m_altitude = altitude;
71 }
72 
73 AltitudeMode GeoDataGroundOverlay::altitudeMode() const
74 {
75  return d->m_altitudeMode;
76 }
77 
78 void GeoDataGroundOverlay::setAltitudeMode( const AltitudeMode altitudeMode )
79 {
80  d->m_altitudeMode = altitudeMode;
81 }
82 
83 GeoDataLatLonBox &GeoDataGroundOverlay::latLonBox() const
84 {
85  return d->m_latLonBox;
86 }
87 
88 void GeoDataGroundOverlay::setLatLonBox( const GeoDataLatLonBox &box )
89 {
90  d->m_latLonBox = box;
91 }
92 
93 GeoDataLatLonQuad &GeoDataGroundOverlay::latLonQuad()
94 {
95  return d->m_latLonQuad;
96 }
97 
98 const GeoDataLatLonQuad &GeoDataGroundOverlay::latLonQuad() const
99 {
100  return d->m_latLonQuad;
101 }
102 
103 }
Marble::GeoDataGroundOverlay::altitudeMode
AltitudeMode altitudeMode() const
Definition: GeoDataGroundOverlay.cpp:73
GeoDataGroundOverlay.h
Marble::GeoDataTypes::GeoDataGroundOverlayType
const char * GeoDataGroundOverlayType
Definition: GeoDataTypes.cpp:40
Marble::GeoDataGroundOverlay::latLonBox
GeoDataLatLonBox & latLonBox() const
Definition: GeoDataGroundOverlay.cpp:83
Marble::GeoDataLatLonQuad
Definition: GeoDataLatLonQuad.h:22
Marble::GeoDataGroundOverlay::operator=
GeoDataGroundOverlay & operator=(const GeoDataGroundOverlay &other)
Definition: GeoDataGroundOverlay.cpp:47
Marble::AltitudeMode
AltitudeMode
Definition: MarbleGlobal.h:145
Marble::GeoDataGroundOverlay::~GeoDataGroundOverlay
~GeoDataGroundOverlay()
Definition: GeoDataGroundOverlay.cpp:53
Marble::GeoDataGroundOverlay::GeoDataGroundOverlay
GeoDataGroundOverlay()
Definition: GeoDataGroundOverlay.cpp:36
Marble::GeoDataOverlay
Definition: GeoDataOverlay.h:27
Marble::GeoDataGroundOverlay::latLonQuad
const GeoDataLatLonQuad & latLonQuad() const
Definition: GeoDataGroundOverlay.cpp:98
Marble::ClampToGround
Altitude always sticks to ground level.
Definition: MarbleGlobal.h:146
Marble::GeoDataGroundOverlay::setAltitude
void setAltitude(double altitude)
Definition: GeoDataGroundOverlay.cpp:68
Marble::GeoDataGroundOverlay::setAltitudeMode
void setAltitudeMode(const AltitudeMode altitudeMode)
Definition: GeoDataGroundOverlay.cpp:78
Marble::GeoDataGroundOverlay
Definition: GeoDataGroundOverlay.h:24
Marble::GeoDataGroundOverlay::setLatLonBox
void setLatLonBox(const GeoDataLatLonBox &box)
Definition: GeoDataGroundOverlay.cpp:88
GeoDataTypes.h
Marble::GeoDataGroundOverlay::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataGroundOverlay.cpp:58
Marble::GeoDataGroundOverlay::altitude
double altitude() const
Definition: GeoDataGroundOverlay.cpp:63
Marble::GeoDataLatLonBox
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
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