|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/InputHandler.h>


Signals | |
| void | viewChanged (const MapView &view) |
Public Member Functions | |
| InputHandler (const MapView &view) | |
| ~InputHandler () override=default | |
| virtual void | painted () |
| virtual bool | animationInProgress () |
| virtual bool | showCoordinates (const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) |
| virtual bool | zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) |
| virtual bool | move (const QVector2D &vector) |
| virtual bool | rotateTo (double angle) |
| virtual bool | rotateBy (double angleChange) |
| virtual bool | touch (const QTouchEvent &event) |
| virtual bool | currentPosition (bool locationValid, osmscout::GeoCoord currentPosition) |
| virtual bool | vehiclePosition (const VehiclePosition &vehiclePosition, bool autoRotateMap) |
| virtual bool | isLockedToPosition () |
| virtual bool | isFollowVehicle () |
| virtual bool | focusOutEvent (QFocusEvent *event) |
| virtual void | widgetResized (const QSizeF &widgetSize) |
Protected Attributes | |
| MapView | view |
Input handler retrieve all inputs from user and may change MapView (emits viewChange signal). If handler don't accept specific action, returns false. In such case, default handler for this action should be activated.
Input handlers is application of behaviour pattern. It solves problems like:
Qt provides api for register custom gesture recognizers, but it is not available in QML world and its api don't fit to Map application requierements.
Handler also controls map animations.
|
explicit |
|
overridedefault |
|
virtual |
Reimplemented in osmscout::DragHandler, osmscout::JumpHandler, osmscout::MoveHandler, and osmscout::MultitouchHandler.
|
virtual |
Reimplemented in osmscout::LockHandler.
|
virtual |
Reimplemented in osmscout::LockHandler.
|
virtual |
Reimplemented in osmscout::VehicleFollowHandler.
|
virtual |
Reimplemented in osmscout::LockHandler, and osmscout::VehicleFollowHandler.
|
virtual |
Reimplemented in osmscout::DragHandler, osmscout::MoveHandler, and osmscout::MultitouchHandler.
|
virtual |
|
virtual |
Reimplemented in osmscout::DragHandler, osmscout::MoveHandler, and osmscout::MultitouchHandler.
|
virtual |
Reimplemented in osmscout::MoveHandler.
|
virtual |
Reimplemented in osmscout::JumpHandler, and osmscout::LockHandler.
|
virtual |
Reimplemented in osmscout::DragHandler, osmscout::MoveHandler, osmscout::MultitouchHandler, and osmscout::ZoomGestureHandler.
|
virtual |
Reimplemented in osmscout::VehicleFollowHandler.
|
signal |
|
virtual |
Reimplemented in osmscout::LockHandler, and osmscout::VehicleFollowHandler.
|
virtual |
Reimplemented in osmscout::DragHandler, osmscout::MoveHandler, and osmscout::MultitouchHandler.
|
protected |