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)) );
246 m_widget->connect( m_inputhandler, SIGNAL(mouseClickGeoPosition(qreal,qreal,GeoDataCoordinates::Unit)),
660 if ( d->m_inputhandler && signal == QMetaMethod::fromSignal( &MarbleWidget::mouseMoveGeoPosition ) ) {
667 if ( d->m_inputhandler && signal == QMetaMethod::fromSignal( &MarbleWidget::mouseMoveGeoPosition ) ) {
836 if ( d->m_map.isLockedToSubSolarPoint() != visible ) { // Toggling input modifies event filters, so avoid that if not needed
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition: MarbleWidget.cpp:366
ViewContext
This enum is used to choose context in which map quality gets used.
Definition: MarbleGlobal.h:66
void removeEventFilter(QObject *obj)
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition: MarbleWidget.cpp:556
qreal radiusFromDistance(qreal distance) const
Return the globe radius (pixel) for the given distance (km)
Definition: MarbleWidget.cpp:1213
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition: MarbleWidget.cpp:829
void resizeEvent(QResizeEvent *event) override
Reimplementation of the resizeEvent() function in QWidget.
Definition: MarbleWidget.cpp:649
const T value(const Key &key) const const
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition: MarbleWidget.cpp:1003
EnabledChange
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition: MarbleWidget.cpp:898
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Format
int height() const const
void fill(uint pixelValue)
void beginGroup(const QString &prefix)
int minimumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:346
QRegion mapRegion() const
Return the projected region which describes the (shape of the) projected surface.
Definition: MarbleWidget.cpp:695
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition: MarbleWidget.cpp:878
MapQuality mapQuality(ViewContext=Still) const
Retrieve the map quality depending on the view context.
Definition: MarbleWidget.cpp:1020
QPixmap grab(const QRect &rectangle)
void paintEvent(QPaintEvent *event) override
Reimplementation of the paintEvent() function in QWidget.
Definition: MarbleWidget.cpp:700
rect
void zoomViewBy(int zoomStep, FlyToMode mode=Instant)
Zoom the view by a certain step.
Definition: MarbleWidget.cpp:543
void update()
virtual void resizeEvent(QResizeEvent *event)
QHash::iterator begin()
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition: MarbleWidget.cpp:1118
virtual bool event(QEvent *event) override
font
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition: MarbleWidget.cpp:819
GeoDataCoordinates focusPoint() const
Definition: MarbleWidget.cpp:1198
QList::const_iterator constBegin() const const
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:569
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:1010
void setUpdatesEnabled(bool enable)
void zoomIn(FlyToMode mode=Automatic)
Zoom in by the amount zoomStep.
Definition: MarbleWidget.cpp:550
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition: MarbleWidget.cpp:798
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:39
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition: MarbleWidget.cpp:1208
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void changeEvent(QEvent *event)
void writePluginSettings(QSettings &settings) const
Writes the plugin settings in the passed QSettings.
Definition: MarbleWidget.cpp:1140
void setShowDebugPlacemarks(bool visible)
Set whether to enter the debug mode for placemark drawing.
Definition: MarbleWidget.cpp:960
qreal zoomFromDistance(qreal distance) const
Returns the zoom value (no unit) corresponding to the given camera distance (km)
Definition: MarbleWidget.cpp:1223
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, Qt::ImageConversionFlags flags)
void setInputHandler(MarbleWidgetInputHandler *handler)
Set the input handler.
Definition: MarbleWidget.cpp:311
QHash::iterator insert(const Key &key, const T &value)
MarbleWidgetInputHandler * inputHandler() const
Returns the current input handler.
Definition: MarbleWidget.cpp:316
void changeEvent(QEvent *event) override
Reimplementation of the changeEvent() function in QWidget to react to changes of the enabled state.
Definition: MarbleWidget.cpp:1167
visible
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition: MarbleWidget.cpp:804
void readPluginSettings(QSettings &settings)
Reads the plugin settings from the passed QSettings.
Definition: MarbleWidget.cpp:1123
OtherFocusReason
QPixmap mapScreenShot()
Return a QPixmap with the current contents of the widget.
Definition: MarbleWidget.cpp:386
void setValue(const QString &key, const QVariant &value)
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition: MarbleWidget.cpp:883
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition: MarbleWidget.cpp:1203
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleWidget.cpp:690
void installEventFilter(QObject *filterObj)
void flyTo(const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
Change the camera position to the given position.
Definition: MarbleWidget.cpp:1177
ArrowCursor
const Key key(const T &value) const const
int maximumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:351
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:74
void zoomView(int zoom, FlyToMode mode=Instant)
Definition: MarbleWidget.cpp:536
void leaveEvent(QEvent *event) override
Reimplementation of the leaveEvent() function in QWidget.
Definition: MarbleWidget.cpp:644
void setProjection(int projection)
Set the Projection used for the map.
Definition: MarbleWidget.cpp:615
void setCenterLatitude(qreal lat, FlyToMode mode=Instant)
Set the latitude for the center point.
Definition: MarbleWidget.cpp:593
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:46
QVariant value(const QString &key, const QVariant &defaultValue) const const
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:672
void notifyMouseClick(int x, int y)
Used to notify about the position of the mouse click.
Definition: MarbleWidget.cpp:985
UniqueConnection
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition: MarbleWidget.cpp:873
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition: MarbleWidget.cpp:809
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition: MarbleWidget.cpp:814
qreal distanceFromZoom(qreal zoom) const
Returns the distance (km) corresponding to the given zoom value.
Definition: MarbleWidget.cpp:1228
qint64 elapsed() const const
const QRect & rect() const const
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions)
Definition: MarbleGlobal.h:157
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:88
enabled
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition: MarbleWidget.cpp:514
uchar * scanLine(int i)
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:48
qreal moveStep() const
Return how much the map will move if one of the move slots are called.
Definition: MarbleWidget.cpp:331
void setDebugLevelTags(bool visible)
Set whether to render according to OSM indoor level tags.
Definition: MarbleWidget.cpp:970
void setMapQualityForViewContext(MapQuality quality, ViewContext viewContext)
Set the map quality for the specified view context.
Definition: MarbleWidget.cpp:1025
void setAnimationsEnabled(bool enabled)
Set whether travels to a point should get animated.
Definition: MarbleWidget.cpp:1052
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:41
void endGroup()
void rotateBy(const qreal deltaLon, const qreal deltaLat, FlyToMode mode=Instant)
Rotate the view by the two angles phi and theta.
Definition: MarbleWidget.cpp:562
qreal distanceFromRadius(qreal radius) const
Return the distance (km) at the given globe radius (pixel)
Definition: MarbleWidget.cpp:1218
void goHome(FlyToMode mode=Automatic)
Center the view on the default start point with the default zoom.
Definition: MarbleWidget.cpp:759
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Definition: MarbleGlobal.h:57
QStringList childKeys() const const
qreal centerLatitude() const
Return the latitude of the center point.
Definition: MarbleWidget.cpp:685
void setHighlightEnabled(bool enabled)
Toggle whether regions are highlighted when user selects them.
Definition: MarbleWidget.cpp:401
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition: MarbleWidget.cpp:842
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition: MarbleWidget.cpp:868
void setShowRuntimeTrace(bool visible)
Set whether the runtime tracing for layers gets shown.
Definition: MarbleWidget.cpp:930
AbstractFloatItem * floatItem(const QString &nameId) const
Returns the FloatItem with the given id.
Definition: MarbleWidget.cpp:1162
void setViewContext(ViewContext viewContext)
Set the view context (i.e.
Definition: MarbleWidget.cpp:1035
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition: MarbleWidget.cpp:858
QList::const_iterator constEnd() const const
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:980
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition: MarbleWidget.cpp:863
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition: MarbleWidget.cpp:371
GeoSceneDocument * mapTheme() const
Get the GeoSceneDocument object of the current map theme.
Definition: MarbleWidget.cpp:793
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition: MarbleWidget.cpp:361
RenderState renderState() const
Detailed render status of the current map view.
Definition: MarbleWidget.cpp:396
QMetaMethod fromSignal(PointerToMemberFunction signal)
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleWidget straight after.
Definition: MarbleWidget.cpp:752
A paint layer that serves as a view on a route model.
Definition: RoutingLayer.h:29
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition: MarbleWidget.cpp:824
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:678
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition: MarbleWidget.cpp:918
WheelFocus
bool animationsEnabled() const
Retrieve whether travels to a point should get animated.
Definition: MarbleWidget.cpp:1047
QList< AbstractFloatItem * > floatItems() const
Returns a list of all FloatItems on the widget.
Definition: MarbleWidget.cpp:1157
void setShowDebugPolygons(bool visible)
Set whether to enter the debug mode for polygon node drawing.
Definition: MarbleWidget.cpp:940
void render(QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
void setShowDebugBatchRender(bool visible)
Set whether to enter the debug mode for batch rendering.
Definition: MarbleWidget.cpp:950
size
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition: MarbleWidget.cpp:834
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:86
void setCenterLongitude(qreal lon, FlyToMode mode=Instant)
Set the longitude for the center point.
Definition: MarbleWidget.cpp:599
WA_NoSystemBackground
black
const StyleBuilder * styleBuilder() const
Definition: MarbleWidget.cpp:1243
A container for features parsed from the DGML file.
Definition: GeoSceneDocument.h:29
void setDistance(qreal distance)
Set the distance of the observer to the globe in km.
Definition: MarbleWidget.cpp:1087
void setZoom(int zoom, FlyToMode mode=Instant)
Zoom the view to a certain zoomlevel.
Definition: MarbleWidget.cpp:530
void setCursor(const QCursor &)
QHash::iterator end()
void start()
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition: MarbleWidget.cpp:888
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 04:07:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 04:07:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.