Marble
MarbleWidget.cpp
74 RenderState renderState() const override { return RenderState(QStringLiteral("Custom Widget Paint")); }
76 QString runtimeTrace() const override { return QStringLiteral("MarbleWidget::CustomPaintLayer"); }
183 m_widget->connect( &m_presenter, SIGNAL(regionSelected(GeoDataLatLonBox)), m_widget, SIGNAL(regionSelected(GeoDataLatLonBox)) );
185 m_widget->connect( &m_presenter, SIGNAL(zoomChanged(int)), m_widget, SIGNAL(zoomChanged(int)) );
186 m_widget->connect( &m_presenter, SIGNAL(distanceChanged(QString)), m_widget, SIGNAL(distanceChanged(QString)) );
249 m_widget->connect( m_inputhandler, SIGNAL(mouseClickGeoPosition(qreal,qreal,GeoDataCoordinates::Unit)),
663 if ( d->m_inputhandler && signal == QMetaMethod::fromSignal( &MarbleWidget::mouseMoveGeoPosition ) ) {
670 if ( d->m_inputhandler && signal == QMetaMethod::fromSignal( &MarbleWidget::mouseMoveGeoPosition ) ) {
839 if ( d->m_map.isLockedToSubSolarPoint() != visible ) { // Toggling input modifies event filters, so avoid that if not needed
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:47
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:49
A painter that allows to draw geometric primitives on the map.
Definition GeoPainter.h:89
A container for features parsed from the DGML file.
Definition GeoSceneDocument.h:32
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition MarbleMap.cpp:1154
void paint(GeoPainter &painter, const QRect &dirtyRect)
Paint the map using a give painter.
Definition MarbleMap.cpp:834
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition MarbleMap.cpp:1135
void setShowDebugPolygons(bool visible)
Set whether to enter the debug mode for polygon node drawing.
Definition MarbleMap.cpp:1264
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition MarbleMap.cpp:1147
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition MarbleMap.cpp:1226
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
void setProjection(Projection projection)
Set the Projection used for the map.
Definition MarbleMap.cpp:752
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition MarbleMap.cpp:1435
bool showCityLights() const
Return whether the city lights are shown instead of the night shadow.
Definition MarbleMap.cpp:621
quint64 volatileTileCacheLimit() const
Returns the limit in kilobytes of the volatile (in RAM) tile cache.
Definition MarbleMap.cpp:717
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition MarbleMap.cpp:1196
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition MarbleMap.cpp:1090
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition MarbleMap.cpp:1440
bool showTerrain() const
Return whether the terrain place marks are visible.
Definition MarbleMap.cpp:667
void setShowDebugPlacemarks(bool visible)
Set whether to enter the debug mode for placemark drawing.
Definition MarbleMap.cpp:1291
int minimumZoom() const
return the minimum zoom value for the current map theme.
Definition MarbleMap.cpp:488
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition MarbleMap.cpp:1119
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
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition MarbleMap.cpp:1114
bool isLockedToSubSolarPoint() const
Return whether the globe is locked to the sub solar point.
Definition MarbleMap.cpp:626
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
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition MarbleMap.cpp:1159
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition MarbleMap.cpp:1246
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition MarbleMap.cpp:1184
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition MarbleMap.cpp:1211
bool showAtmosphere() const
Return whether the atmospheric glow is visible.
Definition MarbleMap.cpp:636
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition MarbleMap.cpp:1165
void setShowDebugBatchRender(bool visible)
Set whether to enter the debug mode for visualizing batch rendering.
Definition MarbleMap.cpp:1277
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition MarbleMap.cpp:1216
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition MarbleMap.cpp:1430
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition MarbleMap.cpp:1124
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins in the model, this includes float items.
Definition MarbleMap.cpp:1404
void reload()
Reload the currently displayed map by reloading texture tiles from the Internet.
Definition MarbleMap.cpp:517
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition MarbleMap.cpp:1109
bool isSubSolarPointIconVisible() const
Return whether the sun icon is shown in the sub solar point.
Definition MarbleMap.cpp:631
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition MarbleMap.cpp:1363
void setLevelTagDebugModeEnabled(bool visible)
Set whether to enter the debug mode for level tags.
Definition MarbleMap.cpp:1304
const StyleBuilder * styleBuilder() const
Definition MarbleMap.cpp:1476
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition MarbleMap.cpp:1201
int maximumZoom() const
return the minimum zoom value for the current map theme.
Definition MarbleMap.cpp:496
AbstractFloatItem * floatItem(const QString &nameId) const
Returns a list of all FloatItems in the model.
Definition MarbleMap.cpp:1414
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
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition MarbleMap.cpp:1206
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition MarbleModel.h:87
void setShowDebugBatchRender(bool visible)
Set whether to enter the debug mode for batch rendering.
Definition MarbleWidget.cpp:953
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:1013
void setViewContext(ViewContext viewContext)
Set the view context (i.e.
Definition MarbleWidget.cpp:1038
qreal distanceFromRadius(qreal radius) const
Return the distance (km) at the given globe radius (pixel)
Definition MarbleWidget.cpp:1221
void setMapQualityForViewContext(MapQuality quality, ViewContext viewContext)
Set the map quality for the specified view context.
Definition MarbleWidget.cpp:1028
qreal moveStep() const
Return how much the map will move if one of the move slots are called.
Definition MarbleWidget.cpp:334
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition MarbleWidget.cpp:822
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition MarbleWidget.cpp:861
RenderState renderState() const
Detailed render status of the current map view.
Definition MarbleWidget.cpp:399
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition MarbleWidget.cpp:891
void writePluginSettings(QSettings &settings) const
Writes the plugin settings in the passed QSettings.
Definition MarbleWidget.cpp:1143
void readPluginSettings(QSettings &settings)
Reads the plugin settings from the passed QSettings.
Definition MarbleWidget.cpp:1126
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition MarbleWidget.cpp:832
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition MarbleWidget.cpp:807
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition MarbleWidget.cpp:866
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition MarbleWidget.cpp:364
void setAnimationsEnabled(bool enabled)
Set whether travels to a point should get animated.
Definition MarbleWidget.cpp:1055
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition MarbleWidget.cpp:845
void setCenterLongitude(qreal lon, FlyToMode mode=Instant)
Set the longitude for the center point.
Definition MarbleWidget.cpp:602
void setShowDebugPolygons(bool visible)
Set whether to enter the debug mode for polygon node drawing.
Definition MarbleWidget.cpp:943
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleWidget straight after.
Definition MarbleWidget.cpp:755
bool animationsEnabled() const
Retrieve whether travels to a point should get animated.
Definition MarbleWidget.cpp:1050
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition MarbleWidget.cpp:921
void setShowRuntimeTrace(bool visible)
Set whether the runtime tracing for layers gets shown.
Definition MarbleWidget.cpp:933
void setProjection(int projection)
Set the Projection used for the map.
Definition MarbleWidget.cpp:618
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition MarbleWidget.cpp:817
qreal zoomFromDistance(qreal distance) const
Returns the zoom value (no unit) corresponding to the given camera distance (km)
Definition MarbleWidget.cpp:1226
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition MarbleWidget.cpp:1006
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition MarbleWidget.cpp:837
void paintEvent(QPaintEvent *event) override
Reimplementation of the paintEvent() function in QWidget.
Definition MarbleWidget.cpp:703
void setDistance(qreal distance)
Set the distance of the observer to the globe in km.
Definition MarbleWidget.cpp:1090
void zoomViewBy(int zoomStep, FlyToMode mode=Instant)
Zoom the view by a certain step.
Definition MarbleWidget.cpp:546
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition MarbleWidget.cpp:886
AbstractFloatItem * floatItem(const QString &nameId) const
Returns the FloatItem with the given id.
Definition MarbleWidget.cpp:1165
GeoDataCoordinates focusPoint() const
Definition MarbleWidget.cpp:1201
void changeEvent(QEvent *event) override
Reimplementation of the changeEvent() function in QWidget to react to changes of the enabled state.
Definition MarbleWidget.cpp:1170
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition MarbleWidget.cpp:871
QList< AbstractFloatItem * > floatItems() const
Returns a list of all FloatItems on the widget.
Definition MarbleWidget.cpp:1160
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:983
QPixmap mapScreenShot()
Return a QPixmap with the current contents of the widget.
Definition MarbleWidget.cpp:389
qreal radiusFromDistance(qreal distance) const
Return the globe radius (pixel) for the given distance (km)
Definition MarbleWidget.cpp:1216
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition MarbleWidget.cpp:1211
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition MarbleWidget.cpp:517
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition MarbleWidget.cpp:1206
const StyleBuilder * styleBuilder() const
Definition MarbleWidget.cpp:1246
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition MarbleWidget.cpp:374
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition MarbleWidget.cpp:876
void setDebugLevelTags(bool visible)
Set whether to render according to OSM indoor level tags.
Definition MarbleWidget.cpp:973
void leaveEvent(QEvent *event) override
Reimplementation of the leaveEvent() function in QWidget.
Definition MarbleWidget.cpp:647
QRegion mapRegion() const
Return the projected region which describes the (shape of the) projected surface.
Definition MarbleWidget.cpp:698
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition MarbleWidget.cpp:901
void setZoom(int zoom, FlyToMode mode=Instant)
Zoom the view to a certain zoomlevel.
Definition MarbleWidget.cpp:533
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition MarbleWidget.cpp:881
void setInputHandler(MarbleWidgetInputHandler *handler)
Set the input handler.
Definition MarbleWidget.cpp:314
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:681
int maximumZoom() const
Return the minimum zoom value for the current map theme.
Definition MarbleWidget.cpp:354
void setShowDebugPlacemarks(bool visible)
Set whether to enter the debug mode for placemark drawing.
Definition MarbleWidget.cpp:963
MarbleWidgetInputHandler * inputHandler() const
Returns the current input handler.
Definition MarbleWidget.cpp:319
qreal centerLongitude() const
Return the longitude of the center point.
Definition MarbleWidget.cpp:693
qreal distanceFromZoom(qreal zoom) const
Returns the distance (km) corresponding to the given zoom value.
Definition MarbleWidget.cpp:1231
void zoomView(int zoom, FlyToMode mode=Instant)
Definition MarbleWidget.cpp:539
void notifyMouseClick(int x, int y)
Used to notify about the position of the mouse click.
Definition MarbleWidget.cpp:988
void resizeEvent(QResizeEvent *event) override
Reimplementation of the resizeEvent() function in QWidget.
Definition MarbleWidget.cpp:652
void setCenterLatitude(qreal lat, FlyToMode mode=Instant)
Set the latitude for the center point.
Definition MarbleWidget.cpp:596
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition MarbleWidget.cpp:812
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition MarbleWidget.cpp:559
void setHighlightEnabled(bool enabled)
Toggle whether regions are highlighted when user selects them.
Definition MarbleWidget.cpp:404
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:675
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition MarbleWidget.cpp:369
void rotateBy(const qreal deltaLon, const qreal deltaLat, FlyToMode mode=Instant)
Rotate the view by the two angles phi and theta.
Definition MarbleWidget.cpp:565
int minimumZoom() const
Return the minimum zoom value for the current map theme.
Definition MarbleWidget.cpp:349
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:1023
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition MarbleWidget.cpp:801
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition MarbleWidget.cpp:827
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition MarbleWidget.cpp:1121
GeoSceneDocument * mapTheme() const
Get the GeoSceneDocument object of the current map theme.
Definition MarbleWidget.cpp:796
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition MarbleWidget.cpp:572
void flyTo(const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
Change the camera position to the given position.
Definition MarbleWidget.cpp:1180
void goHome(FlyToMode mode=Automatic)
Center the view on the default start point with the default zoom.
Definition MarbleWidget.cpp:762
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:791
void setPlacemarkModel(MarblePlacemarkModel *model)
Set the placemark model to use.
Definition RoutingLayer.cpp:730
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition ViewportParams.cpp:470
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition ViewportParams.cpp:475
GeoDataCoordinates focusPoint() const
Definition ViewportParams.cpp:456
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:162
ViewContext
This enum is used to choose context in which map quality gets used.
Definition MarbleGlobal.h:66
MapQuality
This enum is used to choose the map quality shown in the view.
Definition MarbleGlobal.h:74
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)
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 Jul 26 2024 11:57:57 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:57:57 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.