The QGeoInstruction class represents a navigation instruction. More...
#include <QGeoInstruction>
enum | InstructionDirection { NoDirection, DirectionForward, DirectionBearRight, DirectionLightRight, ..., DirectionBearLeft } |
QGeoInstruction () | |
QGeoInstruction ( const QGeoInstruction & other ) | |
~QGeoInstruction () | |
InstructionDirection | direction () const |
qreal | distanceToNextInstruction () const |
QString | instructionText () const |
QGeoCoordinate | position () const |
void | setDirection ( InstructionDirection direction ) |
void | setDistanceToNextInstruction ( qreal distance ) |
void | setInstructionText ( const QString & instructionText ) |
void | setPosition ( const QGeoCoordinate & position ) |
void | setTimeToNextInstruction ( int secs ) |
int | timeToNextInstruction () const |
bool | operator!= ( const QGeoInstruction & other ) const |
QGeoInstruction & | operator= ( const QGeoInstruction & other ) |
bool | operator== ( const QGeoInstruction & other ) const |
The QGeoInstruction class represents a navigation instruction.
A QGeoInstruction instance has a position at which the instruction applies and a textual instruction to provide at that position.
Describes the change in direction associated with an instruction.
Constant | Value | Description |
---|---|---|
QGeoInstruction::NoDirection | 0 | There is no direction associated with the instruction. |
QGeoInstruction::DirectionForward | 1 | The instruction indicates that the direction of travel does not need to change. |
QGeoInstruction::DirectionBearRight | 2 | The instruction indicates that the direction of travel should bear to the right. |
QGeoInstruction::DirectionLightRight | 3 | The instruction indicates that a light turn to the right is required. |
QGeoInstruction::DirectionRight | 4 | The instruction indicates that a turn to the right is required. |
QGeoInstruction::DirectionHardRight | 5 | The instruction indicates that a hard turn to the right is required. |
QGeoInstruction::DirectionUTurnRight | 6 | The instruction indicates that a u-turn to the right is required. |
QGeoInstruction::DirectionUTurnLeft | 7 | The instruction indicates that a u-turn to the left is required. |
QGeoInstruction::DirectionHardLeft | 8 | The instruction indicates that a hard turn to the left is required. |
QGeoInstruction::DirectionLeft | 9 | The instruction indicates that a turn to the left is required. |
QGeoInstruction::DirectionLightLeft | 10 | The instruction indicates that a light turn to the left is required. |
QGeoInstruction::DirectionBearLeft | 11 | The instruction indicates that the direction of travel should bear to the left. |
Constructs a navigation instruction object.
Constructs a navigation instruction object from the contents of other.
Destroys this navigation instruction object.
Returns the direction associated with this instruction.
See also setDirection().
Returns the distance, in metres, between the point at which this instruction was issued and the point that the next instruction should be issued.
See also setDistanceToNextInstruction().
Returns the textual navigation instructions.
See also setInstructionText().
Returns the position where the instructions should be provided.
See also setPosition().
Sets the direction associated with this instruction to direction.
See also direction().
Sets the distance, in metres, between the point at which this instruction was issued and the point that the next instruction should be issued to distance.
See also distanceToNextInstruction().
Sets the textual navigation instructions to instructionText.
See also instructionText().
Sets the position where the instructions should be provided to position.
See also position().
Sets the estimated time it will take to travel from the point at which this instruction was issued and the point that the next instruction should be issued, in seconds, to secs.
See also timeToNextInstruction().
Returns the estimated time it will take to travel from the point at which this instruction was issued and the point that the next instruction should be issued, in seconds.
See also setTimeToNextInstruction().
Returns whether this navigation instruction is not equal to other.
Assigns other to this navigation instruction object and then returns a reference to this navigation instruction object.
Returns whether this navigation instruction is equal to other.