Model providing navigation functionality to QML.
More...
#include <NavigationModel.h>
|
void | locationChanged (bool locationValid, double lat, double lon, bool horizontalAccuracyValid, double horizontalAccuracy) |
|
void | onArrivalEstimate (QDateTime arrivalEstimate, osmscout::Distance remainingDistance) |
|
void | onCurrentSpeed (double currentSpeed) |
|
void | onLaneUpdate (osmscout::LaneAgent::Lane lane) |
|
void | onMaxAllowedSpeed (double maxAllowedSpeed) |
|
void | onPositionEstimate (const PositionAgent::PositionState state, const GeoCoord coord, const std::optional< osmscout::Bearing > bearing) |
|
void | onRerouteRequest (const GeoCoord from, const std::optional< osmscout::Bearing > initialBearing, const GeoCoord to) |
|
void | onTargetReached (const osmscout::Bearing targetBearing, const osmscout::Distance targetDistance) |
|
void | onUpdate (std::list< RouteStep > instructions) |
|
void | onUpdateNext (RouteStep nextRouteInstruction) |
|
|
void | arrivalUpdate () |
|
void | currentSpeedUpdate (double currentSpeed) |
|
void | laneUpdate () |
|
void | maxAllowedSpeedUpdate (double maxAllowedSpeed) |
|
void | positionChange (osmscout::GeoCoord coord, bool horizontalAccuracyValid, double horizontalAccuracy) |
|
void | positionEstimate (osmscout::PositionAgent::PositionState state, double lat, double lon, QString bearing) |
|
void | positionEstimateInTunnelChanged () |
|
void | rerouteRequest (double fromLat, double fromLon, const QString bearing, double bearingAngle, double toLat, double toLon) |
| Requesting computation of the new route when wehicle leave current route. More...
|
|
void | routeAheadChanged () |
|
void | routeChanged (QtRouteData route, osmscout::Vehicle vehicle) |
|
void | targetReached (QString targetBearing, double targetDistance) |
|
void | update () |
|
void | vehiclePositionChanged () |
|
Model providing navigation functionality to QML.
Main logic sits in osmscout::Navigation class and its Qt wrapper NavigationModule.
◆ Roles
◆ NavigationModel()
osmscout::NavigationModel::NavigationModel |
( |
| ) |
|
References osmscout::NavigationModule::arrivalEstimate(), arrivalUpdate(), osmscout::NavigationModule::currentSpeed(), osmscout::OSMScoutQt::GetInstance(), osmscout::NavigationModule::laneUpdate(), osmscout::NavigationModule::locationChanged(), osmscout::OSMScoutQt::MakeNavigation(), osmscout::NavigationModule::maxAllowedSpeed(), onArrivalEstimate(), onCurrentSpeed(), onLaneUpdate(), onMaxAllowedSpeed(), onPositionEstimate(), onRerouteRequest(), onTargetReached(), onUpdate(), onUpdateNext(), positionChange(), osmscout::NavigationModule::positionEstimate(), osmscout::NavigationModule::rerouteRequest(), routeAheadChanged(), routeChanged(), osmscout::NavigationModule::setupRoute(), osmscout::NavigationModule::targetReached(), osmscout::NavigationModule::update(), and osmscout::NavigationModule::updateNext().
◆ ~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 |
◆ getLaneTurn()
QString osmscout::NavigationModel::getLaneTurn |
( |
| ) |
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 |
◆ getRemainingDistance()
double osmscout::NavigationModel::getRemainingDistance |
( |
| ) |
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
◆ onMaxAllowedSpeed
void osmscout::NavigationModel::onMaxAllowedSpeed |
( |
double |
maxAllowedSpeed | ) |
|
|
slot |
◆ onPositionEstimate
◆ onRerouteRequest
◆ onTargetReached
◆ 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
◆ 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.
Referenced by onRerouteRequest().
◆ 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 | ) |
|
References arrivalEstimate, arrivalUpdate(), currentSpeedUpdate(), laneUpdate(), maxAllowedSpeedUpdate(), nextRouteStep, positionEstimateInTunnelChanged(), remainingDistance, route, routeChanged(), osmscout::PositionAgent::Uninitialised, update(), and vehiclePositionChanged().
◆ 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 |
◆ laneTurn
QString osmscout::NavigationModel::laneTurn |
|
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 files: