Marble

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

KDE's Doxygen guidelines are available online.