Marble

GeoSceneFilter.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
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
12namespace Marble
13{
14
15GeoSceneFilter::GeoSceneFilter( const QString& name )
16 : m_name( name ),
17 m_type( "none" )
18{
19}
20
21GeoSceneFilter::~GeoSceneFilter()
22{
23 qDeleteAll( m_palette );
24}
25
26QString GeoSceneFilter::name() const
27{
28 return m_name;
29}
30
31void GeoSceneFilter::setName( const QString& name )
32{
33 m_name = name;
34}
35
36QString GeoSceneFilter::type() const
37{
38 return m_type;
39}
40
41void GeoSceneFilter::setType( const QString& type )
42{
43 m_type = type;
44}
45
46QList<const GeoScenePalette*> GeoSceneFilter::palette() const
47{
48 return m_palette;
49}
50
51void GeoSceneFilter::addPalette( const GeoScenePalette *palette )
52{
53 m_palette.append( palette );
54}
55
56int GeoSceneFilter::removePalette( const GeoScenePalette *palette )
57{
58 return m_palette.removeAll( palette );
59}
60
61const char *GeoSceneFilter::nodeType() const
62{
63 return GeoSceneTypes::GeoSceneFilterType;
64}
65
66}
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString name(StandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
void append(QList< T > &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:54:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.