The QGeoRouteSegment class represents a segment of a route. More...
#include <QGeoRouteSegment>
QGeoRouteSegment () | |
QGeoRouteSegment ( const QGeoRouteSegment & other ) | |
~QGeoRouteSegment () | |
qreal | distance () const |
QGeoInstruction | instruction () const |
QList<QGeoCoordinate> | path () const |
void | setDistance ( qreal distance ) |
void | setInstruction ( const QGeoInstruction & instruction ) |
void | setPath ( const QList<QGeoCoordinate> & path ) |
void | setTravelTime ( int secs ) |
int | travelTime () const |
bool | operator!= ( const QGeoRouteSegment & other ) const |
QGeoRouteSegment & | operator= ( const QGeoRouteSegment & other ) |
bool | operator== ( const QGeoRouteSegment & other ) const |
The QGeoRouteSegment class represents a segment of a route.
A QGeoRouteSegment instance has information about the physcial layout of the route segment, the length of the route and the estimated time and navigation instructions required to traverse the route segment.
Constructs a route segment object.
Constructs a route segment object from the contents of other.
Destroys this route segment object.
Returns the distance covered by this segment of the route, in metres.
See also setDistance().
Returns the instruction for this route segment.
See also setInstruction().
Returns the geometric shape of this route segment of the route.
The coordinates should be listed in the order in which they would be traversed by someone travelling along this segment of the route.
See also setPath().
Sets the distance covered by this segment of the route, in metres, to distance.
See also distance().
Sets the instruction for this route segement to instruction.
See also instruction().
Sets the geometric shape of this segment of the route to path.
The coordinates in path should be listed in the order in which they would be traversed by someone travelling along this segment of the route.
See also path().
Sets the estimated amount of time it will take to traverse this segment of the route, in seconds, to secs.
See also travelTime().
Returns the estimated amount of time it will take to traverse this segment of the route, in seconds.
See also setTravelTime().
Returns whether this route segment and other are not equal.
Assigns other to this route segment object and then returns a reference to this route segment object.
Returns whether this route segment and other are equal.