Marble

GeoSceneLegend.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_GEOSCENELEGEND_H
8#define MARBLE_GEOSCENELEGEND_H
9
10#include "GeoDocument.h"
11#include <QList>
12
13#include <geodata_export.h>
14
15namespace Marble
16{
17
18class GeoSceneSection;
19
20class GeoSceneLegendPrivate;
21
22/**
23 * @short Legend of a GeoScene document.
24 */
25
26class GEODATA_EXPORT GeoSceneLegend : public GeoNode
27{
28public:
29 GeoSceneLegend();
30 ~GeoSceneLegend() override;
31
32 const char *nodeType() const override;
33
34 /**
35 * @brief Add a section to the legend
36 * @param section the new section
37 */
38 void addSection(const GeoSceneSection *);
39 QList<const GeoSceneSection *> sections() const;
40
41private:
42 Q_DISABLE_COPY(GeoSceneLegend)
43 GeoSceneLegendPrivate *const d;
44};
45
46}
47
48#endif
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
void addSection(const GeoSceneSection *)
Add a section to the legend.
Section 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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.