|
libosmscout 0.1
|
Handler with support of simple moves and zoom. More...
#include <InputHandler.h>
Inheritance diagram for osmscout::MoveHandler:Public Member Functions | |
| bool | animationInProgress () override |
| bool | move (const QVector2D &vector) override |
| MoveHandler (const MapView &view) | |
| bool | moveNow (const QVector2D &vector) |
| Called from DragHandler or MultitouchHandler when gesture moves with map. | |
| bool | pivotBy (double angleChange) override |
| bool | rotateBy (double angleChange) override |
| bool | rotateTo (double angle) override |
| bool | touch (const QTouchEvent &event) override |
| bool | zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) override |
| ~MoveHandler () override=default | |
Public Member Functions inherited from osmscout::InputHandler | |
| virtual bool | currentPosition (bool locationValid, osmscout::GeoCoord currentPosition) |
| virtual bool | focusOutEvent (QFocusEvent *event) |
| InputHandler (const MapView &view) | |
| virtual bool | isFollowVehicle () |
| virtual bool | isLockedToPosition () |
| virtual void | painted () |
| virtual bool | showCoordinates (const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) |
| virtual bool | vehiclePosition (const VehiclePosition &vehiclePosition, bool autoRotateMap) |
| virtual void | widgetResized (const QSizeF &widgetSize) |
| ~InputHandler () override=default | |
Additional Inherited Members | |
Signals inherited from osmscout::InputHandler | |
| void | viewChanged (const MapView &view) |
Protected Attributes inherited from osmscout::InputHandler | |
| MapView | view |
Handler with support of simple moves and zoom.
View changes are animated, so one action may emits many of viewChange signals.
|
explicit |
|
overridedefault |
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler.
Referenced by osmscout::DragHandler::animationInProgress(), and osmscout::MultitouchHandler::animationInProgress().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler.
References osmscout::MapView::GetAngle(), osmscout::MapView::magnification, move(), and osmscout::InputHandler::view.
Referenced by move(), moveNow(), osmscout::DragHandler::touch(), and osmscout::MultitouchHandler::touch().
| bool osmscout::MoveHandler::moveNow | ( | const QVector2D & | vector | ) |
Called from DragHandler or MultitouchHandler when gesture moves with map.
| vector |
References osmscout::MapView::angle, osmscout::MapView::center, osmscout::Projection::GetCenter(), osmscout::GeoCoord::GetLat(), osmscout::GeoCoord::GetLon(), osmscout::MapView::magnification, osmscout::MapView::mapDpi, osmscout::OSMTile::maxLat(), osmscout::OSMTile::maxLon(), osmscout::OSMTile::minLat(), osmscout::OSMTile::minLon(), move(), osmscout::MercatorProjection::Move(), osmscout::MercatorProjection::Set(), osmscout::GeoCoord::Set(), osmscout::InputHandler::view, and osmscout::InputHandler::viewChanged().
Referenced by osmscout::DragHandler::touch(), and osmscout::MultitouchHandler::touch().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
References osmscout::MapView::angle, osmscout::MapView::magnification, and osmscout::InputHandler::view.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler.
References osmscout::MapView::angle, osmscout::MapView::magnification, and osmscout::InputHandler::view.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
References osmscout::MapView::angle, osmscout::MapView::magnification, and osmscout::InputHandler::view.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler.
References osmscout::MapView::GetAngle(), osmscout::Magnification::GetMagnification(), osmscout::MapView::magnification, osmscout::Magnification::SetMagnification(), and osmscout::InputHandler::view.