6#include "GeoDataLocation.h"
7#include "GeoDataTypes.h"
11class GeoDataLocationPrivate
15 GeoDataCoordinates m_coordinates;
17 GeoDataLocationPrivate();
20GeoDataLocationPrivate::GeoDataLocationPrivate() :
26GeoDataLocation::GeoDataLocation() : d( new GeoDataLocationPrivate )
31GeoDataLocation::GeoDataLocation(
const Marble::GeoDataLocation &other ) :
32 GeoDataObject( other ), d( new GeoDataLocationPrivate( *other.d ) )
37GeoDataLocation &GeoDataLocation::operator=(
const GeoDataLocation &other )
39 GeoDataObject::operator=( other );
45bool GeoDataLocation::operator==(
const GeoDataLocation &other )
const
48 d->m_coordinates == other.d->m_coordinates;
51bool GeoDataLocation::operator!=(
const GeoDataLocation &other )
const
56GeoDataLocation::~GeoDataLocation()
61const char *GeoDataLocation::nodeType()
const
63 return GeoDataTypes::GeoDataLocationType;
66qreal GeoDataLocation::altitude()
const
68 return d->m_coordinates.altitude();
71void GeoDataLocation::setAltitude(qreal altitude)
74 d->m_coordinates.setAltitude(altitude);
77qreal GeoDataLocation::latitude(GeoDataCoordinates::Unit unit)
const
79 return d->m_coordinates.latitude(unit);
82void GeoDataLocation::setLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
84 d->m_coordinates.setLatitude(latitude, unit);
87qreal GeoDataLocation::longitude( GeoDataCoordinates::Unit unit )
const
89 return d->m_coordinates.longitude(unit);
92void GeoDataLocation::setLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
94 d->m_coordinates.setLongitude(longitude, unit);
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)