• 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
MarbleQuickItem.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 2014 Adam Dabrowski <adamdbrw@gmail.com>
9 //
10 
11 #ifndef MARBLEQUICKITEM_H
12 #define MARBLEQUICKITEM_H
13 
14 #include <QSharedPointer>
15 #include <QQuickPaintedItem>
16 #include "GeoDataPlacemark.h"
17 #include "MarbleGlobal.h"
18 
19 namespace Marble
20 {
21  class MarbleModel;
22  class MarbleMap;
23  class MarbleQuickItemPrivate;
24 
25  //Class is still being developed
26  class MARBLE_EXPORT MarbleQuickItem : public QQuickPaintedItem
27  {
28  Q_OBJECT
29 
30  public:
31  MarbleQuickItem(QQuickItem *parent = 0);
32 
33  public slots:
34  void goHome();
35  void setZoom(int zoom, FlyToMode mode = Instant);
36  void centerOn(const GeoDataPlacemark& placemark, bool animated = false);
37 
38  void zoomIn(FlyToMode mode = Automatic);
39  void zoomOut(FlyToMode mode = Automatic);
40 
41  // QQuickPaintedItem interface
42  public:
43  void paint(QPainter *painter);
44 
45  // QQmlParserStatus interface
46  public:
47  void classBegin();
48  void componentComplete();
49 
50  protected:
51  MarbleModel* model();
52  const MarbleModel* model() const;
53 
54  MarbleMap* map();
55  const MarbleMap* map() const;
56 
57  QObject *getEventFilter() const;
58  void pinch(QPointF center, qreal scale, Qt::GestureState state);
59 
60  private slots:
61  void resizeMap();
62 
63  private:
64  typedef QSharedPointer<MarbleQuickItemPrivate> MarbleQuickItemPrivatePtr;
65  MarbleQuickItemPrivatePtr d;
66  friend class MarbleQuickItemPrivate;
67  };
68 }
69 
70 #endif // MARBLEQUICKITEM_H
Marble::Automatic
A sane value is chosen automatically depending on animation settings and the action.
Definition: MarbleGlobal.h:174
QPointF
QQuickPaintedItem
QSharedPointer< MarbleQuickItemPrivate >
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QPainter
MarbleGlobal.h
GeoDataPlacemark.h
Marble::MarbleMap
A class that can paint a view of the earth.
Definition: MarbleMap.h:91
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
QDeclarativeItem
Marble::Instant
Change camera position immediately (no interpolation)
Definition: MarbleGlobal.h:175
Marble::MarbleQuickItem
Definition: MarbleQuickItem.h:26
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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