libosmscout
0.1
|
#include <InputHandler.h>
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. More... | |
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 | |
![]() | |
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 | |
![]() | |
void | viewChanged (const MapView &view) |
![]() | |
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, and osmscout::DragHandler.
Referenced by osmscout::DragHandler::animationInProgress(), and osmscout::MultitouchHandler::animationInProgress().
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler, and osmscout::DragHandler.
References osmscout::MapView::GetAngle(), osmscout::MapView::magnification, and osmscout::InputHandler::view.
Referenced by 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(), osmscout::MercatorProjection::Move(), 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, and osmscout::DragHandler.
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, and osmscout::DragHandler.
|
overridevirtual |
Reimplemented from osmscout::InputHandler.
Reimplemented in osmscout::MultitouchHandler, and osmscout::DragHandler.
References osmscout::MapView::GetAngle(), osmscout::Magnification::GetMagnification(), osmscout::MapView::magnification, osmscout::Magnification::SetMagnification(), and osmscout::InputHandler::view.