marble
VoiceNavigationModel.cpp
Go to the documentation of this file.
129 QString VoiceNavigationModelPrivate::turnTypeAudioFile( Maneuver::Direction turnType, qreal distance )
140 void VoiceNavigationModelPrivate::updateInstruction( qreal distance, Maneuver::Direction turnType )
258 if ( status != PositionProviderStatusAvailable && d->m_gpsStatus == PositionProviderStatusAvailable ) {
262 if ( status == PositionProviderStatusAvailable && d->m_gpsStatus != PositionProviderStatusAvailable ) {
269 void VoiceNavigationModel::update(const Route &route, qreal distanceManuever, qreal distanceTarget, bool deviated )
293 Maneuver::Direction turnType = route.currentSegment().nextRouteSegment().maneuver().direction();
294 if ( !( d->m_lastTurnPoint == route.currentSegment().nextRouteSegment().maneuver().position() ) || turnType != d->m_lastTurnType ) {
299 bool const announcement = ( d->m_lastDistance == 0 || d->m_lastDistance > 850 ) && distanceManuever <= 850;
300 bool const turn = ( d->m_lastDistance == 0 || d->m_lastDistance > 75 ) && distanceManuever <= 75;
Definition: Maneuver.h:34
Definition: Maneuver.h:33
bool contains(const Key &key) const
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
Definition: Maneuver.h:36
Definition: Maneuver.h:43
Definition: Maneuver.h:30
Definition: Maneuver.h:32
void clear()
QString number(int n, int base)
bool isEmpty() const
Definition: Maneuver.h:31
QFuture< void > map(Sequence &sequence, MapFunction function)
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
const RouteSegment & nextRouteSegment() const
Definition: RouteSegment.cpp:72
bool exists() const
Definition: Maneuver.h:28
Definition: Route.h:20
Definition: Maneuver.h:37
Definition: Maneuver.h:35
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Definition: Maneuver.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.