Marble

GeoSceneFilter.h
1/*
2 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
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 <QList>
11#include <QString>
12
13#include "GeoDocument.h"
14
15namespace Marble
16{
17
18class GeoScenePalette;
19
20/**
21 * @short Filter of a GeoScene document.
22 */
23
24class GeoSceneFilter : public GeoNode
25{
26public:
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
42private:
43 QString m_name;
44 QString m_type;
46};
47
48}
49
50#endif
A shared base class for all classes that are mapped to a specific tag (ie.
Definition GeoDocument.h:35
Filter of a GeoScene document.
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Palette of a GeoScene document.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.