|
libosmscout 0.1
|
Handler for zoom gesture with one finger, activated by tap and press usually. More...
#include <InputHandler.h>
Inheritance diagram for osmscout::ZoomGestureHandler:Public Member Functions | |
| bool | touch (const QTouchEvent &event) override |
| ZoomGestureHandler (const MapView &view, const QPoint &p, double zoomDistance) | |
| ~ZoomGestureHandler () override=default | |
Public Member Functions inherited from osmscout::InputHandler | |
| virtual bool | animationInProgress () |
| virtual bool | currentPosition (bool locationValid, osmscout::GeoCoord currentPosition) |
| virtual bool | focusOutEvent (QFocusEvent *event) |
| InputHandler (const MapView &view) | |
| virtual bool | isFollowVehicle () |
| virtual bool | isLockedToPosition () |
| virtual bool | move (const QVector2D &vector) |
| virtual void | painted () |
| virtual bool | pivotBy (double angleChange) |
| virtual bool | rotateBy (double angleChange) |
| virtual bool | rotateTo (double angle) |
| virtual bool | showCoordinates (const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) |
| virtual bool | vehiclePosition (const VehiclePosition &vehiclePosition, bool autoRotateMap) |
| virtual void | widgetResized (const QSizeF &widgetSize) |
| virtual bool | zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) |
| ~InputHandler () override=default | |
Additional Inherited Members | |
Signals inherited from osmscout::InputHandler | |
| void | viewChanged (const MapView &view) |
Protected Attributes inherited from osmscout::InputHandler | |
| MapView | view |
Handler for zoom gesture with one finger, activated by tap and press usually.
| osmscout::ZoomGestureHandler::ZoomGestureHandler | ( | const MapView & | view, |
| const QPoint & | p, | ||
| double | zoomDistance | ||
| ) |
| view | |
| p | - where the gesture start |
| zoomDistance | - distance [in pixels] where zoom is doubled/halved |
|
overridedefault |
|
overridevirtual |