Marble
Go to the documentation of this file.
8 #ifndef MARBLE_MARBLEMAP_H
9 #define MARBLE_MARBLEMAP_H
20 #include "marble_export.h"
21 #include "GeoDataCoordinates.h"
22 #include "GeoDataRelation.h"
35 class MarbleMapPrivate;
38 class GeoDataLatLonAltBox;
46 class AbstractDataPlugin;
47 class AbstractDataPluginItem;
48 class AbstractFloatItem;
50 class VectorTileLayer;
51 class TileCoordsPyramid;
52 class GeoSceneTextureTileDataset;
88 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.MarbleMap")
154 void setSize(
int width,
int height );
155 void setSize(
const QSize& size );
165 int preferredRadiusCeil(
int radius)
const;
166 int preferredRadiusFloor(
int radius)
const;
168 int tileZoomLevel()
const;
173 int minimumZoom()
const;
178 int maximumZoom()
const;
180 bool discreteZoom()
const;
191 bool screenCoordinates( qreal lon, qreal lat,
192 qreal& x, qreal& y )
const;
204 bool geoCoordinates(
int x,
int y,
205 qreal& lon, qreal& lat,
212 qreal centerLongitude()
const;
218 qreal centerLatitude()
const;
220 qreal heading()
const;
225 bool hasFeatureAt(
const QPoint&)
const;
233 bool propertyValue(
const QString& name )
const;
239 bool showOverviewMap()
const;
245 bool showScaleBar()
const;
251 bool showCompass()
const;
257 bool showClouds()
const;
263 bool showSunShading()
const;
269 bool showCityLights()
const;
275 bool isLockedToSubSolarPoint()
const;
281 bool isSubSolarPointIconVisible()
const;
287 bool showAtmosphere()
const;
293 bool showCrosshairs()
const;
299 bool showGrid()
const;
305 bool showPlaces()
const;
311 bool showCities()
const;
317 bool showTerrain()
const;
323 bool showOtherPlaces()
const;
329 bool showRelief()
const;
335 bool showIceLayer()
const;
341 bool showBorders()
const;
347 bool showRivers()
const;
353 bool showLakes()
const;
359 bool showFrameRate()
const;
361 bool showBackground()
const;
369 quint64 volatileTileCacheLimit()
const;
397 QFont defaultFont()
const;
399 TextureLayer *textureLayer()
const;
400 VectorTileLayer * vectorTileLayer()
const;
405 void addLayer( LayerInterface *layer );
411 QString addTextureLayer(GeoSceneTextureTileDataset *texture);
417 void removeTextureLayer(
const QString &key);
422 void removeLayer( LayerInterface *layer );
426 RenderState renderState()
const;
431 const StyleBuilder* styleBuilder()
const;
446 void setRadius(
int radius );
448 void setHeading( qreal heading );
461 void rotateBy(qreal deltaLon, qreal deltaLat);
470 void centerOn(
const qreal lon,
const qreal lat );
476 void setCenterLatitude( qreal lat );
482 void setCenterLongitude( qreal lon );
499 void setMapThemeId(
const QString& maptheme );
509 void setPropertyValue(
const QString& name,
bool value );
515 void setShowOverviewMap(
bool visible );
521 void setShowScaleBar(
bool visible );
527 void setShowCompass(
bool visible );
533 void setShowClouds(
bool visible );
539 void setShowSunShading(
bool visible );
545 void setShowCityLights(
bool visible );
551 void setLockToSubSolarPoint(
bool visible );
557 void setSubSolarPointIconVisible(
bool visible );
565 void setShowTileId(
bool visible );
571 void setShowAtmosphere(
bool visible );
577 void setShowCrosshairs(
bool visible );
583 void setShowGrid(
bool visible );
589 void setShowPlaces(
bool visible );
595 void setShowCities(
bool visible );
601 void setShowTerrain(
bool visible );
607 void setShowOtherPlaces(
bool visible );
613 void setShowRelief(
bool visible );
619 void setShowIceLayer(
bool visible );
625 void setShowBorders(
bool visible );
631 void setShowRivers(
bool visible );
637 void setShowLakes(
bool visible );
643 void setShowFrameRate(
bool visible );
645 void setShowRuntimeTrace(
bool visible );
647 bool showRuntimeTrace()
const;
654 void setShowDebugPolygons(
bool visible);
656 bool showDebugPolygons()
const;
663 void setShowDebugBatchRender(
bool visible);
665 bool showDebugBatchRender()
const;
673 void setShowDebugPlacemarks(
bool visible);
675 bool showDebugPlacemarks()
const;
683 void setLevelTagDebugModeEnabled(
bool visible);
685 bool levelTagDebugModeEnabled()
const;
687 void setDebugLevelTag(
int level);
689 int debugLevelTag()
const;
692 void setShowBackground(
bool visible );
699 void notifyMouseClick(
int x,
int y );
701 void clearVolatileTileCache();
706 void setVolatileTileCacheLimit( quint64 kiloBytes );
708 void setDefaultAngleUnit(
AngleUnit angleUnit );
710 void setDefaultFont(
const QFont& font );
721 void highlightRouteRelation(qint64 osmId,
bool enabled);
724 void tileLevelChanged(
int level );
730 void themeChanged(
const QString& theme );
734 void radiusChanged(
int radius );
736 void mouseMoveGeoPosition(
const QString& geoPositionString);
740 void framesPerSecond( qreal fps );
758 void pluginSettingsChanged();
763 void renderPluginInitialized(
RenderPlugin *renderPlugin );
771 void renderStateChanged(
const RenderState &state );
779 void propertyValueChanged(
const QString& name,
bool value );
790 virtual void customPaint(
GeoPainter *painter );
793 Q_PRIVATE_SLOT( d,
void updateMapTheme() )
794 Q_PRIVATE_SLOT( d,
void updateProperty(
const QString &,
bool ) )
795 Q_PRIVATE_SLOT( d,
void setDocument(
QString) )
796 Q_PRIVATE_SLOT( d,
void updateTileLevel() )
797 Q_PRIVATE_SLOT(d,
void addPlugins())
801 MarbleMapPrivate *
const d;
802 friend class MarbleMapPrivate;
804 class CustomPaintLayer;
805 friend class CustomPaintLayer;
ViewContext
This enum is used to choose context in which map quality gets used.
The abstract class that creates a renderable item.
A class that defines a 3D bounding box for geographic data.
The abstract class for float item plugins.
A public class that controls what is visible in the viewport of a Marble map.
MapQuality
This enum is used to choose the map quality shown in the view.
Q_SCRIPTABLE CaptureState status()
Binds a QML item to a specific geodetic location in screen coordinates.
A painter that allows to draw geometric primitives on the map.
Projection
This enum is used to choose the projection shown in the view.
A class that can paint a view of the earth.
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Unit
enum used constructor to specify the units used
The data model (not based on QAbstractModel) for a MarbleWidget.
Q_INVOKABLE void setProjection(uint proj)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:27 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.