• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Marble
  • KDE Home
  • Contact Us

Quick Links

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

Class Picker

About

Marble framework, a library for maps, virtual globes and world atlases

Maintainers
Torsten Rahn,
Dennis Nienhüser
Supported platforms
Android, Linux, MacOSX, Windows
Community
IRC: #marble on Freenode
Mailing list: marble-devel
Use with CMake
find_package(Marble)
target_link_libraries(yourapp Marble)
Use with QMake
QT += Marble 
Clone
git clone git://anongit.kde.org/marble.git
Browse source
Marble on cgit.kde.org

Marble

  • kde
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • scene
GeoSceneMap.h
1 /*
2  Copyright (C) 2008 Torsten Rahn <[email protected]>
3 
4  This file is part of the KDE project
5 
6  This library is free software you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  aint with this library see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef MARBLE_GEOSCENEMAP_H
23 #define MARBLE_GEOSCENEMAP_H
24 
25 #include <QVector>
26 
27 #include <geodata_export.h>
28 
29 #include "GeoDocument.h"
30 
31 class QColor;
32 class QString;
33 
34 namespace Marble
35 {
36 
37 class GeoSceneLayer;
38 class GeoSceneFilter;
39 
40 class GeoSceneMapPrivate;
41 
45 class GEODATA_EXPORT GeoSceneMap : public GeoNode
46 {
47  public:
48  GeoSceneMap();
49  ~GeoSceneMap() override;
50  const char* nodeType() const override;
51 
52  QColor backgroundColor() const;
53  void setBackgroundColor( const QColor& );
54 
55  QColor labelColor() const;
56  void setLabelColor( const QColor& );
57 
58  QColor highlightBrushColor() const;
59  void setHighlightBrushColor( const QColor& );
60 
61  QColor highlightPenColor() const;
62  void setHighlightPenColor( const QColor& );
67  void addLayer( GeoSceneLayer* );
68 
74  GeoSceneLayer* layer( const QString& name );
75  const GeoSceneLayer* layer( const QString& name ) const;
76 
81  QVector<GeoSceneLayer*> layers() const;
82 
87  void addFilter( GeoSceneFilter* );
88 
94  GeoSceneFilter* filter( const QString& name );
95 
100  QVector<GeoSceneFilter*> filters() const;
101 
109  bool hasTextureLayers() const;
110 
118  bool hasVectorLayers() const;
119 
120  private:
121  Q_DISABLE_COPY( GeoSceneMap )
122  GeoSceneMapPrivate * const d;
123 };
124 
125 }
126 
127 #endif
Marble
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:27
Marble::GeoNode
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:49
Marble::GeoSceneMap
Map layer structure of a GeoScene document.
Definition: GeoSceneMap.h:45
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
QString
QColor
Marble::GeoSceneFilter
Filter of a GeoScene document.
Definition: GeoSceneFilter.h:39
QVector
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 01:31:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

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