Marble
MarbleMap.cpp
100 RenderState renderState() const override { return RenderState(QStringLiteral("Custom Map Paint")); }
172 m_textureLayer( model->downloadManager(), model->pluginManager(), model->sunLocator(), model->groundOverlayModel() ),
173 m_placemarkLayer( model->placemarkModel(), model->placemarkSelectionModel(), model->clock(), &m_styleBuilder ),
217 QObject::connect( parent, SIGNAL(highlightedPlacemarksChanged(qreal,qreal,GeoDataCoordinates::Unit)),
462 auto const tileZoomLevel = qMax(d->m_textureLayer.tileZoomLevel(), d->m_vectorTileLayer.tileZoomLevel());
463 return tileZoomLevel >= 0 ? tileZoomLevel : qMin<int>(qMax<int>(qLn(d->m_viewport.radius()*4/256)/qLn(2.0), 1), d->m_styleBuilder.maximumZoomLevel());
477 return d->m_placemarkLayer.hasPlacemarkAt(position) || d->m_geometryLayer.hasFeatureAt(position, viewport());
514 return d->m_placemarkLayer.whichPlacemarkAt( curpos ) + d->m_geometryLayer.whichFeatureAt( curpos, viewport() );
567 // Needed for downloading unique tiles only. Much faster than if tiles for each level is downloaded separately
861 d->m_renderState.addChild(RenderState(QStringLiteral("Files"), parsing ? WaitingForData : Complete));
907 QColor backgroundColor = m_styleBuilder.effectColor(m_model->mapTheme()->map()->backgroundColor());
913 const GeoSceneGroup *const textureLayerSettings = settings ? settings->group( "Texture Layers" ) : nullptr;
914 const GeoSceneGroup *const vectorTileLayerSettings = settings ? settings->group( "VectorTile Layers" ) : nullptr;
928 const GeoSceneTextureTileDataset *const texture = dynamic_cast<GeoSceneTextureTileDataset const *>( pos );
974 const GeoSceneVectorTileDataset *const vectorTile = dynamic_cast<GeoSceneVectorTileDataset const *>( pos );
ViewContext
This enum is used to choose context in which map quality gets used.
Definition: MarbleGlobal.h:66
bool geoCoordinates(int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const
Get the earth coordinates corresponding to a pixel in the map.
Definition: MarbleMap.cpp:773
QString addTextureLayer(GeoSceneTextureTileDataset *texture)
Adds a texture sublayer.
Definition: MarbleMap.cpp:1455
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition: MarbleMap.cpp:1159
bool isEmpty() const const
bool isLockedToSubSolarPoint() const
Return whether the globe is locked to the sub solar point.
Definition: MarbleMap.cpp:626
void setCenterLatitude(qreal lat)
Set the latitude for the center point.
Definition: MarbleMap.cpp:737
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void notifyMouseClick(int x, int y)
used to notify about the position of the mouse click
Definition: MarbleMap.cpp:1344
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition: MarbleMap.cpp:1154
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition: MarbleMap.cpp:1440
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition: MarbleMap.cpp:1147
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition: MarbleMap.cpp:1216
int count() const const
void centerOn(const qreal lon, const qreal lat)
Center the view on a geographical point.
Definition: MarbleMap.cpp:730
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition: MarbleMap.cpp:1363
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition: MarbleMap.cpp:1211
void append(const T &value)
void setLevelTagDebugModeEnabled(bool visible)
Set whether to enter the debug mode for level tags.
Definition: MarbleMap.cpp:1304
static GeoDataCoordinates::Notation defaultNotation()
return Notation of string representation
Definition: GeoDataCoordinates.cpp:233
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleMap straight after.
Definition: MarbleMap.cpp:877
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition: MarbleMap.cpp:1196
bool showCityLights() const
Return whether the city lights are shown instead of the night shadow.
Definition: MarbleMap.cpp:621
void setShowTileId(bool visible)
Set whether the is tile is visible NOTE: This is part of the transitional debug API and might be subj...
Definition: MarbleMap.cpp:1191
bool isSubSolarPointIconVisible() const
Return whether the sun icon is shown in the sub solar point.
Definition: MarbleMap.cpp:631
QList::const_iterator constBegin() const const
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition: MarbleMap.cpp:702
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition: MarbleMap.cpp:1135
void rotateBy(qreal deltaLon, qreal deltaLat)
Rotate the view by the two angles phi and theta.
Definition: MarbleMap.cpp:723
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:39
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setShowDebugPlacemarks(bool visible)
Set whether to enter the debug mode for placemark drawing.
Definition: MarbleMap.cpp:1291
bool showAtmosphere() const
Return whether the atmospheric glow is visible.
Definition: MarbleMap.cpp:636
Group inside the settings of a GeoScene document.
Definition: GeoSceneGroup.h:25
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins in the model, this includes float items.
Definition: MarbleMap.cpp:1404
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition: MarbleMap.cpp:1430
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:41
bool showTerrain() const
Return whether the terrain place marks are visible.
Definition: MarbleMap.cpp:667
bool screenCoordinates(qreal lon, qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: MarbleMap.cpp:767
const StyleBuilder * styleBuilder() const
Definition: MarbleMap.cpp:1476
void visibleLatLonAltBoxChanged(const GeoDataLatLonAltBox &visibleLatLonAltBox)
This signal is emitted when the visible region of the map changes.
void getCoords(int *x1, int *y1, int *x2, int *y2) const const
bool isEmpty() const const
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition: MarbleMap.cpp:1226
void removeTextureLayer(const QString &key)
Removes a texture sublayer.
Definition: MarbleMap.cpp:1460
QString mapThemeId() const
Get the ID of the current map theme To ensure that a unique identifier is being used the theme does N...
Definition: MarbleMap.cpp:882
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:74
void renderStatusChanged(RenderStatus status)
Emitted when the layer rendering status has changed.
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition: MarbleMap.cpp:1201
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition: MarbleMap.cpp:1090
bool showCities() const
Return whether the city place marks are visible.
Definition: MarbleMap.cpp:662
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
static void setDefaultNotation(GeoDataCoordinates::Notation notation)
set the Notation of the string representation
Definition: GeoDataCoordinates.cpp:239
Contents used inside a layer.
Definition: GeoSceneAbstractDataset.h:22
AbstractFloatItem * floatItem(const QString &nameId) const
Returns a list of all FloatItems in the model.
Definition: MarbleMap.cpp:1414
qint64 elapsed() const const
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:88
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition: MarbleMap.cpp:1124
bool propertyValue(const QString &name) const
Return the property value by name.
Definition: MarbleMap.cpp:578
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition: MarbleMap.cpp:1114
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:41
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition: MarbleMap.cpp:1165
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Definition: MarbleGlobal.h:57
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition: MarbleMap.cpp:1435
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition: MarbleMap.cpp:1206
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition: MarbleMap.cpp:1246
void setProjection(Projection projection)
Set the Projection used for the map.
Definition: MarbleMap.cpp:752
QList::const_iterator constEnd() const const
void setCenterLongitude(qreal lon)
Set the longitude for the center point.
Definition: MarbleMap.cpp:742
void repaintNeeded(const QRegion &dirtyRegion=QRegion())
This signal is emitted when the repaint of the view was requested.
int minimumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:488
void setShowDebugBatchRender(bool visible)
Set whether to enter the debug mode for visualizing batch rendering.
Definition: MarbleMap.cpp:1277
void reload()
Reload the currently displayed map by reloading texture tiles from the Internet.
Definition: MarbleMap.cpp:517
QList< AbstractDataPlugin * > dataPlugins() const
Returns a list of all DataPlugins on the layer.
Definition: MarbleMap.cpp:1425
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition: MarbleMap.cpp:1109
@ WaitingForData
Rendering is based on no or partial data, more data was requested (e.g. pending network queries)
Definition: MarbleGlobal.h:183
QSet::iterator insert(const T &value)
int size() const const
quint64 volatileTileCacheLimit() const
Returns the limit in kilobytes of the volatile (in RAM) tile cache.
Definition: MarbleMap.cpp:717
void paint(GeoPainter &painter, const QRect &dirtyRect)
Paint the map using a give painter.
Definition: MarbleMap.cpp:834
bool showOverviewMap() const
Return whether the overview map is visible.
Definition: MarbleMap.cpp:591
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition: MarbleMap.cpp:1184
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition: MarbleMap.cpp:1119
void setShowDebugPolygons(bool visible)
Set whether to enter the debug mode for polygon node drawing.
Definition: MarbleMap.cpp:1264
int maximumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:496
QFuture< void > map(Sequence &sequence, MapFunctor function)
const GeoSceneGroup * group(const QString &name) const
Get a group from the settings.
Definition: GeoSceneSettings.cpp:181
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:86
void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:09:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:09:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.