|
libosmscout
1.1.1
|
#include <libosmscout-client-qt/include/osmscout/RouteStep.h>


Public Types | |
| enum | Roles { ShortDescriptionRole = Qt::UserRole + 1, DescriptionRole = Qt::UserRole + 2, TypeRole = Qt::UserRole + 3, RoundaboutExitRole = Qt::UserRole + 4, RoundaboutClockwiseRole = Qt::UserRole + 5, latRole = Qt::UserRole + 6, lonRole = Qt::UserRole + 7, distanceRole = Qt::UserRole + 8, distanceDeltaRole = Qt::UserRole + 9, distanceToRole = Qt::UserRole + 10, timeRole = Qt::UserRole + 11, timeDeltaRole = Qt::UserRole + 12 } |
Signals | |
| void | update () |
Public Member Functions | |
| RouteStep () | |
| RouteStep (const QString &type, const GeoCoord &coord, const Distance &distance, const Distance &distanceDelta, const Duration &time, const Duration &timeDelta, const QStringList &streetNames) | |
| RouteStep (const RouteStep &other) | |
| RouteStep & | operator= (const RouteStep &other) |
| QString | getType () const |
| GeoCoord | GetCoord () const |
| double | getLat () const |
| double | getLon () const |
| Distance | GetDistance () const |
| double | getDistance () const |
| double | getDistanceDelta () const |
| double | getDistanceTo () const |
| double | getTime () const |
| double | getTimeDelta () const |
| QString | getDescription () const |
| QString | getShortDescription () const |
| QStringList | getStreetNames () const |
| int | getRoundaboutExit () const |
| bool | getRoundaboutClockwise () const |
| QVariant | data (int role) const |
Static Public Member Functions | |
| static QHash< int, QByteArray > | roleNames (QHash< int, QByteArray > roles) |
Public Attributes | |
| GeoCoord | coord |
| Position. More... | |
| Distance | distance |
| Estimate distance from route start. More... | |
| Distance | distanceDelta |
| Estimate distance from previous route step. More... | |
| Distance | distanceTo |
| Estimate distance to this step (used with navigation) More... | |
| Duration | time |
| Estimate time from route start. More... | |
| Duration | timeDelta |
| Estimate time from previous route step. More... | |
Properties | |
| QString | type |
| Type of route step. More... | |
| double | lat |
| double | lon |
| double | distance |
| double | distanceDelta |
| double | distanceTo |
| double | time |
| double | timeDelta |
| QString | description |
| Formatted (html) verbose description (translated already) More... | |
| QString | shortDescription |
| Plain short description (translated already) More... | |
| QStringList | streetNames |
| Street names leading to this step. More... | |
| int | roundaboutExit {-1} |
| when type is "leave-roundabout" this property indicate number of exit More... | |
| bool | roundaboutClockwise {false} |
Human representation of route step commands. It contains time, distance and two variants of translated description:
shortTranslationdescription with simple html formatting (just subset supported by Qt components)
|
inline |
| osmscout::RouteStep::RouteStep | ( | const QString & | type, |
| const GeoCoord & | coord, | ||
| const Distance & | distance, | ||
| const Distance & | distanceDelta, | ||
| const Duration & | time, | ||
| const Duration & | timeDelta, | ||
| const QStringList & | streetNames | ||
| ) |
| osmscout::RouteStep::RouteStep | ( | const RouteStep & | other | ) |
| QVariant osmscout::RouteStep::data | ( | int | role | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
signal |
| GeoCoord osmscout::RouteStep::coord |
Position.
| Distance osmscout::RouteStep::distance |
Estimate distance from route start.
| Distance osmscout::RouteStep::distanceDelta |
Estimate distance from previous route step.
| Distance osmscout::RouteStep::distanceTo |
Estimate distance to this step (used with navigation)
| Duration osmscout::RouteStep::time |
Estimate time from route start.
| Duration osmscout::RouteStep::timeDelta |
Estimate time from previous route step.
|
read |
Formatted (html) verbose description (translated already)
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
when type is "leave-roundabout" or "enter-roundabout", this property indicate direction of roundabout
|
read |
when type is "leave-roundabout" this property indicate number of exit
|
read |
Plain short description (translated already)
|
read |
Street names leading to this step.
|
read |
|
read |
|
read |
Type of route step.
1.8.14