7#include "GeoDataPhotoOverlay.h"
8#include "GeoDataPhotoOverlay_p.h"
13GeoDataPhotoOverlay::GeoDataPhotoOverlay()
14 : GeoDataOverlay(new GeoDataPhotoOverlayPrivate)
19GeoDataPhotoOverlay::GeoDataPhotoOverlay(
const GeoDataPhotoOverlay &other)
20 : GeoDataOverlay(other, new GeoDataPhotoOverlayPrivate(*other.d_func()))
25GeoDataPhotoOverlay::~GeoDataPhotoOverlay() =
default;
27GeoDataPhotoOverlay &GeoDataPhotoOverlay::operator=(
const GeoDataPhotoOverlay &other)
30 Q_D(GeoDataPhotoOverlay);
37bool GeoDataPhotoOverlay::operator==(
const GeoDataPhotoOverlay &other)
const
39 Q_D(
const GeoDataPhotoOverlay);
40 const GeoDataPhotoOverlayPrivate *
const other_d = other.d_func();
42 return equals(other) && d->m_rotation == other_d->m_rotation && d->m_shape == other_d->m_shape && d->m_imagePyramid == other_d->m_imagePyramid
43 && d->m_point == other_d->m_point && d->m_viewVolume == other_d->m_viewVolume;
46bool GeoDataPhotoOverlay::operator!=(
const GeoDataPhotoOverlay &other)
const
51GeoDataFeature *GeoDataPhotoOverlay::clone()
const
53 return new GeoDataPhotoOverlay(*
this);
56const char *GeoDataPhotoOverlay::nodeType()
const
58 Q_D(
const GeoDataPhotoOverlay);
59 return GeoDataTypes::GeoDataPhotoOverlayType;
62qreal GeoDataPhotoOverlay::rotation()
const
64 Q_D(
const GeoDataPhotoOverlay);
68void GeoDataPhotoOverlay::setRotation(
const qreal rotation)
70 Q_D(GeoDataPhotoOverlay);
71 d->m_rotation = rotation;
74GeoDataViewVolume &GeoDataPhotoOverlay::viewVolume()
76 Q_D(GeoDataPhotoOverlay);
77 return d->m_viewVolume;
80const GeoDataViewVolume &GeoDataPhotoOverlay::viewVolume()
const
82 Q_D(
const GeoDataPhotoOverlay);
83 return d->m_viewVolume;
86void GeoDataPhotoOverlay::setViewVolume(
const GeoDataViewVolume &viewVolume)
88 Q_D(GeoDataPhotoOverlay);
89 d->m_viewVolume = viewVolume;
92GeoDataImagePyramid &GeoDataPhotoOverlay::imagePyramid()
94 Q_D(GeoDataPhotoOverlay);
95 return d->m_imagePyramid;
98const GeoDataImagePyramid &GeoDataPhotoOverlay::imagePyramid()
const
100 Q_D(
const GeoDataPhotoOverlay);
101 return d->m_imagePyramid;
104void GeoDataPhotoOverlay::setImagePyramid(
const GeoDataImagePyramid &imagePyramid)
106 Q_D(GeoDataPhotoOverlay);
107 d->m_imagePyramid = imagePyramid;
110GeoDataPoint &GeoDataPhotoOverlay::point()
112 Q_D(GeoDataPhotoOverlay);
116const GeoDataPoint &GeoDataPhotoOverlay::point()
const
118 Q_D(
const GeoDataPhotoOverlay);
122void GeoDataPhotoOverlay::setPoint(
const GeoDataPoint &point)
124 Q_D(GeoDataPhotoOverlay);
128GeoDataPhotoOverlay::Shape GeoDataPhotoOverlay::shape()
const
130 Q_D(
const GeoDataPhotoOverlay);
134void GeoDataPhotoOverlay::setShape(
Shape shape)
136 Q_D(GeoDataPhotoOverlay);
bool equals(const QVariant &lhs, const QVariant &rhs)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.