Marble

GeoSceneLegend.h
1 /*
2  SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]>
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 <QVector>
11 #include "GeoDocument.h"
12 
13 #include <geodata_export.h>
14 
15 namespace Marble
16 {
17 
18 class GeoSceneSection;
19 
20 class GeoSceneLegendPrivate;
21 
22 /**
23  * @short Legend of a GeoScene document.
24  */
25 
26 class GEODATA_EXPORT GeoSceneLegend : public GeoNode
27 {
28  public:
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  QVector<const GeoSceneSection*> sections() const;
40 
41  private:
42  Q_DISABLE_COPY( GeoSceneLegend )
43  GeoSceneLegendPrivate * const d;
44 };
45 
46 }
47 
48 #endif
Section of a GeoScene document.
Legend of a GeoScene document.
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:34
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 04:07:49 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.