marble
MarbleDeclarativeWidget.cpp
Go to the documentation of this file.
75 grabGesture( Qt::PinchGesture, Qt::ReceivePartialGestures | Qt::IgnoredGesturesPropagateToParent );
144 return QDeclarativeListProperty<DeclarativeDataPlugin>( this, 0, &MarbleWidget::addLayer, 0, 0, 0 );
277 void MarbleWidget::forwardMouseClick(qreal lon, qreal lat, Marble::GeoDataCoordinates::Unit unit )
282 QVector<const Marble::GeoDataPlacemark*> const placemarks = m_marbleWidget->whichFeatureAt( point );
296 void MarbleWidget::addLayer( QDeclarativeListProperty<DeclarativeDataPlugin> *list, DeclarativeDataPlugin *layer )
298 void MarbleWidget::addLayer( QQmlListProperty<DeclarativeDataPlugin> *list, DeclarativeDataPlugin *layer )
325 const Marble::GeoDataLineString waypoints = m_marbleWidget->model()->routingManager()->routingModel()->route().path();
326 QVector<Marble::TileCoordsPyramid> const pyramid = region.fromPath( m_marbleWidget->textureLayer(), offset, waypoints );
338 QVector<Marble::TileCoordsPyramid> const pyramid = region.region( m_marbleWidget->textureLayer(), m_marbleWidget->viewport()->viewLatLonAltBox() );
348 Marble::AbstractDataPlugin* dataPlugin = qobject_cast<Marble::AbstractDataPlugin*>( renderPlugin );
QStandardItemModel * mapThemeModel()
Provides a model of the locally existing themes.
Definition: MapThemeManager.cpp:319
int radius() const
qreal x() const
qreal y() const
Type type() const
Definition: ZoomButtonInterceptor.h:20
QString mapThemeId() const
Returns the currently active map theme id, if any, in the form of e.g.
void setDataPluginDelegate(const QString &plugin, QDeclarativeComponent *delegate)
Definition: MarbleDeclarativeWidget.cpp:344
bool loadFile(const QString &relativeFilePath)
load bookmark file as GeoDataDocument and return true if loaded successfully else false ...
Definition: BookmarkManager.cpp:91
void downloadRoute(qreal offset, int topTileLevel, int bottomTileLevel)
Definition: MarbleDeclarativeWidget.cpp:319
void setActiveRenderPlugins(const QStringList &items)
Definition: MarbleDeclarativeWidget.cpp:159
QDeclarativeListProperty< DeclarativeDataPlugin > dataLayers()
void setPropertyValue(const QString &name, bool value)
Sets the value of a map theme property.
Definition: MarbleWidget.cpp:787
void setMarbleModel(MarbleModel *model)
Definition: DownloadRegion.cpp:81
void workOfflineChanged()
This file contains the headers for MarbleModel.
const Marble::ViewportParams * viewport() const
Definition: MarbleDeclarativeWidget.cpp:91
void setAcceptTouchEvents(bool enabled)
QVector< const GeoDataPlacemark * > whichFeatureAt(const QPoint &) const
Definition: MarbleWidget.cpp:360
enabled
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setProjection(int projection)
Set the Projection used for the map.
Definition: MarbleWidget.cpp:591
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
QPoint pixel(qreal longitude, qreal latitude) const
Returns the screen position of the given coordinate (can be out of the screen borders) ...
Definition: MarbleDeclarativeWidget.cpp:224
QStandardItemModel * mapThemeModel()
bool workOffline() const
An abstract class for plugins that show data that has a geo coordinate.
Definition: AbstractDataPlugin.h:45
void centerOn(const Marble::GeoDataLatLonBox &bbox)
Definition: MarbleDeclarativeWidget.cpp:262
QStringList activeFloatItems() const
Returns a list of active (!) float items.
void grabGesture(Qt::GestureType gesture, QFlags< Qt::GestureFlag > flags)
const PluginManager * pluginManager() const
Definition: MarbleModel.cpp:634
void setProjection(const QString &projection)
Change the active projection.
Definition: MarbleDeclarativeWidget.cpp:203
QString projection() const
Returns the active projection which can be either "Equirectangular", "Mercator" or "Spherical"...
void readPluginSettings(QSettings &settings)
Reads the plugin settings from the passed QSettings.
Definition: MarbleWidget.cpp:1112
void setGeoDataPlacemark(const Marble::GeoDataPlacemark &placemark)
Definition: Placemark.cpp:19
bool inputEnabled() const
Returns true if the map accepts keyboard/mouse input.
Represents a coordinate with the properties of a name and coordinates.
Definition: Coordinate.h:28
RoutingModel * routingModel()
Provides access to the routing model which contains a list of routing instructions describing steps t...
Definition: RoutingManager.cpp:261
This file contains the headers for ViewParameters.
Marble::RenderPlugin * renderPlugin(const QString &name)
Definition: MarbleDeclarativeWidget.cpp:394
const char * name() const
void setGeoSceneProperty(const QString &key, bool value)
Definition: MarbleDeclarativeWidget.cpp:314
This file contains the headers for MarbleMap.
void downloadRegion(QVector< TileCoordsPyramid > const &)
Definition: MarbleWidget.cpp:1176
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleWidget.cpp:680
Marble::AbstractFloatItem * floatItem(const QString &name)
Definition: MarbleDeclarativeWidget.cpp:426
void visibleLatLonAltBoxChanged()
Forwarded from MarbleWidget.
void setWorkOffline(bool workOffline)
Definition: MarbleModel.cpp:843
void mouseClickGeoPosition(qreal longitude, qreal latitude)
QVector< TileCoordsPyramid > region(const TextureLayer *textureLayer, const GeoDataLatLonAltBox ®ion) const
Definition: DownloadRegion.cpp:100
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
RoutingProfilesModel * profilesModel()
Provides access to the model which contains all possible routing profiles.
Definition: RoutingManager.cpp:256
virtual bool sceneEvent(QEvent *event)
void radiusChanged()
QVector< TileCoordsPyramid > fromPath(const TextureLayer *textureLayer, qreal offset, const GeoDataLineString &path) const
calculates the region to be downloaded around a path
Definition: DownloadRegion.cpp:176
bool sendEvent(QObject *receiver, QEvent *event)
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition: MarbleWidget.cpp:538
Coordinate * coordinate(int x, int y)
Returns the coordinate at the given screen position.
Definition: MarbleDeclarativeWidget.cpp:234
bool containsRenderPlugin(const QString &name)
Definition: MarbleDeclarativeWidget.cpp:405
Definition: DeclarativeDataPlugin.h:25
bool screenCoordinates(const qreal lon, const qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: ViewportParams.cpp:357
void readSettings()
Restores a previously saved route request and route from disk, if any.
Definition: RoutingManager.cpp:374
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void setDelegate(QDeclarativeComponent *delegate, QGraphicsItem *parent)
Definition: AbstractDataPlugin.cpp:180
void loadDefaultProfiles()
Definition: RoutingProfilesModel.cpp:126
TextureLayer * textureLayer() const
Definition: MarbleWidget.cpp:380
void zoomIn(FlyToMode mode=Automatic)
Zoom in by the amount zoomStep.
Definition: MarbleWidget.cpp:533
bool blockSignals(bool block)
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:549
This file contains the headers for ViewportParams.
void projectionChanged()
QDeclarativeListProperty< QObject > childList()
Definition: MarbleDeclarativeWidget.cpp:137
void placemarkSelected(Placemark *placemark)
void setInputEnabled(bool enabled)
Toggle keyboard/mouse input.
Definition: MarbleDeclarativeWidget.cpp:172
virtual bool sceneEvent(QEvent *event)
Definition: MarbleDeclarativeWidget.cpp:384
void setCenter(Coordinate *center)
Definition: MarbleDeclarativeWidget.cpp:250
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
bool isEmpty() const
void setTileLevelRange(int const minimumTileLevel, int const maximumTileLevel)
Definition: DownloadRegion.cpp:91
Definition: DownloadRegion.h:29
Coordinate * center()
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
MarbleWidget(QGraphicsItem *parent=0, Qt::WindowFlags flags=0)
Constructor.
Definition: MarbleDeclarativeWidget.cpp:44
void downloadArea(int topTileLevel, int bottomTileLevel)
Definition: MarbleDeclarativeWidget.cpp:332
void addRenderPlugin(const RenderPlugin *plugin)
Add a RenderPlugin manually to the list of known plugins.
Definition: PluginManager.cpp:77
BookmarkManager * bookmarkManager()
return instance of BookmarkManager
Definition: MarbleModel.cpp:213
void setVisibleTileLevel(int const tileLevel)
Definition: DownloadRegion.cpp:171
void writeSettings() const
Saves the current route request and the current route to disk.
Definition: RoutingManager.cpp:327
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:44
void setMapThemeId(const QString &mapThemeId)
Change the currently active map theme id.
Definition: MarbleDeclarativeWidget.cpp:183
This file contains the headers for MarbleWidget.
QList< QObject * > floatItems() const
typedef WindowFlags
void setWidget(QWidget *widget)
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:1129
void setWorkOffline(bool workOffline)
Definition: MarbleDeclarativeWidget.cpp:360
void setMouseButtonPopupEnabled(Qt::MouseButton mouseButton, bool enabled)
The MarbleInputHandler handles mouse and keyboard input.
Definition: MarbleInputHandler.cpp:89
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
void mapThemeChanged()
int compare(const QString &other) const
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
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition: MarbleWidget.cpp:1107
QStringList activeRenderPlugins() const
QList< QObject * > renderPlugins() const
void setActiveFloatItems(const QStringList &items)
Activates all of the given float items and deactivates any others.
Definition: MarbleDeclarativeWidget.cpp:117
void setPanViaArrowsEnabled(bool enabled)
Definition: MarbleInputHandler.cpp:106
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
virtual bool event(QEvent *event)
bool containsFloatItem(const QString &name)
Definition: MarbleDeclarativeWidget.cpp:437
qreal centerLatitude() const
Return the latitude of the center point.
Definition: MarbleWidget.cpp:675
void setVisible(bool visible)
Set visibility of the float item.
Definition: AbstractFloatItem.cpp:130
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.