marble
MarbleWidget.cpp
Go to the documentation of this file.
194 m_widget->connect(this, SIGNAL(regionSelected(QList<double>)), m_widget, SIGNAL(regionSelected(QList<double>)));
199 m_widget->connect(this, SIGNAL(distanceChanged(QString)), m_widget, SIGNAL(distanceChanged(QString)));
649 if ( d->m_inputhandler && signal == QMetaMethod::fromSignal( &MarbleWidget::mouseMoveGeoPosition ) ) {
656 if ( d->m_inputhandler && signal == QMetaMethod::fromSignal( &MarbleWidget::mouseMoveGeoPosition ) ) {
839 if ( d->map()->isLockedToSubSolarPoint() != visible ) { // Toggling input modifies event filters, so avoid that if not needed
1025 { //TODO - move to MarbleAbstractPresenter as soon as RoutingLayer is ported there, replace with pImpl call
uchar * scanLine(int i)
bool showSunShading() const
Return whether the night shadow is visible.
void framesPerSecond(qreal fps)
Type type() const
iterator insert(const Key &key, const T &value)
bool showTerrain() const
Return whether the terrain place marks are visible.
bool showOverviewMap() const
Return whether the overview map is visible.
QByteArray normalizedSignature(const char *method)
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition: MarbleWidget.cpp:1191
QString distanceString() const
Return the current distance string.
Definition: MarbleWidget.cpp:1081
void setCursor(const QCursor &)
const Key key(const T &value) const
bool showCrosshairs() const
Return whether the crosshairs are visible.
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition: MarbleWidget.cpp:830
void zoomViewBy(int zoomStep, FlyToMode mode=Instant)
Zoom the view by a certain step.
Definition: MarbleWidget.cpp:527
QStringList childKeys() const
bool showOtherPlaces() const
Return whether other places are visible.
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:662
void connectNotify(const char *signal)
Definition: MarbleWidget.cpp:631
virtual void leaveEvent(QEvent *event)
Reimplementation of the leaveEvent() function in QWidget.
Definition: MarbleWidget.cpp:616
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition: MarbleWidget.cpp:787
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void endGroup()
RenderState renderState() const
Detailed render status of the current map view.
Definition: MarbleWidget.cpp:395
This file contains the headers for MarbleModel.
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:994
RenderStatus renderStatus() const
Summarized render status of the current map view.
void setShowRuntimeTrace(bool visible)
Set whether the runtime tracing for layers gets shown.
Definition: MarbleWidget.cpp:959
ViewContext
This enum is used to choose context in which map quality gets used.
Definition: MarbleGlobal.h:74
QVector< const GeoDataPlacemark * > whichFeatureAt(const QPoint &) const
Definition: MarbleWidget.cpp:360
quint64 volatileTileCacheLimit() const
Returns the limit in kilobytes of the volatile (in RAM) tile cache.
Definition: TileCreatorDialog.h:31
void setAnimationsEnabled(bool enabled)
Set whether travels to a point should get animated.
Definition: MarbleWidget.cpp:1041
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
visible
void setProjection(int projection)
Set the Projection used for the map.
Definition: MarbleWidget.cpp:591
void setDefaultAngleUnit(AngleUnit angleUnit)
Definition: MarbleWidget.cpp:1051
qreal zoomFromDistance(qreal distance) const
Returns the zoom value (no unit) corresponding to the given camera distance (km)
Definition: MarbleWidget.cpp:1211
qreal distanceFromZoom(qreal zoom) const
Returns the distance (km) corresponding to the given zoom value.
Definition: MarbleWidget.cpp:1216
Definition: LayerInterface.h:26
QDBusConnection sessionBus()
QString mapThemeId() const
Get the ID of the current map theme To ensure that a unique identifier is being used the theme does N...
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition: MarbleWidget.cpp:987
void setZoom(int zoom, FlyToMode mode=Instant)
Zoom the view to a certain zoomlevel.
Definition: MarbleWidget.cpp:516
static GeoTagHandlerRegistrar handler(GeoParser::QualifiedName(dgmlTag_DownloadPolicy, dgmlTag_nameSpace20), new DgmlDownloadPolicyTagHandler)
QPixmap mapScreenShot()
Return a QPixmap with the current contents of the widget.
Definition: MarbleWidget.cpp:385
AbstractFloatItem * floatItem(const QString &nameId) const
Returns the FloatItem with the given id.
Definition: MarbleWidget.cpp:1151
QString tr(const char *sourceText, const char *disambiguation, int n)
void update()
void readPluginSettings(QSettings &settings)
Reads the plugin settings from the passed QSettings.
Definition: MarbleWidget.cpp:1112
void setInputHandler(MarbleWidgetInputHandler *handler)
Set the input handler.
Definition: MarbleWidget.cpp:315
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition: MarbleWidget.cpp:365
A paint layer that serves as a view on a route model.
Definition: RoutingLayer.h:36
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition: MarbleWidget.cpp:845
QRegion mapRegion() const
Return the projected region which describes the (shape of the) projected surface. ...
Definition: MarbleWidget.cpp:685
void flyTo(const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
Change the camera position to the given position.
Definition: MarbleWidget.cpp:1166
void setValue(const QString &key, const QVariant &value)
QSize size() const
const QRect & rect() const
void disconnectNotify(const char *signal)
Definition: MarbleWidget.cpp:639
virtual void changeEvent(QEvent *event)
Reimplementation of the changeEvent() function in QWidget to react to changes of the enabled state...
Definition: MarbleWidget.cpp:1156
int elapsed() const
This file contains the headers for MarbleMap.
bool isEnabled() const
void downloadRegion(QVector< TileCoordsPyramid > const &)
Definition: MarbleWidget.cpp:1176
MapQuality mapQuality(ViewContext=Still) const
Retrieve the map quality depending on the view context.
Definition: MarbleWidget.cpp:1004
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleWidget.cpp:680
virtual void paintEvent(QPaintEvent *event)
Reimplementation of the paintEvent() function in QWidget.
Definition: MarbleWidget.cpp:690
void installEventFilter(QObject *filterObj)
void fill(uint pixelValue)
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition: MarbleWidget.cpp:882
void setUpdatesEnabled(bool enable)
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition: MarbleWidget.cpp:917
Definition: DataMigration.h:20
int width() const
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition: MarbleWidget.cpp:795
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
int maximumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:355
Definition: TileCreator.h:53
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition: MarbleWidget.cpp:837
bool showAtmosphere() const
Return whether the atmospheric glow is visible.
iterator begin()
Definition: TextureLayer.h:38
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition: MarbleMap.cpp:1242
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition: MarbleWidget.cpp:538
void setCenterLatitude(qreal lat, FlyToMode mode=Instant)
Set the latitude for the center point.
Definition: MarbleWidget.cpp:569
qreal radiusFromDistance(qreal distance) const
Return the globe radius (pixel) for the given distance (km)
Definition: MarbleWidget.cpp:1201
void zoomView(int zoom, FlyToMode mode=Instant)
Definition: MarbleWidget.cpp:521
void setShowBackground(bool visible)
Definition: MarbleWidget.cpp:952
QFuture< void > map(Sequence &sequence, MapFunction function)
void goHome(FlyToMode mode=Automatic)
Center the view on the default start point with the default zoom.
Definition: MarbleWidget.cpp:749
Definition: RenderState.h:22
bool animationsEnabled() const
Retrieve whether travels to a point should get animated.
Definition: MarbleWidget.cpp:1036
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition: MarbleWidget.cpp:370
int minimumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:350
virtual void changeEvent(QEvent *event)
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QRect rect() const
void setCenterLongitude(qreal lon, FlyToMode mode=Instant)
Set the longitude for the center point.
Definition: MarbleWidget.cpp:574
TextureLayer * textureLayer() const
Definition: MarbleWidget.cpp:380
bool showScaleBar() const
Return whether the scale bar is visible.
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleWidget straight after.
Definition: MarbleWidget.cpp:742
const T value(const Key &key) const
void zoomIn(FlyToMode mode=Automatic)
Zoom in by the amount zoomStep.
Definition: MarbleWidget.cpp:533
bool isLockedToSubSolarPoint() const
Return whether the globe is locked to the sub solar point.
const QSize & size() const
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:549
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition: MarbleWidget.cpp:823
A container for features parsed from the DGML file.
Definition: GeoSceneDocument.h:44
void setViewContext(ViewContext viewContext)
Set the view context (i.e.
Definition: MarbleWidget.cpp:1024
This file contains the headers for ViewportParams.
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition: MarbleWidget.cpp:809
Definition: GeoDataLookAt.h:23
void rotateBy(const qreal deltaLon, const qreal deltaLat, FlyToMode mode=Instant)
Rotate the view by the two angles phi and theta.
Definition: MarbleWidget.cpp:543
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions) ...
Definition: MarbleGlobal.h:173
bool showCompass() const
Return whether the compass bar is visible.
void setMapQualityForViewContext(MapQuality quality, ViewContext viewContext)
Set the map quality for the specified view context.
Definition: MarbleWidget.cpp:1009
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition: MarbleWidget.cpp:1196
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QVariant value(const QString &key, const QVariant &defaultValue) const
bool showCities() const
Return whether the city place marks are visible.
bool showCityLights() const
Return whether the city lights are shown instead of the night shadow.
MarbleAbstractPresenter()
Definition: MarbleAbstractPresenter.cpp:31
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, QFlags< Qt::ImageConversionFlag > flags)
The MarbleWidgetPopupMenu handles context menus.
Definition: MarbleWidgetPopupMenu.h:33
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Definition: MarbleGlobal.h:65
void setShowRivers(bool visible)
Set whether the rivers are visible.
Definition: MarbleWidget.cpp:931
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition: MarbleWidget.cpp:500
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition: MarbleWidget.cpp:896
bool isSubSolarPointIconVisible() const
Return whether the sun icon is shown in the sub solar point.
GeoDataCoordinates focusPoint() const
Definition: MarbleWidget.cpp:1186
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:668
void setSelection(const QRect ®ion)
Definition: MarbleWidget.cpp:1066
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition: MarbleWidget.cpp:861
QPixmap grabWidget(QWidget *widget, const QRect &rectangle)
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition: MarbleWidget.cpp:375
GeoSceneDocument * mapTheme() const
Get the GeoSceneDocument object of the current map theme.
Definition: MarbleWidget.cpp:782
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:44
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:964
qreal distanceFromRadius(qreal radius) const
Return the distance (km) at the given globe radius (pixel)
Definition: MarbleWidget.cpp:1206
This file contains the headers for MarbleWidget.
void start()
int height() const
void setDistance(qreal distance)
Set the distance of the observer to the globe in km.
Definition: MarbleWidget.cpp:1076
Definition: FpsLayer.h:20
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition: MarbleWidget.cpp:816
void setDefaultFont(const QFont &font)
Definition: MarbleWidget.cpp:1061
qreal moveStep() const
Return how much the map will move if one of the move slots are called.
Definition: MarbleWidget.cpp:335
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition: MarbleWidget.cpp:889
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
iterator end()
virtual void resizeEvent(QResizeEvent *event)
const_iterator constEnd() const
void writePluginSettings(QSettings &settings) const
Writes the plugin settings in the passed QSettings.
Definition: MarbleWidget.cpp:1129
const_iterator constBegin() const
void clearVolatileTileCache()
Definition: MarbleWidget.cpp:981
bool showIceLayer() const
Return whether the ice layer is visible.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
MarbleWidgetInputHandler * inputHandler() const
Returns the current input handler.
Definition: MarbleWidget.cpp:320
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:185
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition: MarbleWidget.cpp:875
AngleUnit defaultAngleUnit() const
Definition: MarbleWidget.cpp:1046
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition: MarbleWidget.cpp:868
QList< AbstractFloatItem * > floatItems() const
Returns a list of all FloatItems on the widget.
Definition: MarbleWidget.cpp:1146
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
void mouseMoveGeoPosition(const QString &)
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition: MarbleWidget.cpp:1107
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: RenderPlugin.cpp:195
void removeEventFilter(QObject *obj)
void mouseClickGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::Unit)
void beginGroup(const QString &prefix)
void notifyMouseClick(int x, int y)
Used to notify about the position of the mouse click.
Definition: MarbleWidget.cpp:969
void render(QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition: MarbleWidget.cpp:945
void moveRight(FlyToMode mode=Automatic)
Move right by the moveStep.
Definition: MarbleWidget.cpp:601
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition: MarbleWidget.cpp:903
virtual void resizeEvent(QResizeEvent *event)
Reimplementation of the resizeEvent() function in QWidget.
Definition: MarbleWidget.cpp:621
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition: MarbleWidget.cpp:802
qreal centerLatitude() const
Return the latitude of the center point.
Definition: MarbleWidget.cpp:675
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.