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

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

Inheritance diagram for osmscout::MoveHandler:
Collaboration diagram for osmscout::MoveHandler:

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, bool autoRotateMap)
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.

◆ move()

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

Reimplemented from osmscout::InputHandler.

Reimplemented in osmscout::MultitouchHandler.

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

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

◆ zoom()

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

Reimplemented from osmscout::InputHandler.

Reimplemented in osmscout::MultitouchHandler.


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