Marble

GeoDataFlyTo.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Mayank Madan <[email protected]>
4 //
5 
6 
7 #ifndef MARBLE_GEODATAFLYTO_H
8 #define MARBLE_GEODATAFLYTO_H
9 
10 #include "GeoDataTourPrimitive.h"
11 #include "MarbleGlobal.h"
12 
13 namespace Marble {
14 
15 class GeoDataAbstractView;
16 class GeoDataFlyToPrivate;
17 
18 /**
19  */
20 class GEODATA_EXPORT GeoDataFlyTo: public GeoDataTourPrimitive
21 {
22 public:
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 
55 private:
56  GeoDataFlyToPrivate* const d;
57 };
58 
59 }
60 
61 #endif
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions)
Definition: MarbleGlobal.h:162
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.