File indexing completed on 2024-05-19 03:51:50

0001 /*
0002     SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef MARBLE_GEOSCENEFILTER_H
0008 #define MARBLE_GEOSCENEFILTER_H
0009 
0010 #include <QString>
0011 #include <QList>
0012 
0013 #include "GeoDocument.h"
0014 
0015 namespace Marble
0016 {
0017 
0018 class GeoScenePalette;
0019 
0020 /**
0021  * @short Filter of a GeoScene document.
0022  */
0023 
0024 class GeoSceneFilter : public GeoNode
0025 {
0026  public:
0027     explicit GeoSceneFilter( const QString& name );
0028     ~GeoSceneFilter() override;
0029 
0030     QString name() const;
0031     void setName( const QString& name );
0032 
0033     QString type() const;
0034     void setType( const QString& type );
0035 
0036     QList<const GeoScenePalette*> palette() const;
0037     void addPalette( const GeoScenePalette *palette );
0038     int removePalette( const GeoScenePalette *palette ); //returns # of items removed
0039 
0040     const char *nodeType() const override;
0041 
0042  private:
0043     QString m_name;
0044     QString m_type;
0045     QList<const GeoScenePalette*> m_palette;
0046 
0047 };
0048 
0049 }
0050 
0051 #endif