marble
MarbleWidget.cpp
Go to the documentation of this file.
581 radius = qMax<int>( d->radius( minimumZoom() ), qMin<int>( radius, d->radius( maximumZoom() ) ) );
596 radius = qMax<int>( d->radius( minimumZoom() ), qMin<int>( radius, d->radius( maximumZoom() ) ) );
653 newRadius = qMax<int>( d->radius( minimumZoom() ), qMin<int>( newRadius, d->radius( maximumZoom() ) ) );
945 if ( d->m_map.isLockedToSubSolarPoint() != visible ) { // Toggling input modifies event filters, so avoid that if not needed
1183 coordinates << box.west( GeoDataCoordinates::Degree ) << box.north( GeoDataCoordinates::Degree )
1215 const QLocale::MeasurementSystem measurementSystem = MarbleGlobal::getInstance()->locale()->measurementSystem();
bool showSunShading() const
Return whether the night shadow is visible.
qreal height(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the height of the latitude interval.
Definition: GeoDataLatLonBox.cpp:255
const GeoDataLookAt * lookAt() const
Returns GeoDataLookAt object if lookAt is setup earlier otherwise It will convert GeoDataCoordinates ...
Definition: GeoDataPlacemark.cpp:68
GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect) const
Definition: ViewportParams.cpp:317
void framesPerSecond(qreal fps)
A sane value is chosen automatically depending on animation settings and the action.
Definition: MarbleGlobal.h:170
virtual bool isEmpty() const
Indicates whether the bounding box is not initialised (and contains nothing).
Definition: GeoDataLatLonBox.cpp:768
qreal width(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the width of the longitude interval.
Definition: GeoDataLatLonBox.cpp:236
bool showTerrain() const
Return whether the terrain place marks are visible.
bool showOverviewMap() const
Return whether the overview map is visible.
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition: MarbleWidget.cpp:1361
QLocale::MeasurementSystem measurementSystem() const
Definition: MarbleLocale.cpp:45
QString distanceString() const
Return the current distance string.
Definition: MarbleWidget.cpp:1210
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:936
void zoomViewBy(int zoomStep, FlyToMode mode=Instant)
Zoom the view by a certain step.
Definition: MarbleWidget.cpp:569
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataLookAt object use the unit parameter to switch between Radian a...
Definition: GeoDataLookAt.cpp:91
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:758
void connectNotify(const char *signal)
Definition: MarbleWidget.cpp:742
virtual void leaveEvent(QEvent *event)
Reimplementation of the leaveEvent() function in QWidget.
Definition: MarbleWidget.cpp:728
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition: MarbleWidget.cpp:893
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
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:1100
void setShowRuntimeTrace(bool visible)
Set whether the runtime tracing for layers gets shown.
Definition: MarbleWidget.cpp:1065
ViewContext
This enum is used to choose context in which map quality gets used.
Definition: MarbleGlobal.h:72
QVector< const GeoDataPlacemark * > whichFeatureAt(const QPoint &) const
Definition: MarbleWidget.cpp:387
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:1146
void distanceChanged(const QString &distanceString)
void setProjection(int projection)
Set the Projection used for the map.
Definition: MarbleWidget.cpp:702
void setDefaultAngleUnit(AngleUnit angleUnit)
Definition: MarbleWidget.cpp:1156
qreal zoomFromDistance(qreal distance) const
Returns the zoom value (no unit) corresponding to the given camera distance (km)
Definition: MarbleWidget.cpp:1393
qreal distanceFromZoom(qreal zoom) const
Returns the distance (km) corresponding to the given zoom value.
Definition: MarbleWidget.cpp:1398
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:78
Definition: LayerInterface.h:25
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:80
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition: MarbleWidget.cpp:1093
void setZoom(int zoom, FlyToMode mode=Instant)
Zoom the view to a certain zoomlevel.
Definition: MarbleWidget.cpp:533
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:412
const Planet * planet() const
Returns the planet object for the current map.
Definition: MarbleModel.cpp:574
void regionSelected(const QList< double > &)
This signal is emit when a new rectangle region is selected over the map The list of double values in...
AbstractFloatItem * floatItem(const QString &nameId) const
Returns the FloatItem with the given id.
Definition: MarbleWidget.cpp:1295
GeoDataGeometry * geometry() const
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:63
void setLongitude(qreal longitude, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataLookAt object
Definition: GeoDataLookAt.cpp:85
qreal range() const
Retrieve the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:107
void readPluginSettings(QSettings &settings)
Reads the plugin settings from the passed QSettings.
Definition: MarbleWidget.cpp:1256
void setInputHandler(MarbleWidgetInputHandler *handler)
Set the input handler.
Definition: MarbleWidget.cpp:305
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition: MarbleWidget.cpp:392
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:951
QRegion mapRegion() const
Return the projected region which describes the (shape of the) projected surface. ...
Definition: MarbleWidget.cpp:781
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
void flyTo(const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
Change the camera position to the given position.
Definition: MarbleWidget.cpp:1310
void setSummary(const QString &name, const QString &description)
Definition: TileCreatorDialog.cpp:84
void disconnectNotify(const char *signal)
Definition: MarbleWidget.cpp:750
virtual void changeEvent(QEvent *event)
Reimplementation of the changeEvent() function in QWidget to react to changes of the enabled state...
Definition: MarbleWidget.cpp:1300
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
This file contains the headers for MarbleMap.
void downloadRegion(QVector< TileCoordsPyramid > const &)
Definition: MarbleWidget.cpp:1339
MapQuality mapQuality(ViewContext=Still) const
Retrieve the map quality depending on the view context.
Definition: MarbleWidget.cpp:1109
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleWidget.cpp:776
virtual void paintEvent(QPaintEvent *event)
Reimplementation of the paintEvent() function in QWidget.
Definition: MarbleWidget.cpp:786
void setRange(qreal range)
Change the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:101
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition: MarbleWidget.cpp:988
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition: MarbleWidget.cpp:1023
Definition: DataMigration.h:19
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition: MarbleWidget.cpp:901
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:48
void setShowRelief(bool visible)
Set whether the relief is visible.
Definition: MarbleWidget.cpp:1016
int maximumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:382
Definition: TileCreator.h:53
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition: MarbleWidget.cpp:943
bool showAtmosphere() const
Return whether the atmospheric glow is visible.
Definition: TextureLayer.h:39
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition: MarbleWidget.cpp:590
void zoomChanged(int zoom)
Signal that the zoom has changed, and to what.
void setCenterLatitude(qreal lat, FlyToMode mode=Instant)
Set the latitude for the center point.
Definition: MarbleWidget.cpp:680
qreal radiusFromDistance(qreal distance) const
Return the globe radius (pixel) for the given distance (km)
Definition: MarbleWidget.cpp:1371
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataLookAt object use the unit parameter to switch between Radian an...
Definition: GeoDataLookAt.cpp:80
void zoomView(int zoom, FlyToMode mode=Instant)
Definition: MarbleWidget.cpp:563
void setShowBackground(bool visible)
Definition: MarbleWidget.cpp:1058
void goHome(FlyToMode mode=Automatic)
Center the view on the default start point with the default zoom.
Definition: MarbleWidget.cpp:845
bool animationsEnabled() const
Retrieve whether travels to a point should get animated.
Definition: MarbleWidget.cpp:1141
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition: MarbleWidget.cpp:397
int minimumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:377
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
virtual GeoDataCoordinates center() const
returns the center of this box
Definition: GeoDataLatLonBox.cpp:276
void setCenterLongitude(qreal lon, FlyToMode mode=Instant)
Set the longitude for the center point.
Definition: MarbleWidget.cpp:685
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:838
void zoomIn(FlyToMode mode=Automatic)
Zoom in by the amount zoomStep.
Definition: MarbleWidget.cpp:575
bool isLockedToSubSolarPoint() const
Return whether the globe is locked to the sub solar point.
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:626
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition: MarbleWidget.cpp:929
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:1129
This file contains the headers for ViewportParams.
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition: MarbleWidget.cpp:915
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:605
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions) ...
Definition: MarbleGlobal.h:169
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:1114
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition: MarbleWidget.cpp:1366
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
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.
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:63
void setShowRivers(bool visible)
Set whether the rivers are visible.
Definition: MarbleWidget.cpp:1037
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition: MarbleWidget.cpp:517
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition: MarbleWidget.cpp:1002
bool isSubSolarPointIconVisible() const
Return whether the sun icon is shown in the sub solar point.
GeoDataCoordinates focusPoint() const
Definition: MarbleWidget.cpp:1356
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:764
Definition: Quaternion.h:43
void setSelection(const QRect ®ion)
Definition: MarbleWidget.cpp:1171
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition: MarbleWidget.cpp:967
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition: MarbleWidget.cpp:402
GeoSceneDocument * mapTheme() const
Get the GeoSceneDocument object of the current map theme.
Definition: MarbleWidget.cpp:888
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:1070
qreal distanceFromRadius(qreal radius) const
Return the distance (km) at the given globe radius (pixel)
Definition: MarbleWidget.cpp:1377
This file contains the headers for MarbleWidget.
void setDistance(qreal distance)
Set the distance of the observer to the globe in km.
Definition: MarbleWidget.cpp:1197
Definition: FpsLayer.h:20
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition: MarbleWidget.cpp:922
void setDefaultFont(const QFont &font)
Definition: MarbleWidget.cpp:1166
qreal moveStep() const
Return how much the map will move if one of the move slots are called.
Definition: MarbleWidget.cpp:358
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Definition: GeoDataGeometry.cpp:122
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition: MarbleWidget.cpp:995
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
void writePluginSettings(QSettings &settings) const
Writes the plugin settings in the passed QSettings.
Definition: MarbleWidget.cpp:1273
void getSpherical(qreal &lon, qreal &lat) const
Definition: Quaternion.cpp:48
void clearVolatileTileCache()
Definition: MarbleWidget.cpp:1087
void setAltitude(qreal altitude)
set the altitude in a GeoDataLookAt object
Definition: GeoDataLookAt.cpp:63
bool showIceLayer() const
Return whether the ice layer is visible.
MarbleWidgetInputHandler * inputHandler() const
Returns the current input handler.
Definition: MarbleWidget.cpp:321
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:183
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition: MarbleWidget.cpp:981
AngleUnit defaultAngleUnit() const
Definition: MarbleWidget.cpp:1151
friend class MarbleWidgetDefaultInputHandler
Definition: MarbleWidget.h:1081
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
const TextureLayer * textureLayer() const
Definition: MarbleWidget.cpp:407
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition: MarbleWidget.cpp:974
QList< AbstractFloatItem * > floatItems() const
Returns a list of all FloatItems on the widget.
Definition: MarbleWidget.cpp:1290
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:1251
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: RenderPlugin.cpp:193
void mouseClickGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::Unit)
void notifyMouseClick(int x, int y)
Used to notify about the position of the mouse click.
Definition: MarbleWidget.cpp:1075
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition: MarbleWidget.cpp:1051
void setLatitude(qreal latitude, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the latitude in a GeoDataLookAt object
Definition: GeoDataLookAt.cpp:74
void moveRight(FlyToMode mode=Automatic)
Move right by the moveStep.
Definition: MarbleWidget.cpp:712
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition: MarbleWidget.cpp:1009
virtual void resizeEvent(QResizeEvent *event)
Reimplementation of the resizeEvent() function in QWidget.
Definition: MarbleWidget.cpp:733
void setCoordinates(const GeoDataCoordinates &coordinates)
set the GeoDataCoordinates object
Definition: GeoDataLookAt.cpp:53
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:908
qreal centerLatitude() const
Return the latitude of the center point.
Definition: MarbleWidget.cpp:771
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.