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

#include <InputHandler.h>

+ Inheritance diagram for osmscout::MoveHandler:

Public Member Functions

bool animationInProgress () override
 
bool move (const QVector2D &vector) override
 
 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 rotateBy (double angleChange) override
 
bool rotateTo (double angle) override
 
bool touch (const QTouchEvent &event) override
 
bool zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) 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

Handler with support of simple moves and zoom. View changes are animated, so one action may emits many of viewChange signals.

Constructor & Destructor Documentation

◆ MoveHandler()

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

◆ ~MoveHandler()

osmscout::MoveHandler::~MoveHandler ( )
overridedefault

Member Function Documentation

◆ animationInProgress()

bool osmscout::MoveHandler::animationInProgress ( )
overridevirtual

◆ move()

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

◆ moveNow()

◆ pivotBy()

bool osmscout::MoveHandler::pivotBy ( double  angleChange)
overridevirtual

◆ rotateBy()

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

◆ rotateTo()

bool osmscout::MoveHandler::rotateTo ( double  angle)
overridevirtual

◆ touch()

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

Reimplemented from osmscout::InputHandler.

Reimplemented in osmscout::MultitouchHandler, and osmscout::DragHandler.

◆ zoom()

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

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