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