6#include "GeoDataOverlay.h"
7#include "GeoDataOverlay_p.h"
11GeoDataOverlay::GeoDataOverlay()
12 : GeoDataFeature(new GeoDataOverlayPrivate)
17GeoDataOverlay::GeoDataOverlay(
const GeoDataOverlay &other)
18 : GeoDataFeature(other, new GeoDataOverlayPrivate(*other.d_func()))
23GeoDataOverlay::GeoDataOverlay(GeoDataOverlayPrivate *priv)
24 : GeoDataFeature(priv)
28GeoDataOverlay::GeoDataOverlay(
const GeoDataOverlay& other, GeoDataOverlayPrivate *priv)
29 : GeoDataFeature(other, priv)
33GeoDataOverlay::~GeoDataOverlay()
37GeoDataOverlay &GeoDataOverlay::operator=(
const GeoDataOverlay &other )
47QColor GeoDataOverlay::color()
const
49 Q_D(
const GeoDataOverlay);
53void GeoDataOverlay::setColor(
const QColor &color )
59int GeoDataOverlay::drawOrder()
const
61 Q_D(
const GeoDataOverlay);
62 return d->m_drawOrder;
65void GeoDataOverlay::setDrawOrder(
int order )
68 d->m_drawOrder = order;
71QImage GeoDataOverlay::icon()
const
73 Q_D(
const GeoDataOverlay);
74 if ( d->m_image.isNull() && !d->m_iconPath.isEmpty() ) {
75 d->m_image =
QImage( absoluteIconFile() );
80void GeoDataOverlay::setIcon(
const QImage &icon )
86void GeoDataOverlay::setIconFile(
const QString &path )
90 d->m_image =
QImage( path );
93QString GeoDataOverlay::iconFile()
const
95 Q_D(
const GeoDataOverlay);
99QString GeoDataOverlay::absoluteIconFile()
const
101 Q_D(
const GeoDataOverlay);
102 return resolvePath( d->m_iconPath );
105bool 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;
QString path(const QString &relativePath)
Binds a QML item to a specific geodetic location in screen coordinates.