6#include "GeoDataLatLonQuad.h"
7#include "GeoDataTypes.h"
12class GeoDataLatLonQuadPrivate
15 GeoDataCoordinates m_bottomLeft;
16 GeoDataCoordinates m_bottomRight;
17 GeoDataCoordinates m_topRight;
18 GeoDataCoordinates m_topLeft;
20 GeoDataLatLonQuadPrivate();
23GeoDataLatLonQuadPrivate::GeoDataLatLonQuadPrivate()
32GeoDataLatLonQuad::GeoDataLatLonQuad()
34 , d(new GeoDataLatLonQuadPrivate)
39GeoDataLatLonQuad::GeoDataLatLonQuad(
const Marble::GeoDataLatLonQuad &other)
40 : GeoDataObject(other)
41 , d(new GeoDataLatLonQuadPrivate(*other.d))
46GeoDataLatLonQuad &GeoDataLatLonQuad::operator=(
const GeoDataLatLonQuad &other)
52bool GeoDataLatLonQuad::operator==(
const GeoDataLatLonQuad &other)
const
54 return equals(other) && d->m_bottomLeft == other.d->m_bottomLeft && d->m_bottomRight == other.d->m_bottomRight && d->m_topLeft == other.d->m_topLeft
55 && d->m_topRight == other.d->m_topRight;
58bool GeoDataLatLonQuad::operator!=(
const GeoDataLatLonQuad &other)
const
63GeoDataLatLonQuad::~GeoDataLatLonQuad()
68const char *GeoDataLatLonQuad::nodeType()
const
70 return GeoDataTypes::GeoDataLatLonQuadType;
73qreal GeoDataLatLonQuad::bottomLeftLatitude(GeoDataCoordinates::Unit unit)
const
75 return d->m_bottomLeft.latitude(unit);
78void GeoDataLatLonQuad::setBottomLeftLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
80 d->m_bottomLeft.setLatitude(latitude, unit);
83qreal GeoDataLatLonQuad::bottomLeftLongitude(GeoDataCoordinates::Unit unit)
const
85 return d->m_bottomLeft.longitude(unit);
88void GeoDataLatLonQuad::setBottomLeftLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
90 d->m_bottomLeft.setLongitude(longitude, unit);
93qreal GeoDataLatLonQuad::bottomRightLatitude(GeoDataCoordinates::Unit unit)
const
95 return d->m_bottomRight.latitude(unit);
98void GeoDataLatLonQuad::setBottomRightLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
100 d->m_bottomRight.setLatitude(latitude, unit);
103qreal GeoDataLatLonQuad::bottomRightLongitude(GeoDataCoordinates::Unit unit)
const
105 return d->m_bottomRight.longitude(unit);
108void GeoDataLatLonQuad::setBottomRightLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
110 d->m_bottomRight.setLongitude(longitude, unit);
113qreal GeoDataLatLonQuad::topRightLatitude(GeoDataCoordinates::Unit unit)
const
115 return d->m_topRight.latitude(unit);
118void GeoDataLatLonQuad::setTopRightLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
120 d->m_topRight.setLatitude(latitude, unit);
123qreal GeoDataLatLonQuad::topRightLongitude(GeoDataCoordinates::Unit unit)
const
125 return d->m_topRight.longitude(unit);
128void GeoDataLatLonQuad::setTopRightLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
130 d->m_topRight.setLongitude(longitude, unit);
133qreal GeoDataLatLonQuad::topLeftLatitude(GeoDataCoordinates::Unit unit)
const
135 return d->m_topLeft.latitude(unit);
138void GeoDataLatLonQuad::setTopLeftLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
140 d->m_topLeft.setLatitude(latitude, unit);
143qreal GeoDataLatLonQuad::topLeftLongitude(GeoDataCoordinates::Unit unit)
const
145 return d->m_topLeft.longitude(unit);
148void GeoDataLatLonQuad::setTopLeftLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
150 d->m_topLeft.setLongitude(longitude, unit);
153GeoDataCoordinates &GeoDataLatLonQuad::bottomLeft()
const
155 return d->m_bottomLeft;
158void GeoDataLatLonQuad::setBottomLeft(
const GeoDataCoordinates &coordinates)
160 d->m_bottomLeft = coordinates;
162GeoDataCoordinates &GeoDataLatLonQuad::bottomRight()
const
164 return d->m_bottomRight;
167void GeoDataLatLonQuad::setBottomRight(
const GeoDataCoordinates &coordinates)
169 d->m_bottomRight = coordinates;
172GeoDataCoordinates &GeoDataLatLonQuad::topRight()
const
174 return d->m_topRight;
177void GeoDataLatLonQuad::setTopRight(
const GeoDataCoordinates &coordinates)
179 d->m_topRight = coordinates;
182GeoDataCoordinates &GeoDataLatLonQuad::topLeft()
const
187void GeoDataLatLonQuad::setTopLeft(
const GeoDataCoordinates &coordinates)
189 d->m_topLeft = coordinates;
192bool GeoDataLatLonQuad::isValid()
const
194 return d->m_bottomLeft.isValid() && d->m_bottomRight.isValid() && d->m_topLeft.isValid() && d->m_topRight.isValid();
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.