12 #ifndef MARBLE_MARBLEWIDGET_H
13 #define MARBLE_MARBLEWIDGET_H
41 class AbstractDataPluginItem;
42 class AbstractFloatItem;
43 class GeoDataLatLonAltBox;
44 class GeoDataLatLonBox;
46 class GeoSceneDocument;
49 class MarbleWidgetPopupMenu;
50 class MarbleWidgetInputHandler;
51 class MarbleWidgetPrivate;
56 class TileCoordsPyramid;
58 class GeoDataPlacemark;
108 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.MarbleWidget")
111 Q_PROPERTY(
int zoom READ zoom WRITE setZoom)
113 Q_PROPERTY(
QString mapThemeId READ mapThemeId WRITE setMapThemeId)
114 Q_PROPERTY(
int projection READ projection WRITE setProjection)
116 Q_PROPERTY(qreal longitude READ centerLongitude WRITE setCenterLongitude)
117 Q_PROPERTY(qreal latitude READ centerLatitude WRITE setCenterLatitude)
119 Q_PROPERTY(
bool showOverviewMap READ showOverviewMap WRITE setShowOverviewMap)
120 Q_PROPERTY(
bool showScaleBar READ showScaleBar WRITE setShowScaleBar)
121 Q_PROPERTY(
bool showCompass READ showCompass WRITE setShowCompass)
122 Q_PROPERTY(
bool showGrid READ showGrid WRITE setShowGrid)
124 Q_PROPERTY(
bool showClouds READ showClouds WRITE setShowClouds)
125 Q_PROPERTY(
bool showSunShading READ showSunShading WRITE setShowSunShading)
126 Q_PROPERTY(
bool showCityLights READ showCityLights WRITE setShowCityLights)
127 Q_PROPERTY(
bool isLockedToSubSolarPoint READ isLockedToSubSolarPoint WRITE setLockToSubSolarPoint)
128 Q_PROPERTY(
bool isSubSolarPointIconVisible READ isSubSolarPointIconVisible WRITE setSubSolarPointIconVisible)
129 Q_PROPERTY(
bool showAtmosphere READ showAtmosphere WRITE setShowAtmosphere)
130 Q_PROPERTY(
bool showCrosshairs READ showCrosshairs WRITE setShowCrosshairs)
132 Q_PROPERTY(
bool showPlaces READ showPlaces WRITE setShowPlaces)
133 Q_PROPERTY(
bool showCities READ showCities WRITE setShowCities)
134 Q_PROPERTY(
bool showTerrain READ showTerrain WRITE setShowTerrain)
135 Q_PROPERTY(
bool showOtherPlaces READ showOtherPlaces WRITE setShowOtherPlaces)
137 Q_PROPERTY(
bool showRelief READ showRelief WRITE setShowRelief)
139 Q_PROPERTY(
bool showIceLayer READ showIceLayer WRITE setShowIceLayer)
140 Q_PROPERTY(
bool showBorders READ showBorders WRITE setShowBorders)
141 Q_PROPERTY(
bool showRivers READ showRivers WRITE setShowRivers)
142 Q_PROPERTY(
bool showLakes READ showLakes WRITE setShowLakes)
144 Q_PROPERTY(
RenderStatus renderStatus READ renderStatus NOTIFY renderStatusChanged )
146 Q_PROPERTY(quint64 volatileTileCacheLimit READ volatileTileCacheLimit WRITE setVolatileTileCacheLimit)
212 void readPluginSettings(
QSettings& settings );
220 void writePluginSettings(
QSettings& settings ) const;
291 int tileZoomLevel() const;
296 qreal distance() const;
301 QString distanceString() const;
306 int minimumZoom() const;
311 int maximumZoom() const;
327 bool screenCoordinates( qreal lon, qreal lat,
328 qreal& x, qreal& y ) const;
339 bool geoCoordinates(
int x,
int y,
340 qreal& lon, qreal& lat,
347 qreal centerLongitude() const;
353 qreal centerLatitude() const;
359 qreal moveStep() const;
385 void resetFocusPoint();
390 qreal radiusFromDistance( qreal distance ) const;
395 qreal distanceFromRadius( qreal
radius ) const;
400 qreal zoomFromDistance( qreal distance ) const;
405 qreal distanceFromZoom( qreal zoom ) const;
423 bool showOverviewMap() const;
429 bool showScaleBar() const;
435 bool showCompass() const;
441 bool showClouds() const;
447 bool showSunShading() const;
453 bool showCityLights() const;
459 bool isLockedToSubSolarPoint() const;
465 bool isSubSolarPointIconVisible() const;
471 bool showAtmosphere() const;
477 bool showCrosshairs() const;
483 bool showGrid() const;
489 bool showPlaces() const;
495 bool showCities() const;
501 bool showTerrain() const;
507 bool showOtherPlaces() const;
513 bool showRelief() const;
519 bool showIceLayer() const;
525 bool showBorders() const;
531 bool showRivers() const;
537 bool showLakes() const;
543 bool showFrameRate() const;
545 bool showBackground() const;
555 bool animationsEnabled() const;
558 void setDefaultAngleUnit(
AngleUnit angleUnit );
560 QFont defaultFont() const;
561 void setDefaultFont( const
QFont& font );
572 quint64 volatileTileCacheLimit() const;
611 void setRadius(
int radius );
626 void zoomView(
int zoom,
FlyToMode mode = Instant );
632 void zoomViewBy(
int zoomStep,
FlyToMode mode = Instant );
641 void zoomOut(
FlyToMode mode = Automatic );
647 void setDistance( qreal distance );
660 void rotateBy( const qreal deltaLon, const qreal deltaLat,
FlyToMode mode = Instant );
669 void centerOn( const qreal lon, const qreal lat,
bool animated = false );
705 void setCenterLatitude( qreal lat,
FlyToMode mode = Instant );
712 void setCenterLongitude( qreal lon,
FlyToMode mode = Instant );
717 void moveLeft(
FlyToMode mode = Automatic );
722 void moveRight(
FlyToMode mode = Automatic );
727 void moveUp(
FlyToMode mode = Automatic );
732 void moveDown(
FlyToMode mode = Automatic );
737 void goHome(
FlyToMode mode = Automatic );
764 void setProjection(
int projection );
776 void setMapThemeId( const
QString& maptheme );
785 void setPropertyValue( const
QString& name,
bool value );
791 void setShowOverviewMap(
bool visible );
797 void setShowScaleBar(
bool visible );
803 void setShowCompass(
bool visible );
809 void setShowClouds(
bool visible );
815 void setShowSunShading(
bool visible );
821 void setShowCityLights(
bool visible );
827 void setLockToSubSolarPoint(
bool visible );
833 void setSubSolarPointIconVisible(
bool visible );
839 void setShowAtmosphere(
bool visible );
845 void setShowCrosshairs(
bool visible );
851 void setShowGrid(
bool visible );
857 void setShowPlaces(
bool visible );
863 void setShowCities(
bool visible );
869 void setShowTerrain(
bool visible );
875 void setShowOtherPlaces(
bool visible );
881 void setShowRelief(
bool visible );
887 void setShowIceLayer(
bool visible );
893 void setShowBorders(
bool visible );
899 void setShowRivers(
bool visible );
905 void setShowLakes(
bool visible );
911 void setShowFrameRate(
bool visible );
913 void setShowBackground(
bool visible );
921 void setShowTileId(
bool visible );
927 void setShowRuntimeTrace(
bool visible );
945 void setAnimationsEnabled(
bool enabled );
952 void clearVolatileTileCache();
957 void setVolatileTileCacheLimit( quint64 kiloBytes );
994 void notifyMouseClick(
int x,
int y );
996 void setSelection( const
QRect& region );
998 void setInputEnabled(
bool );
1010 void zoomChanged(
int zoom );
1011 void distanceChanged( const
QString& distanceString );
1013 void tileLevelChanged(
int level );
1019 void themeChanged( const
QString& theme );
1023 void mouseMoveGeoPosition( const
QString& );
1027 void framesPerSecond( qreal fps );
1033 void regionSelected( const
QList<
double>& );
1038 void pluginSettingsChanged();
1043 void renderPluginInitialized(
RenderPlugin *renderPlugin );
1057 void renderStateChanged( const
RenderState &state );
1063 virtual
void leaveEvent(
QEvent *event );
1075 #if QT_VERSION < 0x050000
1076 void connectNotify(
const char * signal );
1077 void disconnectNotify(
const char * signal );
1079 virtual void connectNotify(
const QMetaMethod &signal);
1080 virtual void disconnectNotify(
const QMetaMethod &signal);
1087 virtual void changeEvent(
QEvent * event );
1096 virtual void customPaint(
GeoPainter *painter );
1099 Q_PRIVATE_SLOT( d,
void updateMapTheme() )
1100 Q_PRIVATE_SLOT( d,
void updateSystemBackgroundAttribute() )
1103 Q_DISABLE_COPY( MarbleWidget )
1104 MarbleWidgetPrivate * const d;
1105 friend class MarbleWidgetPrivate;
1107 class CustomPaintLayer;
1108 friend class CustomPaintLayer;
1110 friend class MarbleWidgetDefaultInputHandler;
A 3d point representation.
A sane value is chosen automatically depending on animation settings and the action.
A painter that allows to draw geometric primitives on the map.
ViewContext
This enum is used to choose context in which map quality gets used.
MapQuality
This enum is used to choose the map quality shown in the view.
static GeoTagHandlerRegistrar handler(GeoParser::QualifiedName(dgmlTag_DownloadPolicy, dgmlTag_nameSpace20), new DgmlDownloadPolicyTagHandler)
A paint layer that serves as a view on a route model.
The abstract class for float item plugins.
static qreal radius(qreal zoom)
A public class that controls what is visible in the viewport of a Marble map.
A container for features parsed from the DGML file.
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions) ...
The data model (not based on QAbstractModel) for a MarbleWidget.
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Projection
This enum is used to choose the projection shown in the view.
Change camera position immediately (no interpolation)
a class representing a point of interest on the map
The abstract class that creates a renderable item.
A class that defines a 3D bounding box for geographic data.
A class that defines a 2D bounding box for geographic data.