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
7#ifndef MARBLE_GEODATAOVERLAY_H
8#define MARBLE_GEODATAOVERLAY_H
9
10#include "geodata_export.h"
11#include "GeoDataFeature.h"
12
13class QColor;
14class QImage;
15
16namespace Marble
17{
18
19class GeoDataOverlayPrivate;
20
21/**
22 */
23class GEODATA_EXPORT GeoDataOverlay: public GeoDataFeature
24{
25 public:
26 /** Constructor */
27 GeoDataOverlay();
28
29 ~GeoDataOverlay() override;
30
31 GeoDataOverlay( const GeoDataOverlay &other );
32
33 GeoDataOverlay& operator=( const GeoDataOverlay &other );
34
35 QColor color() const;
36
37 void setColor( const QColor &color );
38
39 int drawOrder() const;
40
41 void setDrawOrder( int order );
42
43 QImage icon() const;
44
45 void setIcon( const QImage &icon );
46
47 void setIconFile( const QString &path );
48
49 QString iconFile() const;
50
51 /**
52 * Returns the #iconFile as an absolute filename. Relative files are
53 * resolved relative to the directory of the GeoDataDocument this overlay
54 * is part of (@see fileName of GeoDataDocument)
55 */
56 QString absoluteIconFile() const;
57
58protected:
59 explicit GeoDataOverlay(GeoDataOverlayPrivate *priv);
60 GeoDataOverlay(const GeoDataOverlay& other, GeoDataOverlayPrivate *priv);
61
62 bool equals(const GeoDataOverlay &other) const;
63 using GeoDataFeature::equals;
64
65 private:
66 Q_DECLARE_PRIVATE(GeoDataOverlay)
67};
68
69}
70
71#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 Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.