Marble

GeoSceneFilter.cpp
1 /*
2  SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "GeoSceneFilter.h"
8 
9 #include "GeoScenePalette.h"
10 #include "GeoSceneTypes.h"
11 
12 namespace Marble
13 {
14 
15 GeoSceneFilter::GeoSceneFilter( const QString& name )
16  : m_name( name ),
17  m_type( "none" )
18 {
19 }
20 
21 GeoSceneFilter::~GeoSceneFilter()
22 {
23  qDeleteAll( m_palette );
24 }
25 
26 QString GeoSceneFilter::name() const
27 {
28  return m_name;
29 }
30 
31 void GeoSceneFilter::setName( const QString& name )
32 {
33  m_name = name;
34 }
35 
36 QString GeoSceneFilter::type() const
37 {
38  return m_type;
39 }
40 
41 void GeoSceneFilter::setType( const QString& type )
42 {
43  m_type = type;
44 }
45 
46 QList<const GeoScenePalette*> GeoSceneFilter::palette() const
47 {
48  return m_palette;
49 }
50 
51 void GeoSceneFilter::addPalette( const GeoScenePalette *palette )
52 {
53  m_palette.append( palette );
54 }
55 
56 int GeoSceneFilter::removePalette( const GeoScenePalette *palette )
57 {
58  return m_palette.removeAll( palette );
59 }
60 
61 const char *GeoSceneFilter::nodeType() const
62 {
63  return GeoSceneTypes::GeoSceneFilterType;
64 }
65 
66 }
Type type(const QSqlDatabase &db)
Binds a QML item to a specific geodetic location in screen coordinates.
const char * name(StandardAction id)
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.