libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::ZoomGestureHandler Class Reference

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

Detailed Description

Handler for zoom gesture with one finger, activated by tap and press usually.

Constructor & Destructor Documentation

◆ ZoomGestureHandler()

osmscout::ZoomGestureHandler::ZoomGestureHandler ( const MapView & view,
const QPoint & p,
double zoomDistance )
Parameters
view
p- where the gesture start
zoomDistance- distance [in pixels] where zoom is doubled/halved

References osmscout::InputHandler::InputHandler(), and osmscout::InputHandler::view.

◆ ~ZoomGestureHandler()

osmscout::ZoomGestureHandler::~ZoomGestureHandler ( )
overridedefault

References touch().

Member Function Documentation

◆ touch()

bool osmscout::ZoomGestureHandler::touch ( const QTouchEvent & event)
overridevirtual

The documentation for this class was generated from the following files: