Marble

GeoSceneFilter.h
1 /*
2  SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef MARBLE_GEOSCENEFILTER_H
8 #define MARBLE_GEOSCENEFILTER_H
9 
10 #include <QString>
11 #include <QList>
12 
13 #include "GeoDocument.h"
14 
15 namespace Marble
16 {
17 
18 class GeoScenePalette;
19 
20 /**
21  * @short Filter of a GeoScene document.
22  */
23 
24 class GeoSceneFilter : public GeoNode
25 {
26  public:
27  explicit GeoSceneFilter( const QString& name );
28  ~GeoSceneFilter() override;
29 
30  QString name() const;
31  void setName( const QString& name );
32 
33  QString type() const;
34  void setType( const QString& type );
35 
36  QList<const GeoScenePalette*> palette() const;
37  void addPalette( const GeoScenePalette *palette );
38  int removePalette( const GeoScenePalette *palette ); //returns # of items removed
39 
40  const char *nodeType() const override;
41 
42  private:
43  QString m_name;
44  QString m_type;
46 
47 };
48 
49 }
50 
51 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:34
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Filter of a GeoScene document.
Palette of a GeoScene document.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Dec 7 2021 23:10:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.