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

Input handler that locks map view to current position. More...

#include <InputHandler.h>

Inheritance diagram for osmscout::LockHandler:

Public Member Functions

bool currentPosition (bool locationValid, osmscout::GeoCoord currentPosition) override
bool focusOutEvent (QFocusEvent *event) override
bool isLockedToPosition () override
 LockHandler (const MapView &view, const QSizeF &widgetSize)
bool showCoordinates (const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) override
void widgetResized (const QSizeF &widgetSize) override
 ~LockHandler () override=default
Public Member Functions inherited from osmscout::JumpHandler
bool animationInProgress () override
 JumpHandler (const MapView &view, double moveAnimationDuration=(double) ANIMATION_DURATION, double zoomAnimationDuration=(double) ANIMATION_DURATION)
 ~JumpHandler () override=default
Public Member Functions inherited from osmscout::InputHandler
 InputHandler (const MapView &view)
virtual bool isFollowVehicle ()
virtual bool move (const QVector2D &vector)
virtual void painted ()
virtual bool pivotBy (double angleChange)
virtual bool rotateBy (double angleChange)
virtual bool rotateTo (double angle)
virtual bool touch (const QTouchEvent &event)
virtual bool vehiclePosition (const VehiclePosition &vehiclePosition, bool autoRotateMap)
virtual bool zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension)
 ~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

Input handler that locks map view to current position.

Constructor & Destructor Documentation

◆ LockHandler()

osmscout::LockHandler::LockHandler ( const MapView & view,
const QSizeF & widgetSize )
inline

◆ ~LockHandler()

osmscout::LockHandler::~LockHandler ( )
overridedefault

Member Function Documentation

◆ currentPosition()

◆ focusOutEvent()

bool osmscout::LockHandler::focusOutEvent ( QFocusEvent * event)
overridevirtual

Reimplemented from osmscout::InputHandler.

Referenced by ~LockHandler().

◆ isLockedToPosition()

bool osmscout::LockHandler::isLockedToPosition ( )
overridevirtual

Reimplemented from osmscout::InputHandler.

Referenced by ~LockHandler().

◆ showCoordinates()

bool osmscout::LockHandler::showCoordinates ( const osmscout::GeoCoord & coord,
const osmscout::Magnification & magnification,
const osmscout::Bearing & bearing )
overridevirtual

Reimplemented from osmscout::JumpHandler.

Referenced by ~LockHandler().

◆ widgetResized()

void osmscout::LockHandler::widgetResized ( const QSizeF & widgetSize)
overridevirtual

Reimplemented from osmscout::InputHandler.

Referenced by ~LockHandler().


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