Marble
MarbleMap.h
Go to the documentation of this file.
200 bool geoCoordinates(int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit = GeoDataCoordinates::Degree) const;
An abstract class for plugins that show data that has a geo coordinate.
Definition AbstractDataPlugin.h:34
The abstract class for float item plugins.
Definition AbstractFloatItem.h:40
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
A painter that allows to draw geometric primitives on the map.
Definition GeoPainter.h:86
QList< AbstractDataPlugin * > dataPlugins() const
Returns a list of all DataPlugins on the layer.
Definition MarbleMap.cpp:1380
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition MarbleMap.cpp:1111
void paint(GeoPainter &painter, const QRect &dirtyRect)
Paint the map using a give painter.
Definition MarbleMap.cpp:808
bool propertyValue(const QString &name) const
Return the property value by name.
Definition MarbleMap.cpp:559
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition MarbleMap.cpp:1092
QString addTextureLayer(GeoSceneTextureTileDataset *texture)
Adds a texture sublayer.
Definition MarbleMap.cpp:1410
void setCenterLongitude(qreal lon)
Set the longitude for the center point.
Definition MarbleMap.cpp:719
void themeChanged(const QString &theme)
Signal that the theme has changed.
void setShowDebugPolygons(bool visible)
Set whether to enter the debug mode for polygon node drawing.
Definition MarbleMap.cpp:1219
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition MarbleMap.cpp:1104
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition MarbleMap.cpp:1181
void centerOn(const qreal lon, const qreal lat)
Center the view on a geographical point.
Definition MarbleMap.cpp:707
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:1146
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition MarbleMap.cpp:1390
void visibleLatLonAltBoxChanged(const GeoDataLatLonAltBox &visibleLatLonAltBox)
This signal is emitted when the visible region of the map changes.
bool showCityLights() const
Return whether the city lights are shown instead of the night shadow.
Definition MarbleMap.cpp:601
quint64 volatileTileCacheLimit() const
Returns the limit in kilobytes of the volatile (in RAM) tile cache.
Definition MarbleMap.cpp:697
void pluginSettingsChanged()
This signal is emit when the settings of a plugin changed.
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition MarbleMap.cpp:1151
void renderPluginInitialized(RenderPlugin *renderPlugin)
Signal that a render item has been initialized.
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition MarbleMap.cpp:1048
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition MarbleMap.cpp:1395
bool showTerrain() const
Return whether the terrain place marks are visible.
Definition MarbleMap.cpp:647
void setShowDebugPlacemarks(bool visible)
Set whether to enter the debug mode for placemark drawing.
Definition MarbleMap.cpp:1246
int minimumZoom() const
return the minimum zoom value for the current map theme.
Definition MarbleMap.cpp:470
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition MarbleMap.cpp:1075
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:743
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition MarbleMap.cpp:1070
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleMap straight after.
Definition MarbleMap.cpp:850
bool isLockedToSubSolarPoint() const
Return whether the globe is locked to the sub solar point.
Definition MarbleMap.cpp:606
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:855
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition MarbleMap.cpp:1116
void notifyMouseClick(int x, int y)
used to notify about the position of the mouse click
Definition MarbleMap.cpp:1298
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition MarbleMap.cpp:1201
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition MarbleMap.cpp:1139
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition MarbleMap.cpp:1166
bool showAtmosphere() const
Return whether the atmospheric glow is visible.
Definition MarbleMap.cpp:616
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition MarbleMap.cpp:1122
void setShowDebugBatchRender(bool visible)
Set whether to enter the debug mode for visualizing batch rendering.
Definition MarbleMap.cpp:1232
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition MarbleMap.cpp:1171
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition MarbleMap.cpp:1385
void rotateBy(qreal deltaLon, qreal deltaLat)
Rotate the view by the two angles phi and theta.
Definition MarbleMap.cpp:702
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition MarbleMap.cpp:1080
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins in the model, this includes float items.
Definition MarbleMap.cpp:1358
void reload()
Reload the currently displayed map by reloading texture tiles from the Internet.
Definition MarbleMap.cpp:499
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition MarbleMap.cpp:1065
bool isSubSolarPointIconVisible() const
Return whether the sun icon is shown in the sub solar point.
Definition MarbleMap.cpp:611
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition MarbleMap.cpp:1317
void renderStatusChanged(RenderStatus status)
Emitted when the layer rendering status has changed.
void setLevelTagDebugModeEnabled(bool visible)
Set whether to enter the debug mode for level tags.
Definition MarbleMap.cpp:1259
const StyleBuilder * styleBuilder() const
Definition MarbleMap.cpp:1431
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition MarbleMap.cpp:1156
int maximumZoom() const
return the minimum zoom value for the current map theme.
Definition MarbleMap.cpp:478
AbstractFloatItem * floatItem(const QString &nameId) const
Returns a list of all FloatItems in the model.
Definition MarbleMap.cpp:1368
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:748
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition MarbleMap.cpp:1161
void repaintNeeded(const QRegion &dirtyRegion=QRegion())
This signal is emitted when the repaint of the view was requested.
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition MarbleModel.h:84
A public class that controls what is visible in the viewport of a Marble map.
Definition ViewportParams.h:41
Q_SCRIPTABLE CaptureState status()
Q_INVOKABLE void setProjection(uint proj)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
ViewContext
This enum is used to choose context in which map quality gets used.
Definition MarbleGlobal.h:65
MapQuality
This enum is used to choose the map quality shown in the view.
Definition MarbleGlobal.h:73
QObject(QObject *parent)
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.