• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
AutoNavigation.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2010 Siddharth Srivastava <akssps011@gmail.com>
9 //
10 
11 #ifndef ADJUSTNAVIGATION_H
12 #define ADJUSTNAVIGATION_H
13 
14 #include "marble_export.h"
15 #include "GeoDataCoordinates.h"
16 
17 #include <QWidget>
18 
19 namespace Marble
20 {
21 
22 class GeoDataCoordinates;
23 class MarbleModel;
24 class PositionTracking;
25 class ViewportParams;
26 
27 class MARBLE_EXPORT AutoNavigation : public QObject
28 {
29  Q_OBJECT
30 
31 public:
32 
38  explicit AutoNavigation( MarbleModel *model, const ViewportParams *viewport, QObject *parent = 0 );
39 
41  ~AutoNavigation();
42 
47  enum CenterMode {
48  DontRecenter = 0,
49  AlwaysRecenter = 1,
50  RecenterOnBorder = 2
51  };
52 
58  void setRecenter( CenterMode recenterMode );
59 
64  void setAutoZoom( bool activate );
65 
66  AutoNavigation::CenterMode recenterMode() const;
67 
68  bool autoZoom() const;
69 
70 public Q_SLOTS:
71 
77  void adjust( const GeoDataCoordinates &position, qreal speed );
78 
82  void inhibitAutoAdjustments();
83 
84 Q_SIGNALS:
89  void recenterModeChanged( AutoNavigation::CenterMode mode );
90 
94  void autoZoomToggled( bool enabled );
95 
96  void zoomIn( FlyToMode );
97 
98  void zoomOut( FlyToMode );
99 
100  void centerOn( const GeoDataCoordinates &position, bool animated );
101 
102 private:
103  class Private;
104  Private * const d;
105 };
106 } //namespace marble
107 
108 #endif // ADJUSTNAVIGATION_H
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::AutoNavigation
Definition: AutoNavigation.h:27
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::FlyToMode
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions) ...
Definition: MarbleGlobal.h:173
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
marble_export.h
Marble::AutoNavigation::CenterMode
CenterMode
An enum type Represents which recentering method is selected.
Definition: AutoNavigation.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal