libosmscout
0.1
|
#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 | |
![]() | |
bool | animationInProgress () override |
JumpHandler (const MapView &view, double moveAnimationDuration=(double) ANIMATION_DURATION, double zoomAnimationDuration=(double) ANIMATION_DURATION) | |
~JumpHandler () override=default | |
![]() | |
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 | |
![]() | |
void | viewChanged (const MapView &view) |
![]() | |
MapView | view |
Input handler that locks map view to current position.
|
inline |
|
overridedefault |
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
References osmscout::MapView::angle, osmscout::MapView::center, osmscout::MercatorProjection::GeoToPixel(), osmscout::Projection::GetHeight(), osmscout::Projection::GetWidth(), osmscout::Vertex2D::GetX(), osmscout::Vertex2D::GetY(), osmscout::MapView::magnification, osmscout::MapView::mapDpi, osmscout::MercatorProjection::Set(), osmscout::JumpHandler::showCoordinates(), and osmscout::InputHandler::view.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
|
overridevirtual |
Reimplemented from osmscout::JumpHandler.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.