6#include "GeoDataFlyTo.h"
7#include "GeoDataAbstractView.h"
8#include "GeoDataTypes.h"
13class GeoDataFlyToPrivate
18 GeoDataFlyTo::FlyToMode m_flyToMode;
20 GeoDataAbstractView *m_view;
22 GeoDataFlyToPrivate();
25GeoDataFlyToPrivate::GeoDataFlyToPrivate()
32GeoDataFlyTo::GeoDataFlyTo()
33 : d(new GeoDataFlyToPrivate)
37GeoDataFlyTo::GeoDataFlyTo(
const Marble::GeoDataFlyTo &other)
38 : GeoDataTourPrimitive(other)
39 , d(new GeoDataFlyToPrivate(*other.d))
43GeoDataFlyTo &GeoDataFlyTo::operator=(
const GeoDataFlyTo &other)
45 GeoDataTourPrimitive::operator=(other);
50bool GeoDataFlyTo::operator==(
const GeoDataFlyTo &other)
const
52 if (!
equals(other) || d->m_duration != other.d->m_duration || d->m_flyToMode != other.d->m_flyToMode) {
56 if ((!d->m_view && other.d->m_view) || (d->m_view && !other.d->m_view)) {
58 }
else if (!d->m_view && !other.d->m_view) {
62 if (*d->m_view != *other.d->m_view) {
69bool GeoDataFlyTo::operator!=(
const GeoDataFlyTo &other)
const
74GeoDataFlyTo::~GeoDataFlyTo()
79const char *GeoDataFlyTo::nodeType()
const
81 return GeoDataTypes::GeoDataFlyToType;
84const GeoDataAbstractView *GeoDataFlyTo::view()
const
89GeoDataAbstractView *GeoDataFlyTo::view()
94void GeoDataFlyTo::setView(GeoDataAbstractView *view)
99double GeoDataFlyTo::duration()
const
101 return d->m_duration;
104void GeoDataFlyTo::setDuration(
double duration)
106 d->m_duration = duration;
109GeoDataFlyTo::FlyToMode GeoDataFlyTo::flyToMode()
const
111 return d->m_flyToMode;
114void GeoDataFlyTo::setFlyToMode(
const GeoDataFlyTo::FlyToMode flyToMode)
116 d->m_flyToMode = flyToMode;
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.