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;
75 return d->m_bottomLeft.latitude(unit);
80 d->m_bottomLeft.setLatitude(latitude, unit);
85 return d->m_bottomLeft.longitude(unit);
90 d->m_bottomLeft.setLongitude(longitude, unit);
95 return d->m_bottomRight.latitude(unit);
100 d->m_bottomRight.setLatitude(latitude, unit);
105 return d->m_bottomRight.longitude(unit);
110 d->m_bottomRight.setLongitude(longitude, unit);
115 return d->m_topRight.latitude(unit);
120 d->m_topRight.setLatitude(latitude, unit);
125 return d->m_topRight.longitude(unit);
130 d->m_topRight.setLongitude(longitude, unit);
135 return d->m_topLeft.latitude(unit);
140 d->m_topLeft.setLatitude(latitude, unit);
145 return d->m_topLeft.longitude(unit);
150 d->m_topLeft.setLongitude(longitude, unit);
155 return d->m_bottomLeft;
160 d->m_bottomLeft = coordinates;
164 return d->m_bottomRight;
169 d->m_bottomRight = coordinates;
174 return d->m_topRight;
179 d->m_topRight = 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();
A 3d point representation.
Unit
enum used constructor to specify the units used
bool isValid() const
Returns.
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.