8#include "GeoDataLookAt.h"
9#include "GeoDataLookAt_p.h"
11#include "GeoDataTypes.h"
13#include "MarbleDebug.h"
18GeoDataLookAt::GeoDataLookAt()
19 : GeoDataAbstractView()
20 , d(new GeoDataLookAtPrivate)
24GeoDataLookAt::GeoDataLookAt(
const GeoDataLookAt &other)
25 : GeoDataAbstractView()
31GeoDataLookAt &GeoDataLookAt::operator=(
const GeoDataLookAt &other)
33 GeoDataAbstractView::operator=(other);
34 qAtomicAssign(d, other.d);
38bool GeoDataLookAt::operator==(
const GeoDataLookAt &other)
const
40 return equals(other) && d->m_coordinates == other.d->m_coordinates && d->m_range == other.d->m_range;
43bool GeoDataLookAt::operator!=(
const GeoDataLookAt &other)
const
48GeoDataLookAt::~GeoDataLookAt()
54GeoDataAbstractView *GeoDataLookAt::copy()
const
56 return new GeoDataLookAt(*
this);
59void GeoDataLookAt::setCoordinates(
const GeoDataCoordinates &coordinates)
61 d->m_coordinates = coordinates;
64const char *GeoDataLookAt::nodeType()
const
66 return GeoDataTypes::GeoDataLookAtType;
69void GeoDataLookAt::setAltitude(qreal altitude)
72 d->m_coordinates.setAltitude(altitude);
75qreal GeoDataLookAt::altitude()
const
77 return d->m_coordinates.altitude();
80void GeoDataLookAt::setLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
83 d->m_coordinates.setLatitude(latitude, unit);
86qreal GeoDataLookAt::latitude(GeoDataCoordinates::Unit unit)
const
88 return d->m_coordinates.latitude(unit);
91void GeoDataLookAt::setLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
94 d->m_coordinates.setLongitude(longitude, unit);
97qreal GeoDataLookAt::longitude(GeoDataCoordinates::Unit unit)
const
99 return d->m_coordinates.longitude(unit);
102GeoDataCoordinates GeoDataLookAt::coordinates()
const
104 return d->m_coordinates;
107void GeoDataLookAt::setRange(qreal range)
113qreal GeoDataLookAt::range()
const
118void GeoDataLookAt::detach()
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.