#include <RoutingModel.h>
◆ Roles
◆ RoutingListModel() [1/3]
osmscout::RoutingListModel::RoutingListModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ RoutingListModel() [2/3]
◆ RoutingListModel() [3/3]
◆ ~RoutingListModel()
osmscout::RoutingListModel::~RoutingListModel |
( |
| ) |
|
|
override |
◆ availableVehicles()
Q_INVOKABLE QStringList osmscout::RoutingListModel::availableVehicles |
( |
| ) |
|
|
inline |
◆ cancel
void osmscout::RoutingListModel::cancel |
( |
| ) |
|
|
slot |
◆ clear
void osmscout::RoutingListModel::clear |
( |
| ) |
|
|
slot |
◆ computingChanged
void osmscout::RoutingListModel::computingChanged |
( |
| ) |
|
|
signal |
◆ data()
QVariant osmscout::RoutingListModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags osmscout::RoutingListModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ get()
QObject * osmscout::RoutingListModel::get |
( |
int |
row | ) |
const |
◆ getRoute()
QObject* osmscout::RoutingListModel::getRoute |
( |
| ) |
const |
|
inline |
◆ getRouteDuration()
double osmscout::RoutingListModel::getRouteDuration |
( |
| ) |
const |
◆ getRouteLength()
double osmscout::RoutingListModel::getRouteLength |
( |
| ) |
const |
◆ getRouteWay()
OverlayWay* osmscout::RoutingListModel::getRouteWay |
( |
| ) |
|
|
inline |
◆ isReady()
bool osmscout::RoutingListModel::isReady |
( |
| ) |
|
|
inline |
◆ locationEntryFromPosition()
Q_INVOKABLE QObject* osmscout::RoutingListModel::locationEntryFromPosition |
( |
double |
lat, |
|
|
double |
lon, |
|
|
QString |
label = "" |
|
) |
| |
|
inline |
Create LocationEntry from geographic coordinate with optional label.
It may be used from QML when selecting route start/end via point on map.
◆ onRouteComputed
void osmscout::RoutingListModel::onRouteComputed |
( |
QtRouteData |
route, |
|
|
int |
requestId |
|
) |
| |
|
slot |
◆ onRouteFailed
void osmscout::RoutingListModel::onRouteFailed |
( |
QString |
reason, |
|
|
int |
requestId |
|
) |
| |
|
slot |
◆ onRoutingProgress
void osmscout::RoutingListModel::onRoutingProgress |
( |
int |
percent, |
|
|
int |
requestId |
|
) |
| |
|
slot |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ roleNames()
QHash< int, QByteArray > osmscout::RoutingListModel::roleNames |
( |
| ) |
const |
|
override |
◆ routeFailed
void osmscout::RoutingListModel::routeFailed |
( |
QString |
reason | ) |
|
|
signal |
◆ routeRequest
◆ routingProgress
void osmscout::RoutingListModel::routingProgress |
( |
int |
percent | ) |
|
|
signal |
◆ rowCount()
int osmscout::RoutingListModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setStartAndTarget [1/2]
◆ setStartAndTarget [2/2]
void osmscout::RoutingListModel::setStartAndTarget |
( |
LocationEntry * |
start, |
|
|
LocationEntry * |
target, |
|
|
QString |
vehicleStr = "car" , |
|
|
double |
vehicleBearing = -1 |
|
) |
| |
|
slot |
◆ count
int osmscout::RoutingListModel::count |
|
read |
◆ duration
double osmscout::RoutingListModel::duration |
|
read |
◆ length
double osmscout::RoutingListModel::length |
|
read |
◆ ready
bool osmscout::RoutingListModel::ready |
|
read |
◆ route
QObject osmscout::RoutingListModel::route |
|
read |
◆ routeWay
QObject osmscout::RoutingListModel::routeWay |
|
read |
The documentation for this class was generated from the following files: