Marble

GeoDataPhotoOverlay.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Dennis Nienhüser <[email protected]>
4 // SPDX-FileCopyrightText: 2013 Mohammed Nafees <[email protected]>
5 //
6 
7 #include "GeoDataPhotoOverlay.h"
8 #include "GeoDataPhotoOverlay_p.h"
9 
10 namespace Marble {
11 
12 GeoDataPhotoOverlay::GeoDataPhotoOverlay()
13  : GeoDataOverlay(new GeoDataPhotoOverlayPrivate)
14 {
15  // nothing to do
16 }
17 
18 GeoDataPhotoOverlay::GeoDataPhotoOverlay(const GeoDataPhotoOverlay &other)
19  : GeoDataOverlay(other, new GeoDataPhotoOverlayPrivate(*other.d_func()))
20 {
21  // nothing to do
22 }
23 
24 GeoDataPhotoOverlay::~GeoDataPhotoOverlay()
25 {
26 }
27 
28 GeoDataPhotoOverlay &GeoDataPhotoOverlay::operator=( const GeoDataPhotoOverlay &other )
29 {
30  if (this != &other) {
31  Q_D(GeoDataPhotoOverlay);
32  *d = *other.d_func();
33  }
34 
35  return *this;
36 }
37 
38 bool GeoDataPhotoOverlay::operator==(const GeoDataPhotoOverlay& other) const
39 {
40  Q_D(const GeoDataPhotoOverlay);
41  const GeoDataPhotoOverlayPrivate* const other_d = other.d_func();
42 
43  return equals(other) &&
44  d->m_rotation == other_d->m_rotation &&
45  d->m_shape == other_d->m_shape &&
46  d->m_imagePyramid == other_d->m_imagePyramid &&
47  d->m_point == other_d->m_point &&
48  d->m_viewVolume == other_d->m_viewVolume;
49 }
50 
51 bool GeoDataPhotoOverlay::operator!=(const GeoDataPhotoOverlay& other) const
52 {
53  return !this->operator==(other);
54 }
55 
56 GeoDataFeature * GeoDataPhotoOverlay::clone() const
57 {
58  return new GeoDataPhotoOverlay(*this);
59 }
60 
61 const char *GeoDataPhotoOverlay::nodeType() const
62 {
63  Q_D(const GeoDataPhotoOverlay);
64  return GeoDataTypes::GeoDataPhotoOverlayType;
65 }
66 
67 qreal GeoDataPhotoOverlay::rotation() const
68 {
69  Q_D(const GeoDataPhotoOverlay);
70  return d->m_rotation;
71 }
72 
73 void GeoDataPhotoOverlay::setRotation( const qreal rotation )
74 {
75  Q_D(GeoDataPhotoOverlay);
76  d->m_rotation = rotation;
77 }
78 
79 GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume()
80 {
81  Q_D(GeoDataPhotoOverlay);
82  return d->m_viewVolume;
83 }
84 
85 const GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume() const
86 {
87  Q_D(const GeoDataPhotoOverlay);
88  return d->m_viewVolume;
89 }
90 
91 void GeoDataPhotoOverlay::setViewVolume( const GeoDataViewVolume &viewVolume )
92 {
93  Q_D(GeoDataPhotoOverlay);
94  d->m_viewVolume = viewVolume;
95 }
96 
97 GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid()
98 {
99  Q_D(GeoDataPhotoOverlay);
100  return d->m_imagePyramid;
101 }
102 
103 const GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid() const
104 {
105  Q_D(const GeoDataPhotoOverlay);
106  return d->m_imagePyramid;
107 }
108 
109 void GeoDataPhotoOverlay::setImagePyramid( const GeoDataImagePyramid &imagePyramid )
110 {
111  Q_D(GeoDataPhotoOverlay);
112  d->m_imagePyramid = imagePyramid;
113 }
114 
115 GeoDataPoint& GeoDataPhotoOverlay::point()
116 {
117  Q_D(GeoDataPhotoOverlay);
118  return d->m_point;
119 }
120 
121 const GeoDataPoint& GeoDataPhotoOverlay::point() const
122 {
123  Q_D(const GeoDataPhotoOverlay);
124  return d->m_point;
125 }
126 
127 void GeoDataPhotoOverlay::setPoint( const GeoDataPoint &point )
128 {
129  Q_D(GeoDataPhotoOverlay);
130  d->m_point = point;
131 }
132 
133 GeoDataPhotoOverlay::Shape GeoDataPhotoOverlay::shape() const
134 {
135  Q_D(const GeoDataPhotoOverlay);
136  return d->m_shape;
137 }
138 
139 void GeoDataPhotoOverlay::setShape( Shape shape )
140 {
141  Q_D(GeoDataPhotoOverlay);
142  d->m_shape = shape;
143 }
144 
145 }
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.