marble
#include <RoutingLayer.h>
Signals | |
void | placemarkSelected (const QModelIndex &index) |
void | repaintNeeded (const QRect &rect=QRect()) |
Public Member Functions | |
RoutingLayer (MarbleWidget *widget, QWidget *parent=0) | |
~RoutingLayer () | |
bool | eventFilter (QObject *obj, QEvent *event) |
bool | render (GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="NONE", GeoSceneLayer *layer=0) |
QStringList | renderPosition () const |
void | setPlacemarkModel (MarblePlacemarkModel *model) |
void | setViewContext (ViewContext viewContext) |
void | synchronizeWith (QItemSelectionModel *selection) |
qreal | zValue () const |
Public Member Functions inherited from Marble::LayerInterface | |
virtual | ~LayerInterface () |
virtual QString | runtimeTrace () const |
Detailed Description
A paint layer that serves as a view on a route model.
Definition at line 36 of file RoutingLayer.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
widget The marble widget used for geopos <-> screenpos transformations and repainting of (small) areas. Must not be null parent Optional parent widget
Definition at line 611 of file RoutingLayer.cpp.
Marble::RoutingLayer::~RoutingLayer | ( | ) |
Destructor.
Definition at line 626 of file RoutingLayer.cpp.
Member Function Documentation
bool Marble::RoutingLayer::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) |
Overriding QWidget, used to make the layer interactive.
Definition at line 673 of file RoutingLayer.cpp.
|
signal |
A placemark was selected (clicked) by the user.
The index belongs to the model set via setModel
|
virtual |
Reimplemented from LayerInterface.
Paints route items and placemarks
Implements Marble::LayerInterface.
Definition at line 641 of file RoutingLayer.cpp.
|
virtual |
Reimplemented from LayerInterface.
We'll hover above the surface
Implements Marble::LayerInterface.
Definition at line 631 of file RoutingLayer.cpp.
|
signal |
void Marble::RoutingLayer::setPlacemarkModel | ( | MarblePlacemarkModel * | model | ) |
Set the placemark model to use.
Implicitly removes the routing model.
Definition at line 695 of file RoutingLayer.cpp.
void Marble::RoutingLayer::setViewContext | ( | ViewContext | viewContext | ) |
Set the view context to determine whether the map is used interactively.
Definition at line 767 of file RoutingLayer.cpp.
void Marble::RoutingLayer::synchronizeWith | ( | QItemSelectionModel * | selection | ) |
Set the proxy model another QAbstractItemView uses that should share its selection model with us.
Needed because this class uses an unfiltered model which has different indices than a filtered one.
Definition at line 701 of file RoutingLayer.cpp.
|
virtual |
Reimplemented from LayerInterface.
Reimplemented from Marble::LayerInterface.
Definition at line 636 of file RoutingLayer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.