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

marble

  • kde-4.x
  • kdeedu
  • marble
  • src
  • lib
  • marble
GeoGraphicsScene.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 Bastian Holst <[email protected]>
9 // Copyright 2011 Konstantin Oblaukhov <[email protected]>
10 //
11 
12 #ifndef MARBLE_GEOGRAPHICSSCENE_H
13 #define MARBLE_GEOGRAPHICSSCENE_H
14 
15 #include "marble_export.h"
16 #include "MarbleGlobal.h"
17 
18 #include <QObject>
19 #include <QList>
20 
21 namespace Marble
22 {
23 
24 class GeoGraphicsItem;
25 class GeoDataFeature;
26 class GeoDataLatLonBox;
27 class GeoGraphicsScenePrivate;
28 class GeoDataPlacemark;
29 
33 class MARBLE_EXPORT GeoGraphicsScene : public QObject
34 {
35  Q_OBJECT
36 
37 public:
42  explicit GeoGraphicsScene( QObject *parent = nullptr );
43  ~GeoGraphicsScene() override;
44 
49  void addItem( GeoGraphicsItem *item );
50 
55  void removeItem( const GeoDataFeature *feature );
56 
60  void clear();
61 
69  QList<GeoGraphicsItem *> items( const GeoDataLatLonBox &box, int maxZoomLevel ) const;
70 
76  QList<GeoGraphicsItem*> selectedItems() const;
77 
78  void resetStyle();
79 
80 public Q_SLOTS:
81  void applyHighlight( const QVector<GeoDataPlacemark*>& );
82 
83 Q_SIGNALS:
84  void repaintNeeded();
85 
86 private:
87  GeoGraphicsScenePrivate * const d;
88 };
89 }
90 #endif // MARBLE_GEOGRAPHICSSCENE_H
Marble::GeoGraphicsItem
Definition: GeoGraphicsItem.h:46
QObject
QList
MarbleGlobal.h
QVector< GeoDataPlacemark * >
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:49
Marble::GeoGraphicsScene
This is the home of all GeoGraphicsItems to be shown on the map.
Definition: GeoGraphicsScene.h:33
Marble::GeoDataLatLonBox
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 15 2019 02:01:16 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
  •   KmPlot
  • libkeduvocdocument
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   src
  •   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