Marble

GeoDataFlyTo.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mayank Madan <maddiemadan@gmail.com>
4//
5
6#ifndef MARBLE_GEODATAFLYTO_H
7#define MARBLE_GEODATAFLYTO_H
8
9#include "GeoDataTourPrimitive.h"
10#include "MarbleGlobal.h"
11
12namespace Marble
13{
14
15class GeoDataAbstractView;
16class GeoDataFlyToPrivate;
17
18/**
19 */
20class GEODATA_EXPORT GeoDataFlyTo : public GeoDataTourPrimitive
21{
22public:
23 enum FlyToMode {
24 Bounce,
25 Smooth
26 };
27
28 GeoDataFlyTo();
29
30 GeoDataFlyTo(const GeoDataFlyTo &other);
31
32 GeoDataFlyTo &operator=(const GeoDataFlyTo &other);
33 bool operator==(const GeoDataFlyTo &other) const;
34 bool operator!=(const GeoDataFlyTo &other) const;
35
36 ~GeoDataFlyTo() override;
37
38 /** Provides type information for downcasting a GeoNode */
39 const char *nodeType() const override;
40
41 double duration() const;
42
43 void setDuration(double duration);
44
45 const GeoDataAbstractView *view() const;
46
47 GeoDataAbstractView *view();
48
49 void setView(GeoDataAbstractView *view);
50
51 FlyToMode flyToMode() const;
52
53 void setFlyToMode(const FlyToMode flyToMode);
54
55private:
56 GeoDataFlyToPrivate *const d;
57};
58
59}
60
61#endif
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.