Marble

GeoDataOverlay.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#ifndef MARBLE_GEODATAOVERLAY_H
7#define MARBLE_GEODATAOVERLAY_H
8
9#include "GeoDataFeature.h"
10#include "geodata_export.h"
11
12class QColor;
13class QImage;
14
15namespace Marble
16{
17
18class GeoDataOverlayPrivate;
19
20/**
21 */
22class GEODATA_EXPORT GeoDataOverlay : public GeoDataFeature
23{
24public:
25 /** Constructor */
26 GeoDataOverlay();
27
28 ~GeoDataOverlay() override;
29
30 GeoDataOverlay(const GeoDataOverlay &other);
31
32 GeoDataOverlay &operator=(const GeoDataOverlay &other);
33
34 QColor color() const;
35
36 void setColor(const QColor &color);
37
38 int drawOrder() const;
39
40 void setDrawOrder(int order);
41
42 QImage icon() const;
43
44 void setIcon(const QImage &icon);
45
46 void setIconFile(const QString &path);
47
48 QString iconFile() const;
49
50 /**
51 * Returns the #iconFile as an absolute filename. Relative files are
52 * resolved relative to the directory of the GeoDataDocument this overlay
53 * is part of (@see fileName of GeoDataDocument)
54 */
55 QString absoluteIconFile() const;
56
57protected:
58 explicit GeoDataOverlay(GeoDataOverlayPrivate *priv);
59 GeoDataOverlay(const GeoDataOverlay &other, GeoDataOverlayPrivate *priv);
60
61 bool equals(const GeoDataOverlay &other) const;
62 using GeoDataFeature::equals;
63
64private:
65 Q_DECLARE_PRIVATE(GeoDataOverlay)
66};
67
68}
69
70#endif
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.