marble
MarbleMap.cpp
Go to the documentation of this file.
490 // Needed for downloading unique tiles only. Much faster than if tiles for each level is downloaded separately
810 const GeoSceneGroup *const textureLayerSettings = settings ? settings->group( "Texture Layers" ) : 0;
811 const GeoSceneGroup *const vectorTileLayerSettings = settings ? settings->group( "VectorTile Layers" ) : 0;
970 m_model->mapTheme()->settings()->propertyAvailable( renderPlugin->nameId(), propertyAvailable );
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:680
bool showCityLights() const
Return whether the city lights are shown instead of the night shadow.
Definition: MarbleMap.cpp:539
Rendering is based on no or partial data, more data was requested (e.g. pending network queries) ...
Definition: MarbleGlobal.h:194
AngleUnit defaultAngleUnit() const
Definition: MarbleMap.cpp:1171
qreal x() const
qreal y() const
bool showSunShading() const
Return whether the night shadow is visible.
Definition: MarbleMap.cpp:534
void setCenterLongitude(qreal lon)
Set the longitude for the center point.
Definition: MarbleMap.cpp:655
bool showOverviewMap() const
Return whether the overview map is visible.
Definition: MarbleMap.cpp:509
void setDefaultFont(const QFont &font)
Definition: MarbleMap.cpp:1200
QString mapThemeId() const
Returns the currently active map theme id, if any, in the form of e.g.
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition: MarbleMap.cpp:1050
quint64 volatileTileCacheLimit() const
Returns the limit in kilobytes of the volatile (in RAM) tile cache.
Definition: MarbleMap.cpp:630
void radiusChanged(int radius)
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition: MarbleMap.cpp:982
void append(const T &value)
void addLayer(LayerInterface *layer)
Add a layer to be included in rendering.
Definition: MarbleMap.cpp:1237
QPalette palette() const
static bool baseTilesAvailable(GeoSceneTiled const &texture)
Returns whether the mandatory most basic tile level is fully available for the given texture layer...
Definition: TileLoader.cpp:168
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void setShowRuntimeTrace(bool visible)
Definition: MarbleMap.cpp:1136
void setShowCrosshairs(bool visible)
Set whether the crosshairs are visible.
Definition: MarbleMap.cpp:1020
This file contains the headers for MarbleModel.
void getCoords(int *x1, int *y1, int *x2, int *y2) const
void reload()
Reload the currently displayed map by reloading texture tiles from the Internet.
Definition: MarbleMap.cpp:443
ViewContext
This enum is used to choose context in which map quality gets used.
Definition: MarbleGlobal.h:74
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
visible
int preferredRadiusFloor(int radius)
Definition: MarbleMap.cpp:391
QVector< const GeoDataPlacemark * > whichFeatureAt(const QPoint &) const
Definition: MarbleMap.cpp:438
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition: MarbleMap.cpp:1069
Definition: LayerInterface.h:26
QDBusConnection sessionBus()
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
const_iterator insert(const T &value)
void setMapQualityForViewContext(MapQuality qualityForViewContext, ViewContext viewContext)
Definition: MarbleMap.cpp:299
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString projection() const
Returns the active projection which can be either "Equirectangular", "Mercator" or "Spherical"...
void setViewContext(ViewContext viewContext)
Definition: MarbleMap.cpp:317
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:1076
void renderStateChanged(const RenderState &state)
void setShowFrameRate(bool visible)
Set whether the frame rate gets shown.
Definition: MarbleMap.cpp:1131
QSizeF size() const
This file contains the headers for ViewParameters.
QFont font() const
void visibleLatLonAltBoxChanged(const GeoDataLatLonAltBox &visibleLatLonAltBox)
This signal is emitted when the visible region of the map changes.
Marble::RenderPlugin * renderPlugin(const QString &name)
Definition: MarbleDeclarativeWidget.cpp:394
const char * name() const
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition: MarbleMap.cpp:1009
QPointF pos() const
int elapsed() const
This file contains the headers for MarbleMap.
int maximumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:430
void visibleLatLonAltBoxChanged()
Forwarded from MarbleWidget.
QList< AbstractFloatItem * > floatItems() const
Definition: MarbleMap.cpp:1211
bool hasNext() const
void rotateBy(const qreal &deltaLon, const qreal &deltaLat)
Rotate the view by the two angles phi and theta.
Definition: MarbleMap.cpp:636
void setShowCompass(bool visible)
Set whether the compass overlay is visible.
Definition: MarbleMap.cpp:1004
void setShowPlaces(bool visible)
Set whether the place mark overlay is visible.
Definition: MarbleMap.cpp:1086
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
virtual void customPaint(GeoPainter *painter)
Enables custom drawing onto the MarbleMap straight after.
Definition: MarbleMap.cpp:772
bool isEmpty() const
Definition: TextureLayer.h:38
void removeLayer(LayerInterface *layer)
Remove a layer from being included in rendering.
Definition: MarbleMap.cpp:1242
void setShowOverviewMap(bool visible)
Set whether the overview map overlay is visible.
Definition: MarbleMap.cpp:994
void setShowBackground(bool visible)
Definition: MarbleMap.cpp:1141
bool showCrosshairs() const
Return whether the crosshairs are visible.
Definition: MarbleMap.cpp:559
static void setDefaultLabelColor(const QColor &color)
Definition: GeoDataFeature.cpp:538
void paint(GeoPainter &painter, const QRect &dirtyRect)
Paint the map using a give painter.
Definition: MarbleMap.cpp:739
int count() const
void clearVolatileTileCache()
Definition: MarbleMap.cpp:1158
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition: MarbleMap.cpp:1039
Definition: RenderState.h:22
void mouseClickGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::Unit)
int minimumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:422
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins in the model, this includes float items.
Definition: MarbleMap.cpp:1206
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
const char * dgmlValue_geodata
Definition: DgmlAuxillaryDictionary.cpp:41
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:686
static void setDefaultFont(const QFont &font)
Definition: GeoDataFeature.cpp:527
void setProjection(Projection projection)
Set the Projection used for the map.
Definition: MarbleMap.cpp:665
void setShowTerrain(bool visible)
Set whether the terrain place mark overlay is visible.
Definition: MarbleMap.cpp:1096
This file contains the headers for ViewportParams.
void setCenterLatitude(qreal lat)
Set the latitude for the center point.
Definition: MarbleMap.cpp:650
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition: MarbleMap.cpp:1032
void setShowGrid(bool visible)
Set whether the coordinate grid overlay is visible.
Definition: MarbleMap.cpp:1081
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition: MarbleMap.cpp:1165
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QVariant data(int key) const
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleMap.cpp:414
Definition: TileId.h:27
bool showFrameRate() const
Return whether the frame rate gets displayed.
Definition: MarbleMap.cpp:620
const T & next()
bool propertyValue(const QString &name) const
Return the property value by name.
Definition: MarbleMap.cpp:496
bool isSubSolarPointIconVisible() const
Return whether the sun icon is shown in the sub solar point.
Definition: MarbleMap.cpp:549
bool showAtmosphere() const
Return whether the atmospheric glow is visible.
Definition: MarbleMap.cpp:554
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Definition: MarbleGlobal.h:65
void downloadRegion(QVector< TileCoordsPyramid > const &)
Definition: MarbleMap.cpp:448
bool isEmpty() const
void setShowOtherPlaces(bool visible)
Set whether the other places overlay is visible.
Definition: MarbleMap.cpp:1101
QList< AbstractDataPlugin * > dataPlugins() const
Returns a list of all DataPlugins on the layer.
Definition: MarbleMap.cpp:1227
void framesPerSecond(qreal fps)
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos) const
Returns all widgets of dataPlugins on the position curpos.
Definition: MarbleMap.cpp:1232
void setShowIceLayer(bool visible)
Set whether the ice layer is visible.
Definition: MarbleMap.cpp:1111
bool isLockedToSubSolarPoint() const
Return whether the globe is locked to the sub solar point.
Definition: MarbleMap.cpp:544
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:44
static void setDefaultNotation(GeoDataCoordinates::Notation notation)
set the Notation of the string representation
Definition: GeoDataCoordinates.cpp:770
void start()
Definition: FpsLayer.h:20
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:777
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
bool showCities() const
Return whether the city place marks are visible.
Definition: MarbleMap.cpp:580
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
void centerOn(const qreal lon, const qreal lat)
Center the view on a geographical point.
Definition: MarbleMap.cpp:643
void show()
const_iterator constEnd() const
const char * dgmlValue_texture
Definition: DgmlAuxillaryDictionary.cpp:38
AbstractFloatItem * floatItem(const QString &nameId) const
Returns a list of all FloatItems in the model.
Definition: MarbleMap.cpp:1216
const_iterator constBegin() const
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition: MarbleMap.cpp:1044
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
int size() const
void setDefaultAngleUnit(AngleUnit angleUnit)
Definition: MarbleMap.cpp:1182
"Sexagesimal DMS" notation (base-60)
Definition: GeoDataCoordinates.h:81
static GeoDataCoordinates::Notation defaultNotation()
return Notation of string representation
Definition: GeoDataCoordinates.cpp:764
bool showTerrain() const
Return whether the terrain place marks are visible.
Definition: MarbleMap.cpp:585
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
void setShowCities(bool visible)
Set whether the city place mark overlay is visible.
Definition: MarbleMap.cpp:1091
const char * dgmlValue_vector
Definition: DgmlAuxillaryDictionary.cpp:39
int preferredRadiusCeil(int radius)
Definition: MarbleMap.cpp:382
void renderStatusChanged(RenderStatus status)
Emitted when the layer rendering status has changed.
void repaintNeeded(const QRegion &dirtyRegion=QRegion())
This signal is emitted when the repaint of the view was requested.
void projectionChanged(Projection)
const char * dgmlValue_vectortile
Definition: DgmlAuxillaryDictionary.cpp:40
void setShowScaleBar(bool visible)
Set whether the scale bar overlay is visible.
Definition: MarbleMap.cpp:999
void notifyMouseClick(int x, int y)
used to notify about the position of the mouse click
Definition: MarbleMap.cpp:1146
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.