Marble
7 #include "GeoSceneMap.h"
9 #include "GeoSceneTypes.h"
10 #include "GeoSceneLayer.h"
11 #include "GeoSceneFilter.h"
12 #include "DgmlAuxillaryDictionary.h"
21 class GeoSceneMapPrivate
30 qDeleteAll( m_layers );
31 qDeleteAll( m_filters );
47 QColor m_highlightBrushColor;
48 QColor m_highlightPenColor;
52 GeoSceneMap::GeoSceneMap()
53 : d ( new GeoSceneMapPrivate )
57 GeoSceneMap::~GeoSceneMap()
64 return GeoSceneTypes::GeoSceneMapType;
71 while (it != d->m_layers.end()) {
73 if ( currentLayer->name() ==
layer->name() ) {
75 d->m_layers.erase(it);
84 d->m_layers.append(
layer );
94 for (; it != end; ++it) {
95 if ( (*it)->name() == name ) {
115 for (; it != end; ++it) {
116 if ( (*it)->name() == name ) {
133 while (it != d->m_filters.end()) {
135 if ( currentFilter->name() ==
filter->name() ) {
136 delete currentFilter;
137 d->m_filters.erase(it);
146 d->m_filters.append(
filter );
156 for (; it != end; ++it) {
157 if ( (*it)->name() == name ) {
180 for (; it != end; ++it) {
181 if (((*it)->backend() ==
QLatin1String(dgml::dgmlValue_texture) ||
182 (*it)->backend() ==
QLatin1String(dgml::dgmlValue_vectortile)) && (*it)->datasets().count() > 0)
193 for (; it != end; ++it) {
194 if (((*it)->backend() ==
QLatin1String(dgml::dgmlValue_vector)) && (*it)->datasets().count() > 0)
201 QColor GeoSceneMap::backgroundColor()
const
203 return d->m_backgroundColor;
206 void GeoSceneMap::setBackgroundColor(
const QColor& backgroundColor )
208 d->m_backgroundColor = backgroundColor;
212 QColor GeoSceneMap::labelColor()
const
214 return d->m_labelColor;
217 void GeoSceneMap::setLabelColor(
const QColor& backgroundColor )
219 d->m_labelColor = backgroundColor;
222 QColor GeoSceneMap::highlightBrushColor()
const
224 return d->m_highlightBrushColor;
227 void GeoSceneMap::setHighlightBrushColor(
const QColor & highlightBrushColor )
229 d->m_highlightBrushColor = highlightBrushColor;
232 QColor GeoSceneMap::highlightPenColor()
const
234 return d->m_highlightPenColor;
237 void GeoSceneMap::setHighlightPenColor(
const QColor &highlightPenColor )
239 d->m_highlightPenColor = highlightPenColor;
QVector< GeoSceneLayer * > layers() const
Return all layers.
void addFilter(GeoSceneFilter *)
Add a new filter to the map.
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Layer of a GeoScene document.
bool hasTextureLayers() const
Checks for valid layers that contain texture data.
GeoSceneFilter * filter(const QString &name)
Return a filter by its name.
Binds a QML item to a specific geodetic location in screen coordinates.
GeoSceneLayer * layer(const QString &name)
Return a layer by its name.
void addLayer(GeoSceneLayer *)
Add a new layer to the map.
QVector< GeoSceneFilter * > filters() const
Return all filters.
bool hasVectorLayers() const
Checks for valid layers that contain vector data.
Filter of a GeoScene document.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Jun 28 2022 03:53:04 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.