Marble
RoutingInstruction.cpp
31 // Entering a roundabout. Merge with previous segment to avoid 'Enter the roundabout' instructions
350 if (QCoreApplication::instance()->arguments().contains(QStringLiteral("--remaining-duration"))) {
356 QString RoutingInstruction::generateRoadInstruction( RoutingInstruction::TurnType turnType, const QString &roadName )
375 return QObject::tr( "Take the %1. exit in the roundabout." ).arg( roundaboutExit ); // One sentence
MeasurementSystem
void setSuccessor(RoutingInstruction *successor)
Change the successor.
Definition: RoutingInstruction.cpp:209
QString nextRoadInstruction() const
Formats the instruction (road name) for a human reader.
Definition: RoutingInstruction.cpp:246
QVector< RoutingWaypoint > points() const
Waypoints from the last instruction to this instruction.
Definition: RoutingInstruction.cpp:167
QString nextDistanceInstruction() const
Formats the instruction (distance to next instruction) for a human reader.
Definition: RoutingInstruction.cpp:287
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
qreal distance() const
The accumulated distance of all waypoints belonging to this instruction.
Definition: RoutingInstruction.cpp:214
QLocale::MeasurementSystem measurementSystem() const const
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
RoutingInstruction(const RoutingWaypoint &item=RoutingWaypoint())
Constructor.
Definition: RoutingInstruction.cpp:17
qreal distanceFromStart() const
The distance from the route start.
Definition: RoutingInstruction.cpp:224
QLocale system()
qreal angleToPredecssor() const
The angle between the two turn roads, in radians.
Definition: RoutingInstruction.cpp:177
void setPredecessor(RoutingInstruction *predecessor)
Change the predecessor.
Definition: RoutingInstruction.cpp:192
bool isEmpty() const const
QCoreApplication * instance()
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
QVector< RoutingPoint > intersectionPoints() const
Contains the intersection point and points near it on the previous and current road.
Definition: RoutingInstruction.cpp:172
QString instructionText() const
Formats the instruction for a human reader.
Definition: RoutingInstruction.cpp:346
void setRealNumberPrecision(int precision)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
int size() const const
QString totalDurationRemaining() const
Formats the instruction (duration to destination) for a human reader.
Definition: RoutingInstruction.cpp:326
int secondsLeft() const
Estimated number of seconds to the route destination.
Definition: RoutingInstruction.cpp:73
QString tr(const char *sourceText, const char *disambiguation, int n)
QStringList arguments()
Stores data related to one instruction: Road name, angle to predecessor, associated waypoints etc.
Definition: RoutingInstruction.h:25
bool append(const RoutingWaypoint &item, int angle)
Append data of the given item, returns true if item's street name matches instructions street name.
Definition: RoutingInstruction.cpp:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.