libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::DragHandler Class Reference

#include <InputHandler.h>

+ Inheritance diagram for osmscout::DragHandler:

Public Member Functions

bool animationInProgress () override
 
 DragHandler (const MapView &view)
 
bool move (const QVector2D &vector) override
 
bool rotateBy (double angleChange) override
 
bool touch (const QTouchEvent &event) override
 
bool zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) override
 
 ~DragHandler () override=default
 
- Public Member Functions inherited from osmscout::MoveHandler
 MoveHandler (const MapView &view)
 
bool moveNow (const QVector2D &vector)
 Called from DragHandler or MultitouchHandler when gesture moves with map. More...
 
bool pivotBy (double angleChange) override
 
bool rotateTo (double angle) override
 
 ~MoveHandler () override=default
 
- Public Member Functions inherited from osmscout::InputHandler
virtual bool currentPosition (bool locationValid, osmscout::GeoCoord currentPosition)
 
virtual bool focusOutEvent (QFocusEvent *event)
 
 InputHandler (const MapView &view)
 
virtual bool isFollowVehicle ()
 
virtual bool isLockedToPosition ()
 
virtual void painted ()
 
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)
 
 ~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

InputHandler with support of dragg gesture.

Constructor & Destructor Documentation

◆ DragHandler()

osmscout::DragHandler::DragHandler ( const MapView view)
explicit

◆ ~DragHandler()

osmscout::DragHandler::~DragHandler ( )
overridedefault

Member Function Documentation

◆ animationInProgress()

bool osmscout::DragHandler::animationInProgress ( )
overridevirtual

◆ move()

bool osmscout::DragHandler::move ( const QVector2D &  vector)
overridevirtual

Reimplemented from osmscout::MoveHandler.

◆ rotateBy()

bool osmscout::DragHandler::rotateBy ( double  angleChange)
overridevirtual

Reimplemented from osmscout::MoveHandler.

◆ touch()

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

◆ zoom()

bool osmscout::DragHandler::zoom ( double  zoomFactor,
const QPoint &  widgetPosition,
const QRect &  widgetDimension 
)
overridevirtual

Reimplemented from osmscout::MoveHandler.


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