Marble
MarbleWidget.cpp
62 bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer) override
191 m_widget->connect(&m_presenter, SIGNAL(regionSelected(GeoDataLatLonBox)), m_widget, SIGNAL(regionSelected(GeoDataLatLonBox)));
194 m_widget->connect(&m_presenter, SIGNAL(distanceChanged(QString)), m_widget, SIGNAL(distanceChanged(QString)));
197 m_widget->connect(&m_map, SIGNAL(visibleLatLonAltBoxChanged(GeoDataLatLonAltBox)), m_widget, SIGNAL(visibleLatLonAltBoxChanged(GeoDataLatLonAltBox)));
198 m_widget->connect(&m_map, SIGNAL(projectionChanged(Projection)), m_widget, SIGNAL(projectionChanged(Projection)));
199 m_widget->connect(&m_map, SIGNAL(tileLevelChanged(int)), m_widget, SIGNAL(tileLevelChanged(int)));
200 m_widget->connect(&m_map, SIGNAL(framesPerSecond(qreal)), m_widget, SIGNAL(framesPerSecond(qreal)));
201 m_widget->connect(&m_map, SIGNAL(viewContextChanged(ViewContext)), m_widget, SLOT(setViewContext(ViewContext)));
203 m_widget->connect(&m_map, SIGNAL(pluginSettingsChanged()), m_widget, SIGNAL(pluginSettingsChanged()));
204 m_widget->connect(&m_map, SIGNAL(renderPluginInitialized(RenderPlugin *)), m_widget, SIGNAL(renderPluginInitialized(RenderPlugin *)));
208 m_widget->connect(&m_map, SIGNAL(viewContextChanged(ViewContext)), m_widget, SIGNAL(viewContextChanged(ViewContext)));
210 m_widget->connect(&m_map, SIGNAL(visibleLatLonAltBoxChanged(GeoDataLatLonAltBox)), m_widget, SLOT(updateSystemBackgroundAttribute()));
211 m_widget->connect(&m_map, SIGNAL(renderStatusChanged(RenderStatus)), m_widget, SIGNAL(renderStatusChanged(RenderStatus)));
212 m_widget->connect(&m_map, SIGNAL(renderStateChanged(RenderState)), m_widget, SIGNAL(renderStateChanged(RenderState)));
214 m_widget->connect(&m_map, SIGNAL(propertyValueChanged(QString, bool)), m_widget, SIGNAL(propertyValueChanged(QString, bool)));
216 m_widget->connect(m_model.fileManager(), SIGNAL(centeredDocument(GeoDataLatLonBox)), m_widget, SLOT(centerOn(GeoDataLatLonBox)));
260 QObject::connect(m_inputhandler, SIGNAL(mouseClickScreenPosition(int, int)), m_widget, SLOT(notifyMouseClick(int, int)));
262 QObject::connect(m_inputhandler, SIGNAL(mouseMoveGeoPosition(QString)), m_widget, SIGNAL(mouseMoveGeoPosition(QString)));
649 if (d->m_inputhandler && signal == QMetaMethod::fromSignal(&MarbleWidget::mouseMoveGeoPosition)) {
656 if (d->m_inputhandler && signal == QMetaMethod::fromSignal(&MarbleWidget::mouseMoveGeoPosition)) {
666bool MarbleWidget::geoCoordinates(int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit) const
696 QImage::Format imageFormat = (d->m_map.viewport()->mapCoversViewport()) ? QImage::Format_RGB32 : QImage::Format_ARGB32_Premultiplied;
816 if (d->m_map.isLockedToSubSolarPoint() != visible) { // Toggling input modifies event filters, so avoid that if not needed
990void MarbleWidget::creatingTilesStart(TileCreator *creator, const QString &name, const QString &description)
This file contains the headers for MarbleMap.
This file contains the headers for MarbleModel.
This file contains the headers for MarbleWidget.
This file contains the headers for ViewportParams.
The abstract class for float item plugins.
Definition AbstractFloatItem.h:40
A class that defines a 2D bounding box for geographic data.
Definition GeoDataLatLonBox.h:45
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
A painter that allows to draw geometric primitives on the map.
Definition GeoPainter.h:86
A container for features parsed from the DGML file.
Definition GeoSceneDocument.h:30
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
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition MarbleMap.cpp:1092
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 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 setProjection(Projection projection)
Set the Projection used for the map.
Definition MarbleMap.cpp:729
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition MarbleMap.cpp:1390
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 setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition MarbleMap.cpp:1151
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
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 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 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 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
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition MarbleModel.h:84
void setShowDebugBatchRender(bool visible)
Set whether to enter the debug mode for batch rendering.
Definition MarbleWidget.cpp:930
void creatingTilesStart(TileCreator *creator, const QString &name, const QString &description)
A slot that is called when the model starts to create new tiles.
Definition MarbleWidget.cpp:990
void setViewContext(ViewContext viewContext)
Set the view context (i.e.
Definition MarbleWidget.cpp:1013
qreal distanceFromRadius(qreal radius) const
Return the distance (km) at the given globe radius (pixel)
Definition MarbleWidget.cpp:1193
void setMapQualityForViewContext(MapQuality quality, ViewContext viewContext)
Set the map quality for the specified view context.
Definition MarbleWidget.cpp:1003
qreal moveStep() const
Return how much the map will move if one of the move slots are called.
Definition MarbleWidget.cpp:321
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition MarbleWidget.cpp:799
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition MarbleWidget.cpp:838
RenderState renderState() const
Detailed render status of the current map view.
Definition MarbleWidget.cpp:386
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition MarbleWidget.cpp:868
void writePluginSettings(QSettings &settings) const
Writes the plugin settings in the passed QSettings.
Definition MarbleWidget.cpp:1116
void readPluginSettings(QSettings &settings)
Reads the plugin settings from the passed QSettings.
Definition MarbleWidget.cpp:1099
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition MarbleWidget.cpp:809
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition MarbleWidget.cpp:784
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition MarbleWidget.cpp:843
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition MarbleWidget.cpp:351
void setAnimationsEnabled(bool enabled)
Set whether travels to a point should get animated.
Definition MarbleWidget.cpp:1030
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition MarbleWidget.cpp:822
void setCenterLongitude(qreal lon, FlyToMode mode=Instant)
Set the longitude for the center point.
Definition MarbleWidget.cpp:588
void setShowDebugPolygons(bool visible)
Set whether to enter the debug mode for polygon node drawing.
Definition MarbleWidget.cpp:920
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleWidget straight after.
Definition MarbleWidget.cpp:733
bool animationsEnabled() const
Retrieve whether travels to a point should get animated.
Definition MarbleWidget.cpp:1025
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition MarbleWidget.cpp:898
void setShowRuntimeTrace(bool visible)
Set whether the runtime tracing for layers gets shown.
Definition MarbleWidget.cpp:910
void setProjection(int projection)
Set the Projection used for the map.
Definition MarbleWidget.cpp:604
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition MarbleWidget.cpp:794
qreal zoomFromDistance(qreal distance) const
Returns the zoom value (no unit) corresponding to the given camera distance (km)
Definition MarbleWidget.cpp:1198
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition MarbleWidget.cpp:983
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition MarbleWidget.cpp:814
void paintEvent(QPaintEvent *event) override
Reimplementation of the paintEvent() function in QWidget.
Definition MarbleWidget.cpp:686
void setDistance(qreal distance)
Set the distance of the observer to the globe in km.
Definition MarbleWidget.cpp:1065
void zoomViewBy(int zoomStep, FlyToMode mode=Instant)
Zoom the view by a certain step.
Definition MarbleWidget.cpp:534
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition MarbleWidget.cpp:863
AbstractFloatItem * floatItem(const QString &nameId) const
Returns the FloatItem with the given id.
Definition MarbleWidget.cpp:1138
GeoDataCoordinates focusPoint() const
Definition MarbleWidget.cpp:1173
void changeEvent(QEvent *event) override
Reimplementation of the changeEvent() function in QWidget to react to changes of the enabled state.
Definition MarbleWidget.cpp:1143
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition MarbleWidget.cpp:848
QList< AbstractFloatItem * > floatItems() const
Returns a list of all FloatItems on the widget.
Definition MarbleWidget.cpp:1133
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 MarbleWidget.cpp:960
QPixmap mapScreenShot()
Return a QPixmap with the current contents of the widget.
Definition MarbleWidget.cpp:376
qreal radiusFromDistance(qreal distance) const
Return the globe radius (pixel) for the given distance (km)
Definition MarbleWidget.cpp:1188
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition MarbleWidget.cpp:1183
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition MarbleWidget.cpp:507
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition MarbleWidget.cpp:1178
const StyleBuilder * styleBuilder() const
Definition MarbleWidget.cpp:1218
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition MarbleWidget.cpp:361
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition MarbleWidget.cpp:853
void setDebugLevelTags(bool visible)
Set whether to render according to OSM indoor level tags.
Definition MarbleWidget.cpp:950
void leaveEvent(QEvent *event) override
Reimplementation of the leaveEvent() function in QWidget.
Definition MarbleWidget.cpp:633
QRegion mapRegion() const
Return the projected region which describes the (shape of the) projected surface.
Definition MarbleWidget.cpp:681
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition MarbleWidget.cpp:878
void setZoom(int zoom, FlyToMode mode=Instant)
Zoom the view to a certain zoomlevel.
Definition MarbleWidget.cpp:522
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition MarbleWidget.cpp:858
void setInputHandler(MarbleWidgetInputHandler *handler)
Set the input handler.
Definition MarbleWidget.cpp:301
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 widget.
Definition MarbleWidget.cpp:666
int maximumZoom() const
Return the minimum zoom value for the current map theme.
Definition MarbleWidget.cpp:341
void setShowDebugPlacemarks(bool visible)
Set whether to enter the debug mode for placemark drawing.
Definition MarbleWidget.cpp:940
MarbleWidgetInputHandler * inputHandler() const
Returns the current input handler.
Definition MarbleWidget.cpp:306
qreal centerLongitude() const
Return the longitude of the center point.
Definition MarbleWidget.cpp:676
qreal distanceFromZoom(qreal zoom) const
Returns the distance (km) corresponding to the given zoom value.
Definition MarbleWidget.cpp:1203
void zoomView(int zoom, FlyToMode mode=Instant)
Definition MarbleWidget.cpp:528
void notifyMouseClick(int x, int y)
Used to notify about the position of the mouse click.
Definition MarbleWidget.cpp:965
void resizeEvent(QResizeEvent *event) override
Reimplementation of the resizeEvent() function in QWidget.
Definition MarbleWidget.cpp:638
void setCenterLatitude(qreal lat, FlyToMode mode=Instant)
Set the latitude for the center point.
Definition MarbleWidget.cpp:582
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition MarbleWidget.cpp:789
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition MarbleWidget.cpp:546
void setHighlightEnabled(bool enabled)
Toggle whether regions are highlighted when user selects them.
Definition MarbleWidget.cpp:391
bool screenCoordinates(qreal lon, qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the widget.
Definition MarbleWidget.cpp:661
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition MarbleWidget.cpp:356
void rotateBy(const qreal deltaLon, const qreal deltaLat, FlyToMode mode=Instant)
Rotate the view by the two angles phi and theta.
Definition MarbleWidget.cpp:552
int minimumZoom() const
Return the minimum zoom value for the current map theme.
Definition MarbleWidget.cpp:336
void themeChanged(const QString &theme)
Signal that the theme has changed.
MapQuality mapQuality(ViewContext=Still) const
Retrieve the map quality depending on the view context.
Definition MarbleWidget.cpp:998
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition MarbleWidget.cpp:778
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition MarbleWidget.cpp:804
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition MarbleWidget.cpp:1094
GeoSceneDocument * mapTheme() const
Get the GeoSceneDocument object of the current map theme.
Definition MarbleWidget.cpp:773
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition MarbleWidget.cpp:558
void flyTo(const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
Change the camera position to the given position.
Definition MarbleWidget.cpp:1152
void goHome(FlyToMode mode=Automatic)
Center the view on the default start point with the default zoom.
Definition MarbleWidget.cpp:739
A paint layer that serves as a view on a route model.
Definition RoutingLayer.h:30
void setViewContext(ViewContext viewContext)
Set the view context to determine whether the map is used interactively.
Definition RoutingLayer.cpp:785
void setPlacemarkModel(MarblePlacemarkModel *model)
Set the placemark model to use.
Definition RoutingLayer.cpp:724
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition ViewportParams.cpp:437
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition ViewportParams.cpp:442
GeoDataCoordinates focusPoint() const
Definition ViewportParams.cpp:425
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions)
Definition MarbleGlobal.h:161
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
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
qint64 elapsed() const const
void start()
EnabledChange
iterator begin()
iterator end()
iterator insert(const Key &key, const T &value)
Format
void fill(Qt::GlobalColor color)
int height() const const
uchar * scanLine(int i)
int width() const const
const_iterator constBegin() const const
const_iterator constEnd() const const
QMetaMethod fromSignal(PointerToMemberFunction signal)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
void installEventFilter(QObject *filterObj)
void removeEventFilter(QObject *obj)
void drawImage(const QPoint &point, const QImage &image)
const QRect & rect() const const
void beginGroup(QAnyStringView prefix)
QStringList childKeys() const const
void endGroup()
void setValue(QAnyStringView key, const QVariant &value)
QVariant value(QAnyStringView key) const const
bool isEmpty() const const
UniqueConnection
ArrowCursor
WheelFocus
OtherFocusReason
black
WA_NoSystemBackground
void setAutoFillBackground(bool enabled)
virtual void changeEvent(QEvent *event)
void setCursor(const QCursor &)
enabled
virtual bool event(QEvent *event) override
void setFocusPolicy(Qt::FocusPolicy policy)
font
QPixmap grab(const QRect &rectangle)
height
void setMinimumSize(const QSize &)
void setMouseTracking(bool enable)
void setPalette(const QPalette &)
rect
virtual void resizeEvent(QResizeEvent *event)
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setFocus()
size
void update()
void setUpdatesEnabled(bool enable)
visible
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.