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

Handler with support of simple moves and zoom. More...

#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.
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()

◆ ~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

Reimplemented from osmscout::InputHandler.

References osmscout::InputHandler::view.

Referenced by ~MoveHandler().

◆ rotateBy()

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

Reimplemented from osmscout::InputHandler.

Reimplemented in osmscout::MultitouchHandler.

References osmscout::InputHandler::view.

Referenced by ~MoveHandler().

◆ rotateTo()

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

Reimplemented from osmscout::InputHandler.

References osmscout::InputHandler::view.

Referenced by ~MoveHandler().

◆ touch()

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

Reimplemented from osmscout::InputHandler.

Reimplemented in osmscout::MultitouchHandler.

Referenced by ~MoveHandler().

◆ 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: