|
libosmscout 0.1
|
Input handler that locks map view to current position. More...
#include <InputHandler.h>
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 |
Input handler that locks map view to current position.
|
inline |
References osmscout::JumpHandler::JumpHandler(), and osmscout::InputHandler::view.
|
overridedefault |
References currentPosition(), focusOutEvent(), isLockedToPosition(), showCoordinates(), and widgetResized().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
References currentPosition(), osmscout::MercatorProjection::GeoToPixel(), osmscout::Projection::GetHeight(), osmscout::Projection::GetWidth(), osmscout::Vertex2D::GetX(), osmscout::Vertex2D::GetY(), osmscout::MercatorProjection::Set(), osmscout::JumpHandler::showCoordinates(), and osmscout::InputHandler::view.
Referenced by currentPosition(), and ~LockHandler().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Referenced by ~LockHandler().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Referenced by ~LockHandler().
|
overridevirtual |
Reimplemented from osmscout::JumpHandler.
Referenced by ~LockHandler().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Referenced by ~LockHandler().