libosmscout  1.1.1
Public Member Functions | List of all members
osmscout::MoveHandler Class Reference

#include <libosmscout-client-qt/include/osmscout/InputHandler.h>

Inheritance diagram for osmscout::MoveHandler:
Inheritance graph
[legend]
Collaboration diagram for osmscout::MoveHandler:
Collaboration graph
[legend]

Public Member Functions

 MoveHandler (const MapView &view)
 
 ~MoveHandler () override=default
 
bool animationInProgress () override
 
bool moveNow (const QVector2D &vector)
 
bool zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) override
 
bool move (const QVector2D &vector) override
 
bool rotateTo (double angle) override
 
bool rotateBy (double angleChange) override
 
bool touch (const QTouchEvent &event) override
 
- Public Member Functions inherited from osmscout::InputHandler
 InputHandler (const MapView &view)
 
 ~InputHandler () override=default
 
virtual void painted ()
 
virtual bool showCoordinates (const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing)
 
virtual bool currentPosition (bool locationValid, osmscout::GeoCoord currentPosition)
 
virtual bool vehiclePosition (const VehiclePosition &vehiclePosition)
 
virtual bool isLockedToPosition ()
 
virtual bool isFollowVehicle ()
 
virtual bool focusOutEvent (QFocusEvent *event)
 
virtual void widgetResized (const QSizeF &widgetSize)
 

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

Reimplemented from osmscout::InputHandler.

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

◆ move()

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

Reimplemented from osmscout::InputHandler.

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

◆ moveNow()

bool osmscout::MoveHandler::moveNow ( const QVector2D &  vector)

Called from DragHandler or MultitouchHandler when gesture moves with map

Parameters
vector
Returns

◆ rotateBy()

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

Reimplemented from osmscout::InputHandler.

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

◆ rotateTo()

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

Reimplemented from osmscout::InputHandler.

◆ 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

Reimplemented from osmscout::InputHandler.

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


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