7 #include "GeoDataPhotoOverlay.h"
8 #include "GeoDataPhotoOverlay_p.h"
12 GeoDataPhotoOverlay::GeoDataPhotoOverlay()
13 : GeoDataOverlay(new GeoDataPhotoOverlayPrivate)
18 GeoDataPhotoOverlay::GeoDataPhotoOverlay(
const GeoDataPhotoOverlay &other)
19 : GeoDataOverlay(other, new GeoDataPhotoOverlayPrivate(*other.d_func()))
24 GeoDataPhotoOverlay::~GeoDataPhotoOverlay()
28 GeoDataPhotoOverlay &GeoDataPhotoOverlay::operator=(
const GeoDataPhotoOverlay &other )
31 Q_D(GeoDataPhotoOverlay);
38 bool GeoDataPhotoOverlay::operator==(
const GeoDataPhotoOverlay& other)
const
40 Q_D(
const GeoDataPhotoOverlay);
41 const GeoDataPhotoOverlayPrivate*
const other_d = other.d_func();
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;
51 bool GeoDataPhotoOverlay::operator!=(
const GeoDataPhotoOverlay& other)
const
56 GeoDataFeature * GeoDataPhotoOverlay::clone()
const
58 return new GeoDataPhotoOverlay(*
this);
61 const char *GeoDataPhotoOverlay::nodeType()
const
63 Q_D(
const GeoDataPhotoOverlay);
64 return GeoDataTypes::GeoDataPhotoOverlayType;
67 qreal GeoDataPhotoOverlay::rotation()
const
69 Q_D(
const GeoDataPhotoOverlay);
73 void GeoDataPhotoOverlay::setRotation(
const qreal rotation )
75 Q_D(GeoDataPhotoOverlay);
76 d->m_rotation = rotation;
79 GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume()
81 Q_D(GeoDataPhotoOverlay);
82 return d->m_viewVolume;
85 const GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume()
const
87 Q_D(
const GeoDataPhotoOverlay);
88 return d->m_viewVolume;
91 void GeoDataPhotoOverlay::setViewVolume(
const GeoDataViewVolume &viewVolume )
93 Q_D(GeoDataPhotoOverlay);
94 d->m_viewVolume = viewVolume;
97 GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid()
99 Q_D(GeoDataPhotoOverlay);
100 return d->m_imagePyramid;
103 const GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid()
const
105 Q_D(
const GeoDataPhotoOverlay);
106 return d->m_imagePyramid;
109 void GeoDataPhotoOverlay::setImagePyramid(
const GeoDataImagePyramid &imagePyramid )
111 Q_D(GeoDataPhotoOverlay);
112 d->m_imagePyramid = imagePyramid;
115 GeoDataPoint& GeoDataPhotoOverlay::point()
117 Q_D(GeoDataPhotoOverlay);
121 const GeoDataPoint& GeoDataPhotoOverlay::point()
const
123 Q_D(
const GeoDataPhotoOverlay);
127 void GeoDataPhotoOverlay::setPoint(
const GeoDataPoint &point )
129 Q_D(GeoDataPhotoOverlay);
133 GeoDataPhotoOverlay::Shape GeoDataPhotoOverlay::shape()
const
135 Q_D(
const GeoDataPhotoOverlay);
139 void GeoDataPhotoOverlay::setShape(
Shape shape )
141 Q_D(GeoDataPhotoOverlay);