• 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
GeoDataPhotoOverlay.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 // Copyright 2013 Mohammed Nafees <nafees.technocool@gmail.com>
10 //
11 
12 #include "GeoDataPhotoOverlay.h"
13 #include "GeoDataTypes.h"
14 
15 namespace Marble {
16 
17 class GeoDataPhotoOverlayPrivate
18 {
19 public:
20  GeoDataPhotoOverlayPrivate();
21 
22  qreal m_rotation;
23  GeoDataViewVolume m_viewVolume;
24  GeoDataImagePyramid m_imagePyramid;
25  GeoDataPoint m_point;
26  GeoDataPhotoOverlay::Shape m_shape;
27 };
28 
29 GeoDataPhotoOverlayPrivate::GeoDataPhotoOverlayPrivate() :
30  m_rotation( 0.0 ),
31  m_viewVolume(),
32  m_imagePyramid(),
33  m_point(),
34  m_shape( GeoDataPhotoOverlay::Rectangle )
35 {
36  // nothing to do
37 }
38 
39 GeoDataPhotoOverlay::GeoDataPhotoOverlay() : d( new GeoDataPhotoOverlayPrivate )
40 {
41  // nothing to do
42 }
43 
44 GeoDataPhotoOverlay::GeoDataPhotoOverlay( const Marble::GeoDataPhotoOverlay &other ) :
45  GeoDataOverlay( other ), d( new GeoDataPhotoOverlayPrivate( *other.d ) )
46 {
47  // nothing to do
48 }
49 
50 GeoDataPhotoOverlay &GeoDataPhotoOverlay::operator=( const GeoDataPhotoOverlay &other )
51 {
52  *d = *other.d;
53  return *this;
54 }
55 
56 bool GeoDataPhotoOverlay::operator==(const GeoDataPhotoOverlay& other) const
57 {
58  return equals(other) &&
59  d->m_rotation == other.d->m_rotation &&
60  d->m_shape == other.d->m_shape &&
61  d->m_imagePyramid == other.d->m_imagePyramid &&
62  d->m_point == other.d->m_point &&
63  d->m_viewVolume == other.d->m_viewVolume;
64 }
65 
66 bool GeoDataPhotoOverlay::operator!=(const GeoDataPhotoOverlay& other) const
67 {
68  return !this->operator==(other);
69 }
70 
71 GeoDataPhotoOverlay::~GeoDataPhotoOverlay()
72 {
73  delete d;
74 }
75 
76 const char *GeoDataPhotoOverlay::nodeType() const
77 {
78  return GeoDataTypes::GeoDataPhotoOverlayType;
79 }
80 
81 qreal GeoDataPhotoOverlay::rotation() const
82 {
83  return d->m_rotation;
84 }
85 
86 void GeoDataPhotoOverlay::setRotation( const qreal rotation )
87 {
88  d->m_rotation = rotation;
89 }
90 
91 GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume()
92 {
93  return d->m_viewVolume;
94 }
95 
96 const GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume() const
97 {
98  return d->m_viewVolume;
99 }
100 
101 void GeoDataPhotoOverlay::setViewVolume( const GeoDataViewVolume &viewVolume )
102 {
103  d->m_viewVolume = viewVolume;
104 }
105 
106 GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid()
107 {
108  return d->m_imagePyramid;
109 }
110 
111 const GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid() const
112 {
113  return d->m_imagePyramid;
114 }
115 
116 void GeoDataPhotoOverlay::setImagePyramid( const GeoDataImagePyramid &imagePyramid )
117 {
118  d->m_imagePyramid = imagePyramid;
119 }
120 
121 GeoDataPoint& GeoDataPhotoOverlay::point()
122 {
123  return d->m_point;
124 }
125 
126 const GeoDataPoint& GeoDataPhotoOverlay::point() const
127 {
128  return d->m_point;
129 }
130 
131 void GeoDataPhotoOverlay::setPoint( const GeoDataPoint &point )
132 {
133  d->m_point = point;
134 }
135 
136 GeoDataPhotoOverlay::Shape GeoDataPhotoOverlay::shape() const
137 {
138  return d->m_shape;
139 }
140 
141 void GeoDataPhotoOverlay::setShape( Shape shape )
142 {
143  d->m_shape = shape;
144 }
145 
146 }
Marble::GeoDataPoint
A Geometry object representing a 3d point.
Definition: GeoDataPoint.h:47
Marble::GeoDataPhotoOverlay::imagePyramid
GeoDataImagePyramid & imagePyramid()
Definition: GeoDataPhotoOverlay.cpp:106
Marble::GeoDataOverlay::equals
bool equals(const GeoDataOverlay &other) const
Definition: GeoDataOverlay.cpp:108
Marble::GeoDataPhotoOverlay::shape
Shape shape() const
Definition: GeoDataPhotoOverlay.cpp:136
Marble::GeoDataPhotoOverlay::setRotation
void setRotation(const qreal rotation)
Definition: GeoDataPhotoOverlay.cpp:86
Marble::GeoDataImagePyramid
Definition: GeoDataImagePyramid.h:22
Marble::GeoDataPhotoOverlay::operator!=
bool operator!=(const GeoDataPhotoOverlay &other) const
Definition: GeoDataPhotoOverlay.cpp:66
Marble::GeoDataPhotoOverlay::~GeoDataPhotoOverlay
~GeoDataPhotoOverlay()
Definition: GeoDataPhotoOverlay.cpp:71
Marble::GeoDataPhotoOverlay::setPoint
void setPoint(const GeoDataPoint &point)
Definition: GeoDataPhotoOverlay.cpp:131
Marble::GeoDataPhotoOverlay::viewVolume
GeoDataViewVolume & viewVolume()
Definition: GeoDataPhotoOverlay.cpp:91
Marble::GeoDataPhotoOverlay::operator==
bool operator==(const GeoDataPhotoOverlay &other) const
Definition: GeoDataPhotoOverlay.cpp:56
Marble::GeoDataViewVolume
Definition: GeoDataViewVolume.h:22
Marble::GeoDataPhotoOverlay
Definition: GeoDataPhotoOverlay.h:27
Marble::GeoDataPhotoOverlay::rotation
qreal rotation() const
Definition: GeoDataPhotoOverlay.cpp:81
Marble::GeoDataPhotoOverlay::Shape
Shape
Definition: GeoDataPhotoOverlay.h:42
Marble::GeoDataPhotoOverlay::point
GeoDataPoint & point()
Definition: GeoDataPhotoOverlay.cpp:121
Marble::GeoDataPhotoOverlay::setViewVolume
void setViewVolume(const GeoDataViewVolume &viewVolume)
Definition: GeoDataPhotoOverlay.cpp:101
Marble::GeoDataPhotoOverlay::GeoDataPhotoOverlay
GeoDataPhotoOverlay()
Definition: GeoDataPhotoOverlay.cpp:39
Marble::GeoDataPhotoOverlay::setShape
void setShape(Shape shape)
Definition: GeoDataPhotoOverlay.cpp:141
Marble::GeoDataOverlay
Definition: GeoDataOverlay.h:27
Marble::GeoDataPhotoOverlay::operator=
GeoDataPhotoOverlay & operator=(const GeoDataPhotoOverlay &other)
Definition: GeoDataPhotoOverlay.cpp:50
Marble::GeoDataPhotoOverlay::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataPhotoOverlay.cpp:76
GeoDataTypes.h
GeoDataPhotoOverlay.h
Marble::GeoDataPhotoOverlay::setImagePyramid
void setImagePyramid(const GeoDataImagePyramid &imagePyramid)
Definition: GeoDataPhotoOverlay.cpp:116
Marble::GeoDataTypes::GeoDataPhotoOverlayType
const char * GeoDataPhotoOverlayType
Definition: GeoDataTypes.cpp:65
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