• 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
  • 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 bool GeoDataGroundOverlay::operator==(const GeoDataGroundOverlay& other) const
54 {
55  return equals(other) &&
56  d->m_altitude == other.d->m_altitude &&
57  d->m_altitudeMode == other.d->m_altitudeMode &&
58  d->m_latLonBox == other.d->m_latLonBox &&
59  d->m_latLonQuad == other.d->m_latLonQuad;
60 }
61 
62 bool GeoDataGroundOverlay::operator!=(const GeoDataGroundOverlay& other) const
63 {
64  return !this->operator==(other);
65 }
66 
67 GeoDataGroundOverlay::~GeoDataGroundOverlay()
68 {
69  delete d;
70 }
71 
72 const char *GeoDataGroundOverlay::nodeType() const
73 {
74  return GeoDataTypes::GeoDataGroundOverlayType;
75 }
76 
77 double GeoDataGroundOverlay::altitude() const
78 {
79  return d->m_altitude;
80 }
81 
82 void GeoDataGroundOverlay::setAltitude( double altitude )
83 {
84  d->m_altitude = altitude;
85 }
86 
87 AltitudeMode GeoDataGroundOverlay::altitudeMode() const
88 {
89  return d->m_altitudeMode;
90 }
91 
92 void GeoDataGroundOverlay::setAltitudeMode( const AltitudeMode altitudeMode )
93 {
94  d->m_altitudeMode = altitudeMode;
95 }
96 
97 GeoDataLatLonBox &GeoDataGroundOverlay::latLonBox() const
98 {
99  return d->m_latLonBox;
100 }
101 
102 void GeoDataGroundOverlay::setLatLonBox( const GeoDataLatLonBox &box )
103 {
104  d->m_latLonBox = box;
105 }
106 
107 GeoDataLatLonQuad &GeoDataGroundOverlay::latLonQuad()
108 {
109  return d->m_latLonQuad;
110 }
111 
112 const GeoDataLatLonQuad &GeoDataGroundOverlay::latLonQuad() const
113 {
114  return d->m_latLonQuad;
115 }
116 
117 void GeoDataGroundOverlay::setLatLonQuad(const GeoDataLatLonQuad& quad)
118 {
119  d->m_latLonQuad = quad;
120 }
121 
122 }
Marble::GeoDataGroundOverlay::altitudeMode
AltitudeMode altitudeMode() const
Definition: GeoDataGroundOverlay.cpp:87
Marble::GeoDataGroundOverlay::operator!=
bool operator!=(const GeoDataGroundOverlay &other) const
Definition: GeoDataGroundOverlay.cpp:62
Marble::GeoDataOverlay::equals
bool equals(const GeoDataOverlay &other) const
Definition: GeoDataOverlay.cpp:108
GeoDataGroundOverlay.h
Marble::GeoDataTypes::GeoDataGroundOverlayType
const char * GeoDataGroundOverlayType
Definition: GeoDataTypes.cpp:44
Marble::GeoDataGroundOverlay::latLonBox
GeoDataLatLonBox & latLonBox() const
Definition: GeoDataGroundOverlay.cpp:97
Marble::GeoDataLatLonQuad
Definition: GeoDataLatLonQuad.h:22
Marble::GeoDataGroundOverlay::operator=
GeoDataGroundOverlay & operator=(const GeoDataGroundOverlay &other)
Definition: GeoDataGroundOverlay.cpp:47
Marble::AltitudeMode
AltitudeMode
Definition: MarbleGlobal.h:147
Marble::GeoDataGroundOverlay::~GeoDataGroundOverlay
~GeoDataGroundOverlay()
Definition: GeoDataGroundOverlay.cpp:67
Marble::GeoDataGroundOverlay::GeoDataGroundOverlay
GeoDataGroundOverlay()
Definition: GeoDataGroundOverlay.cpp:36
Marble::GeoDataOverlay
Definition: GeoDataOverlay.h:27
Marble::GeoDataGroundOverlay::setLatLonQuad
void setLatLonQuad(const GeoDataLatLonQuad &quad)
Definition: GeoDataGroundOverlay.cpp:117
Marble::GeoDataGroundOverlay::latLonQuad
const GeoDataLatLonQuad & latLonQuad() const
Definition: GeoDataGroundOverlay.cpp:112
Marble::GeoDataGroundOverlay::operator==
bool operator==(const GeoDataGroundOverlay &other) const
Definition: GeoDataGroundOverlay.cpp:53
Marble::ClampToGround
Altitude always sticks to ground level.
Definition: MarbleGlobal.h:148
Marble::GeoDataGroundOverlay::setAltitude
void setAltitude(double altitude)
Definition: GeoDataGroundOverlay.cpp:82
Marble::GeoDataGroundOverlay::setAltitudeMode
void setAltitudeMode(const AltitudeMode altitudeMode)
Definition: GeoDataGroundOverlay.cpp:92
Marble::GeoDataGroundOverlay
Definition: GeoDataGroundOverlay.h:24
Marble::GeoDataGroundOverlay::setLatLonBox
void setLatLonBox(const GeoDataLatLonBox &box)
Definition: GeoDataGroundOverlay.cpp:102
GeoDataTypes.h
Marble::GeoDataGroundOverlay::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataGroundOverlay.cpp:72
Marble::GeoDataGroundOverlay::altitude
double altitude() const
Definition: GeoDataGroundOverlay.cpp:77
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-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