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
7#ifndef MARBLE_GEODATAFLYTO_H
8#define MARBLE_GEODATAFLYTO_H
9
10#include "GeoDataTourPrimitive.h"
11#include "MarbleGlobal.h"
12
13namespace Marble {
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
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.