|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/NavigationModel.h>


Public Types | |
| using | Roles = RouteStep::Roles |
Public Slots | |
| void | locationChanged (bool locationValid, double lat, double lon, bool horizontalAccuracyValid, double horizontalAccuracy) |
| void | onUpdate (std::list< RouteStep > instructions) |
| void | onUpdateNext (RouteStep nextRouteInstruction) |
| void | onPositionEstimate (const PositionAgent::PositionState state, const GeoCoord coord, const std::optional< osmscout::Bearing > bearing) |
| void | onTargetReached (const osmscout::Bearing targetBearing, const osmscout::Distance targetDistance) |
| void | onRerouteRequest (const GeoCoord from, const std::optional< osmscout::Bearing > initialBearing, const GeoCoord to) |
| void | onArrivalEstimate (QDateTime arrivalEstimate, osmscout::Distance remainingDistance) |
| void | onCurrentSpeed (double currentSpeed) |
| void | onMaxAllowedSpeed (double maxAllowedSpeed) |
| void | onLaneUpdate (osmscout::LaneAgent::Lane lane) |
Signals | |
| void | update () |
| void | arrivalUpdate () |
| void | routeAheadChanged () |
| void | vehiclePositionChanged () |
| void | routeChanged (QtRouteData route, osmscout::Vehicle vehicle) |
| void | positionChange (osmscout::GeoCoord coord, bool horizontalAccuracyValid, double horizontalAccuracy) |
| void | positionEstimateInTunnelChanged () |
| void | rerouteRequest (double fromLat, double fromLon, const QString bearing, double bearingAngle, double toLat, double toLon) |
| void | targetReached (QString targetBearing, double targetDistance) |
| void | positionEstimate (osmscout::PositionAgent::PositionState state, double lat, double lon, QString bearing) |
| void | currentSpeedUpdate (double currentSpeed) |
| void | maxAllowedSpeedUpdate (double maxAllowedSpeed) |
| void | laneUpdate () |
Public Member Functions | |
| NavigationModel () | |
| ~NavigationModel () override | |
| bool | isPositionOnRoute () |
| QObject * | getRoute () const |
| void | setRoute (QObject *route) |
| QObject * | getNextRoutStep () |
| QVariant | data (const QModelIndex &index, int role) const override |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QHash< int, QByteArray > | roleNames () const override |
| OverlayWay * | getRouteWay () const |
| OverlayWay * | getRouteWayAhead () const |
| OverlayWay * | getRouteWayPassed () const |
| VehiclePosition * | getVehiclePosition () const |
| bool | getPositionEstimateInTunnel () const |
| QDateTime | getArrivalEstimate () const |
| double | getRemainingDinstance () const |
| double | getCurrentSpeed () const |
| double | getMaxAllowedSpeed () const |
| int | getLaneCount () const |
| bool | isLaneSuggested () const |
| int | getSuggestedLaneFrom () const |
| int | getSuggestedLaneTo () const |
| QStringList | getLaneTurns () const |
Properties | |
| QObject * | route |
| QObject * | routeWay |
| QObject * | routeWayAhead |
| QObject * | routeWayPassed |
| QObject * | nextRouteStep |
| QObject * | vehiclePosition |
| bool | positionEstimateInTunnel |
| QDateTime | arrivalEstimate |
| double | remainingDistance |
| double | currentSpeed {-1} |
| double | maxAllowedSpeed {-1} |
| int | laneCount |
| bool | laneSuggested |
| int | suggestedLaneFrom |
| int | suggestedLaneTo |
| QStringList | laneTurns |
Model providing navigation functionality to QML. Main logic sits in osmscout::Navigation class and its Qt wrapper NavigationModule.
| osmscout::NavigationModel::NavigationModel | ( | ) |
|
override |
|
signal |
|
signal |
|
override |
|
override |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| QObject * osmscout::NavigationModel::getNextRoutStep | ( | ) |
|
inline |
|
inline |
| QObject * osmscout::NavigationModel::getRoute | ( | ) | const |
|
inline |
| OverlayWay * osmscout::NavigationModel::getRouteWayAhead | ( | ) | const |
| OverlayWay * osmscout::NavigationModel::getRouteWayPassed | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| bool osmscout::NavigationModel::isPositionOnRoute | ( | ) |
|
signal |
|
slot |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
signal |
|
signal |
|
signal |
|
signal |
Requesting computation of the new route when wehicle leave current route.
bearingAngle is in radians.
|
override |
|
signal |
|
signal |
|
override |
| void osmscout::NavigationModel::setRoute | ( | QObject * | route | ) |
|
signal |
|
signal |
|
signal |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |