Marble
6 #include "GeoDataOverlay.h"
7 #include "GeoDataOverlay_p.h"
11 GeoDataOverlay::GeoDataOverlay()
12 : GeoDataFeature(new GeoDataOverlayPrivate)
17 GeoDataOverlay::GeoDataOverlay(
const GeoDataOverlay &other)
18 : GeoDataFeature(other, new GeoDataOverlayPrivate(*other.d_func()))
23 GeoDataOverlay::GeoDataOverlay(GeoDataOverlayPrivate *priv)
24 : GeoDataFeature(priv)
28 GeoDataOverlay::GeoDataOverlay(
const GeoDataOverlay& other, GeoDataOverlayPrivate *priv)
29 : GeoDataFeature(other, priv)
33 GeoDataOverlay::~GeoDataOverlay()
37 GeoDataOverlay &GeoDataOverlay::operator=(
const GeoDataOverlay &other )
47 QColor GeoDataOverlay::color()
const
49 Q_D(
const GeoDataOverlay);
53 void GeoDataOverlay::setColor(
const QColor &color )
59 int GeoDataOverlay::drawOrder()
const
61 Q_D(
const GeoDataOverlay);
62 return d->m_drawOrder;
65 void GeoDataOverlay::setDrawOrder(
int order )
68 d->m_drawOrder = order;
71 QImage GeoDataOverlay::icon()
const
73 Q_D(
const GeoDataOverlay);
74 if ( d->m_image.isNull() && !d->m_iconPath.isEmpty() ) {
75 d->m_image =
QImage( absoluteIconFile() );
80 void GeoDataOverlay::setIcon(
const QImage &icon )
86 void GeoDataOverlay::setIconFile(
const QString &path )
90 d->m_image =
QImage( path );
93 QString GeoDataOverlay::iconFile()
const
95 Q_D(
const GeoDataOverlay);
99 QString GeoDataOverlay::absoluteIconFile()
const
101 Q_D(
const GeoDataOverlay);
102 return resolvePath( d->m_iconPath );
105 bool GeoDataOverlay::equals(
const GeoDataOverlay& other)
const
107 Q_D(
const GeoDataOverlay);
108 const GeoDataOverlayPrivate*
const other_d = other.d_func();
110 return GeoDataFeature::equals(other) &&
111 d->m_drawOrder == other_d->m_drawOrder &&
112 d->m_color == other_d->m_color &&
113 d->m_iconPath == other_d->m_iconPath &&
114 d->m_image == other_d->m_image;
Binds a QML item to a specific geodetic location in screen coordinates.
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:41 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.