Marble

OsmObjectManager.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2015 Stanciu Marius-Valeriu <stanciumarius94@gmail.com>
4//
5
6#ifndef MARBLE_OSMOBJECTMANAGER_H
7#define MARBLE_OSMOBJECTMANAGER_H
8
9#include <QtGlobal>
10#include <marble_export.h>
11
12namespace Marble
13{
14
16
17/**
18 * @brief The OsmObjectManager class is used to assign osmData to placemarks that
19 * do not have them at write time. Objects with no osmData usually consist of
20 * new placemarks created in the editor and placemarks loaded from KML files.
21 */
22class MARBLE_EXPORT OsmObjectManager
23{
24public:
25 /**
26 * @brief initializeOsmData assigns valid osmData
27 * to a placemark that does not have it.
28 */
29 static void initializeOsmData(GeoDataPlacemark *placemark);
30
31 /**
32 * @brief registerId is used to keep track of the minimum id @see m_minId
33 */
34 static void registerId(qint64 id);
35
36private:
37 /**
38 * @brief newly created placemarks are assigned negative unique IDs.
39 * In order to assure there are no duplicate IDs, they are assigned the
40 * minId - 1 id.
41 */
42 static qint64 m_minId;
43};
44
45}
46
47#endif
a class representing a point of interest on the map
The OsmObjectManager class is used to assign osmData to placemarks that do not have them at write tim...
static void registerId(qint64 id)
registerId is used to keep track of the minimum id
static void initializeOsmData(GeoDataPlacemark *placemark)
initializeOsmData assigns valid osmData to a placemark that does not have it.
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:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.