![]() |
Qt 6.x
The Qt SDK
|
#include <qdeclarativegeoroutemodel_p.h>
Public Types | |
enum | TravelMode { CarTravel = QGeoRouteRequest::CarTravel , PedestrianTravel = QGeoRouteRequest::PedestrianTravel , BicycleTravel = QGeoRouteRequest::BicycleTravel , PublicTransitTravel = QGeoRouteRequest::PublicTransitTravel , TruckTravel = QGeoRouteRequest::TruckTravel } |
enum | FeatureType { NoFeature = QGeoRouteRequest::NoFeature , TollFeature = QGeoRouteRequest::TollFeature , HighwayFeature = QGeoRouteRequest::HighwayFeature , PublicTransitFeature = QGeoRouteRequest::PublicTransitFeature , FerryFeature = QGeoRouteRequest::FerryFeature , TunnelFeature = QGeoRouteRequest::TunnelFeature , DirtRoadFeature = QGeoRouteRequest::DirtRoadFeature , ParksFeature = QGeoRouteRequest::ParksFeature , MotorPoolLaneFeature = QGeoRouteRequest::MotorPoolLaneFeature , TrafficFeature = QGeoRouteRequest::TrafficFeature } |
enum | FeatureWeight { NeutralFeatureWeight = QGeoRouteRequest::NeutralFeatureWeight , PreferFeatureWeight = QGeoRouteRequest::PreferFeatureWeight , RequireFeatureWeight = QGeoRouteRequest::RequireFeatureWeight , AvoidFeatureWeight = QGeoRouteRequest::AvoidFeatureWeight , DisallowFeatureWeight = QGeoRouteRequest::DisallowFeatureWeight } |
enum | RouteOptimization { ShortestRoute = QGeoRouteRequest::ShortestRoute , FastestRoute = QGeoRouteRequest::FastestRoute , MostEconomicRoute = QGeoRouteRequest::MostEconomicRoute , MostScenicRoute = QGeoRouteRequest::MostScenicRoute } |
enum | SegmentDetail { NoSegmentData = 0x0000 , BasicSegmentData = 0x0001 } |
enum | ManeuverDetail { NoManeuvers = 0x0000 , BasicManeuvers = 0x0001 } |
Signals | |
void | numberAlternativeRoutesChanged () |
void | travelModesChanged () |
void | routeOptimizationsChanged () |
void | waypointsChanged () |
void | excludedAreasChanged () |
void | featureTypesChanged () |
void | maneuverDetailChanged () |
void | segmentDetailChanged () |
void | queryDetailsChanged () |
void | departureTimeChanged () |
![]() | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
Public Member Functions | |
QDeclarativeGeoRouteQuery (QObject *parent=nullptr) | |
\qmltype RouteQuery \instantiates QDeclarativeGeoRouteQuery \inqmlmodule QtLocation | |
QDeclarativeGeoRouteQuery (const QGeoRouteRequest &request, QObject *parent=nullptr) | |
~QDeclarativeGeoRouteQuery () | |
void | classBegin () override |
Invoked after class creation, but before any properties have been set. | |
void | componentComplete () override |
QGeoRouteRequest | routeRequest () const |
void | setNumberAlternativeRoutes (int numberAlternativeRoutes) |
int | numberAlternativeRoutes () const |
\qmlproperty int RouteQuery::numberAlternativeRoutes | |
QList< int > | featureTypes () const |
\qmlproperty QList<FeatureType> RouteQuery::featureTypes | |
QList< QGeoCoordinate > | waypoints () const |
\qmlproperty list<coordinate> RouteQuery::waypoints | |
void | setWaypoints (const QList< QGeoCoordinate > &value) |
QList< QGeoRectangle > | excludedAreas () const |
\qmlproperty list<georectangle> RouteQuery::excludedAreas | |
void | setExcludedAreas (const QList< QGeoRectangle > &value) |
Q_INVOKABLE void | addWaypoint (const QGeoCoordinate &w) |
\qmlmethod void QtLocation::RouteQuery::addWaypoint(coordinate) | |
Q_INVOKABLE void | removeWaypoint (const QGeoCoordinate &waypoint) |
\qmlmethod void QtLocation::RouteQuery::removeWaypoint(coordinate) | |
Q_INVOKABLE void | clearWaypoints () |
\qmlmethod void QtLocation::RouteQuery::clearWaypoints() | |
Q_INVOKABLE void | addExcludedArea (const QGeoRectangle &area) |
\qmlmethod void QtLocation::RouteQuery::addExcludedArea(georectangle area) | |
Q_INVOKABLE void | removeExcludedArea (const QGeoRectangle &area) |
\qmlmethod void QtLocation::RouteQuery::removeExcludedArea(georectangle area) | |
Q_INVOKABLE void | clearExcludedAreas () |
\qmlmethod void QtLocation::RouteQuery::clearExcludedAreas() | |
Q_INVOKABLE void | setFeatureWeight (FeatureType featureType, FeatureWeight featureWeight) |
\qmlmethod void QtLocation::RouteQuery::setFeatureWeight(FeatureType feature, FeatureWeight weight) | |
Q_INVOKABLE int | featureWeight (FeatureType featureType) |
\qmlmethod FeatureWeight QtLocation::RouteQuery::featureWeight(FeatureType featureType) | |
Q_INVOKABLE void | resetFeatureWeights () |
\qmlmethod void QtLocation::RouteQuery::resetFeatureWeights() | |
void | setTravelModes (TravelModes travelModes) |
TravelModes | travelModes () const |
\qmlproperty enumeration RouteQuery::travelModes | |
void | setSegmentDetail (SegmentDetail segmentDetail) |
\qmlproperty enumeration RouteQuery::segmentDetail | |
SegmentDetail | segmentDetail () const |
void | setManeuverDetail (ManeuverDetail maneuverDetail) |
\qmlproperty enumeration RouteQuery::maneuverDetail | |
ManeuverDetail | maneuverDetail () const |
void | setRouteOptimizations (RouteOptimizations optimization) |
RouteOptimizations | routeOptimizations () const |
\qmlproperty enumeration RouteQuery::routeOptimizations | |
void | setDepartureTime (const QDateTime &departureTime) |
\qmlproperty date RouteQuery::departureTime | |
QDateTime | departureTime () const |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
template<typename T > | |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
![]() | |
QQmlParserStatus () | |
virtual | ~QQmlParserStatus () |
virtual void | classBegin ()=0 |
Invoked after class creation, but before any properties have been set. | |
virtual void | componentComplete ()=0 |
Invoked after the root component that caused this instantiation has completed construction. | |
Properties | |
int | numberAlternativeRoutes |
TravelModes | travelModes |
RouteOptimizations | routeOptimizations |
SegmentDetail | segmentDetail |
ManeuverDetail | maneuverDetail |
QList< QGeoCoordinate > | waypoints |
QList< QGeoRectangle > | excludedAreas |
QList< int > | featureTypes |
QDateTime | departureTime |
![]() | |
QString | objectName |
the name of this object | |
Additional Inherited Members | |
![]() | |
void | deleteLater () |
\threadsafe | |
![]() | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
![]() | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
![]() | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
Definition at line 154 of file qdeclarativegeoroutemodel_p.h.
Enumerator | |
---|---|
NoFeature | |
TollFeature | |
HighwayFeature | |
PublicTransitFeature | |
FerryFeature | |
TunnelFeature | |
DirtRoadFeature | |
ParksFeature | |
MotorPoolLaneFeature | |
TrafficFeature |
Definition at line 202 of file qdeclarativegeoroutemodel_p.h.
Enumerator | |
---|---|
NeutralFeatureWeight | |
PreferFeatureWeight | |
RequireFeatureWeight | |
AvoidFeatureWeight | |
DisallowFeatureWeight |
Definition at line 216 of file qdeclarativegeoroutemodel_p.h.
Enumerator | |
---|---|
NoManeuvers | |
BasicManeuvers |
Definition at line 239 of file qdeclarativegeoroutemodel_p.h.
Enumerator | |
---|---|
ShortestRoute | |
FastestRoute | |
MostEconomicRoute | |
MostScenicRoute |
Definition at line 225 of file qdeclarativegeoroutemodel_p.h.
Enumerator | |
---|---|
NoSegmentData | |
BasicSegmentData |
Definition at line 233 of file qdeclarativegeoroutemodel_p.h.
Enumerator | |
---|---|
CarTravel | |
PedestrianTravel | |
BicycleTravel | |
PublicTransitTravel | |
TruckTravel |
Definition at line 193 of file qdeclarativegeoroutemodel_p.h.
\qmltype RouteQuery \instantiates QDeclarativeGeoRouteQuery \inqmlmodule QtLocation
The RouteQuery type is used to provide query parameters to a RouteModel.
A RouteQuery is used to pack all the parameters necessary to make a request to a routing service, which can then populate the contents of a RouteModel.
These parameters describe key details of the route, such as \l waypoints to pass through, \l excludedAreas to avoid, the \l travelModes in use, as well as detailed preferences on how to optimize the route and what features to prefer or avoid along the path (such as toll roads, highways, etc).
RouteQuery objects are used exclusively to fill out the value of a RouteModel's \l{RouteModel::query}{query} property, which can then begin the retrieval process to populate the model.
Some plugins might allow or require specific parameters to operate. In order to specify these plugin-specific parameters, MapParameter elements can be nested inside a RouteQuery.
Definition at line 642 of file qdeclarativegeoroutemodel.cpp.
QDeclarativeGeoRouteQuery::QDeclarativeGeoRouteQuery | ( | const QGeoRouteRequest & | request, |
QObject * | parent = nullptr |
||
) |
Definition at line 647 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::waypoints().
QDeclarativeGeoRouteQuery::~QDeclarativeGeoRouteQuery | ( | ) |
Definition at line 655 of file qdeclarativegeoroutemodel.cpp.
void QDeclarativeGeoRouteQuery::addExcludedArea | ( | const QGeoRectangle & | area | ) |
\qmlmethod void QtLocation::RouteQuery::addExcludedArea(georectangle area)
Adds the specified georectangle area to the excluded areas (areas that the route must not cross). The same area can only be added once.
Definition at line 791 of file qdeclarativegeoroutemodel.cpp.
References QList< T >::append(), area(), QListSpecialMethodsBase< T >::contains(), emit, QGeoRouteRequest::excludeAreas(), excludedAreas, excludedAreasChanged(), queryDetailsChanged(), and QGeoRouteRequest::setExcludeAreas().
void QDeclarativeGeoRouteQuery::addWaypoint | ( | const QGeoCoordinate & | waypoint | ) |
\qmlmethod void QtLocation::RouteQuery::addWaypoint(coordinate)
Appends the given coordinate to the list of waypoints. The same coordinate can be set multiple times.
Definition at line 869 of file qdeclarativegeoroutemodel.cpp.
References QGeoCoordinate::isValid, qmlWarning(), and QStringLiteral.
|
inlineoverridevirtual |
Invoked after class creation, but before any properties have been set.
Implements QQmlParserStatus.
Definition at line 188 of file qdeclarativegeoroutemodel_p.h.
void QDeclarativeGeoRouteQuery::clearExcludedAreas | ( | ) |
\qmlmethod void QtLocation::RouteQuery::clearExcludedAreas()
Clears all excluded areas (areas that the route must not cross).
Definition at line 848 of file qdeclarativegeoroutemodel.cpp.
References emit, QGeoRouteRequest::excludeAreas(), excludedAreasChanged(), QList< T >::isEmpty(), queryDetailsChanged(), and QGeoRouteRequest::setExcludeAreas().
void QDeclarativeGeoRouteQuery::clearWaypoints | ( | ) |
\qmlmethod void QtLocation::RouteQuery::clearWaypoints()
Clears all waypoints.
Definition at line 911 of file qdeclarativegeoroutemodel.cpp.
References QList< T >::clear(), and QList< T >::isEmpty().
|
overridevirtual |
Implements QQmlParserStatus.
Definition at line 662 of file qdeclarativegeoroutemodel.cpp.
QDateTime QDeclarativeGeoRouteQuery::departureTime | ( | ) | const |
Definition at line 1197 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::departureTime().
|
signal |
QList< QGeoRectangle > QDeclarativeGeoRouteQuery::excludedAreas | ( | ) | const |
\qmlproperty list<georectangle> RouteQuery::excludedAreas
Areas that the route must not cross.
Excluded areas can be set as part of the \l RouteQuery type declaration or dynamically with the functions provided.
Definition at line 762 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::excludeAreas().
|
signal |
Referenced by addExcludedArea(), clearExcludedAreas(), removeExcludedArea(), and setExcludedAreas().
QList< int > QDeclarativeGeoRouteQuery::featureTypes | ( | ) | const |
\qmlproperty QList<FeatureType> RouteQuery::featureTypes
List of features that will be considered when planning the route. Features with a weight of NeutralFeatureWeight will not be returned.
\list
Definition at line 689 of file qdeclarativegeoroutemodel.cpp.
References QList< T >::append(), featureTypes, QGeoRouteRequest::featureTypes(), and list.
|
signal |
Referenced by resetFeatureWeights(), and setFeatureWeight().
int QDeclarativeGeoRouteQuery::featureWeight | ( | FeatureType | featureType | ) |
\qmlmethod FeatureWeight QtLocation::RouteQuery::featureWeight(FeatureType featureType)
Gets the weight for the featureType.
Definition at line 1000 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::featureWeight().
Referenced by setFeatureWeight().
QDeclarativeGeoRouteQuery::ManeuverDetail QDeclarativeGeoRouteQuery::maneuverDetail | ( | ) | const |
Definition at line 1090 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::maneuverDetail().
|
signal |
int QDeclarativeGeoRouteQuery::numberAlternativeRoutes | ( | ) | const |
\qmlproperty int RouteQuery::numberAlternativeRoutes
The number of alternative routes requested when requesting routes. The default value is 0.
Definition at line 707 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::numberAlternativeRoutes().
|
signal |
|
signal |
Referenced by addExcludedArea(), clearExcludedAreas(), removeExcludedArea(), resetFeatureWeights(), setDepartureTime(), setExcludedAreas(), setFeatureWeight(), setManeuverDetail(), setNumberAlternativeRoutes(), QDeclarativeGeoRouteModel::setQuery(), setRouteOptimizations(), setSegmentDetail(), and setTravelModes().
void QDeclarativeGeoRouteQuery::removeExcludedArea | ( | const QGeoRectangle & | area | ) |
\qmlmethod void QtLocation::RouteQuery::removeExcludedArea(georectangle area)
Removes the given area from excluded areas (areas that the route must not cross).
Definition at line 819 of file qdeclarativegeoroutemodel.cpp.
References area(), emit, QGeoRouteRequest::excludeAreas(), excludedAreas, excludedAreasChanged(), QListSpecialMethodsBase< T >::lastIndexOf(), qmlWarning(), QStringLiteral, queryDetailsChanged(), QList< T >::removeAt(), and QGeoRouteRequest::setExcludeAreas().
void QDeclarativeGeoRouteQuery::removeWaypoint | ( | const QGeoCoordinate & | waypoint | ) |
\qmlmethod void QtLocation::RouteQuery::removeWaypoint(coordinate)
Removes the given coordinate from the list of waypoints. If the same coordinate appears multiple times, the most recently added coordinate instance is removed.
Definition at line 889 of file qdeclarativegeoroutemodel.cpp.
References QGeoCoordinate::isValid, QListSpecialMethodsBase< T >::lastIndexOf(), qmlWarning(), QStringLiteral, and QList< T >::remove().
void QDeclarativeGeoRouteQuery::resetFeatureWeights | ( | ) |
\qmlmethod void QtLocation::RouteQuery::resetFeatureWeights()
Resets all feature weights to their default state (NeutralFeatureWeight).
Definition at line 980 of file qdeclarativegeoroutemodel.cpp.
References emit, featureTypes, QGeoRouteRequest::featureTypes(), featureTypesChanged(), QGeoRouteRequest::NeutralFeatureWeight, queryDetailsChanged(), and QGeoRouteRequest::setFeatureWeight().
Referenced by setFeatureWeight().
QDeclarativeGeoRouteQuery::RouteOptimizations QDeclarativeGeoRouteQuery::routeOptimizations | ( | ) | const |
\qmlproperty enumeration RouteQuery::routeOptimizations
The route optimizations which should be considered during the planning of the route. Values can be combined with OR ('|') -operator.
\value RouteQuery.ShortestRoute Minimize the length of the journey
\value RouteQuery.FastestRoute Minimize the traveling time for the journey
\value RouteQuery.MostEconomicRoute Minimize the cost of the journey
\value RouteQuery.MostScenicRoute Maximize the scenic potential of the journey
The default value is {RouteQuery.FastestRoute}
.
Definition at line 1160 of file qdeclarativegeoroutemodel.cpp.
References FastestRoute, QGeoRouteRequest::FastestRoute, MostEconomicRoute, QGeoRouteRequest::MostEconomicRoute, MostScenicRoute, QGeoRouteRequest::MostScenicRoute, QGeoRouteRequest::routeOptimization(), ShortestRoute, and QGeoRouteRequest::ShortestRoute.
|
signal |
QGeoRouteRequest QDeclarativeGeoRouteQuery::routeRequest | ( | ) | const |
Definition at line 1229 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::setWaypoints().
Referenced by QDeclarativeGeoRouteModel::update().
QDeclarativeGeoRouteQuery::SegmentDetail QDeclarativeGeoRouteQuery::segmentDetail | ( | ) | const |
Definition at line 1060 of file qdeclarativegeoroutemodel.cpp.
References QGeoRouteRequest::segmentDetail().
|
signal |
\qmlproperty date RouteQuery::departureTime
The departure time to be used when querying for the route. The default value is an invalid date, meaning no departure time will be used in the query.
Definition at line 1185 of file qdeclarativegeoroutemodel.cpp.
References departureTime, QGeoRouteRequest::departureTime(), departureTimeChanged(), emit, queryDetailsChanged(), and QGeoRouteRequest::setDepartureTime().
void QDeclarativeGeoRouteQuery::setExcludedAreas | ( | const QList< QGeoRectangle > & | value | ) |
Definition at line 767 of file qdeclarativegeoroutemodel.cpp.
References emit, QGeoRouteRequest::excludeAreas(), excludedAreasChanged(), queryDetailsChanged(), and QGeoRouteRequest::setExcludeAreas().
void QDeclarativeGeoRouteQuery::setFeatureWeight | ( | FeatureType | featureType, |
FeatureWeight | featureWeight | ||
) |
\qmlmethod void QtLocation::RouteQuery::setFeatureWeight(FeatureType feature, FeatureWeight weight)
Defines the weight to associate with a feature during the planning of a route.
Following lists the possible feature weights:
\value RouteQuery.NeutralFeatureWeight The presence or absence of the feature does not affect the planning of the route
\value RouteQuery.PreferFeatureWeight Routes which contain the feature are preferred over those that do not
\value RouteQuery.RequireFeatureWeight Only routes which contain the feature are considered, otherwise no route will be returned
\value RouteQuery.AvoidFeatureWeight Routes which do not contain the feature are preferred over those that do
\value RouteQuery.DisallowFeatureWeight Only routes which do not contain the feature are considered, otherwise no route will be returned
Definition at line 951 of file qdeclarativegeoroutemodel.cpp.
References emit, QGeoRouteRequest::featureTypes(), featureTypesChanged(), featureWeight(), QGeoRouteRequest::featureWeight(), NeutralFeatureWeight, NoFeature, queryDetailsChanged(), resetFeatureWeights(), and QGeoRouteRequest::setFeatureWeight().
void QDeclarativeGeoRouteQuery::setManeuverDetail | ( | ManeuverDetail | maneuverDetail | ) |
\qmlproperty enumeration RouteQuery::maneuverDetail
The level of detail which will be used in the representation of routing maneuvers.
\value RouteQuery.NoManeuvers No maneuvers should be included with the route
\value RouteQuery.BasicManeuvers Basic maneuvers will be included with the route
The default value is {RouteQuery.BasicManeuvers}
.
Definition at line 1079 of file qdeclarativegeoroutemodel.cpp.
References emit, maneuverDetail, QGeoRouteRequest::maneuverDetail(), maneuverDetailChanged(), queryDetailsChanged(), and QGeoRouteRequest::setManeuverDetail().
void QDeclarativeGeoRouteQuery::setNumberAlternativeRoutes | ( | int | numberAlternativeRoutes | ) |
Definition at line 712 of file qdeclarativegeoroutemodel.cpp.
References emit, numberAlternativeRoutes, QGeoRouteRequest::numberAlternativeRoutes(), numberAlternativeRoutesChanged(), queryDetailsChanged(), and QGeoRouteRequest::setNumberAlternativeRoutes().
void QDeclarativeGeoRouteQuery::setRouteOptimizations | ( | RouteOptimizations | optimization | ) |
Definition at line 1202 of file qdeclarativegeoroutemodel.cpp.
References emit, FastestRoute, QGeoRouteRequest::FastestRoute, MostEconomicRoute, QGeoRouteRequest::MostEconomicRoute, MostScenicRoute, QGeoRouteRequest::MostScenicRoute, queryDetailsChanged(), QGeoRouteRequest::routeOptimization(), routeOptimizationsChanged(), QGeoRouteRequest::setRouteOptimization(), ShortestRoute, and QGeoRouteRequest::ShortestRoute.
void QDeclarativeGeoRouteQuery::setSegmentDetail | ( | SegmentDetail | segmentDetail | ) |
\qmlproperty enumeration RouteQuery::segmentDetail
The level of detail which will be used in the representation of routing segments.
\value RouteQuery.NoSegmentData No segment data should be included with the route
\value RouteQuery.BasicSegmentData Basic segment data will be included with the route
The default value is {RouteQuery.BasicSegmentData}
.
Definition at line 1049 of file qdeclarativegeoroutemodel.cpp.
References emit, queryDetailsChanged(), segmentDetail, QGeoRouteRequest::segmentDetail(), segmentDetailChanged(), and QGeoRouteRequest::setSegmentDetail().
void QDeclarativeGeoRouteQuery::setTravelModes | ( | TravelModes | travelModes | ) |
Definition at line 1008 of file qdeclarativegeoroutemodel.cpp.
References BicycleTravel, QGeoRouteRequest::BicycleTravel, CarTravel, QGeoRouteRequest::CarTravel, emit, PedestrianTravel, QGeoRouteRequest::PedestrianTravel, PublicTransitTravel, QGeoRouteRequest::PublicTransitTravel, queryDetailsChanged(), QGeoRouteRequest::setTravelModes(), travelModes, QGeoRouteRequest::travelModes(), travelModesChanged(), TruckTravel, and QGeoRouteRequest::TruckTravel.
void QDeclarativeGeoRouteQuery::setWaypoints | ( | const QList< QGeoCoordinate > & | value | ) |
Definition at line 743 of file qdeclarativegeoroutemodel.cpp.
QDeclarativeGeoRouteQuery::TravelModes QDeclarativeGeoRouteQuery::travelModes | ( | ) | const |
\qmlproperty enumeration RouteQuery::travelModes
The travel modes which should be considered during the planning of the route. Values can be combined with OR ('|') -operator.
\value RouteQuery.CarTravel The route will be optimized for someone who is driving a car
\value RouteQuery.PedestrianTravel The route will be optimized for someone who is walking
\value RouteQuery.BicycleTravel The route will be optimized for someone who is riding a bicycle
\value RouteQuery.PublicTransit Travel The route will be optimized for someone who is making use of public transit
\value RouteQuery.TruckTravel The route will be optimized for someone who is driving a truck
The default value is {RouteQuery.CarTravel}
.
Definition at line 1119 of file qdeclarativegeoroutemodel.cpp.
References BicycleTravel, QGeoRouteRequest::BicycleTravel, CarTravel, QGeoRouteRequest::CarTravel, PedestrianTravel, QGeoRouteRequest::PedestrianTravel, PublicTransitTravel, QGeoRouteRequest::PublicTransitTravel, travelModes, QGeoRouteRequest::travelModes(), TruckTravel, and QGeoRouteRequest::TruckTravel.
|
signal |
QList< QGeoCoordinate > QDeclarativeGeoRouteQuery::waypoints | ( | ) | const |
\qmlproperty list<coordinate> RouteQuery::waypoints
The coordinates of the waypoints for the desired route. The waypoints should be given in order from origin to destination. Two or more coordinates are needed.
Waypoints can be set as part of the RouteQuery type declaration or dynamically with the functions provided.
Definition at line 738 of file qdeclarativegeoroutemodel.cpp.
|
signal |
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by setDepartureTime().
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by addExcludedArea(), and removeExcludedArea().
|
read |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by featureTypes(), and resetFeatureWeights().
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by setManeuverDetail().
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by setNumberAlternativeRoutes().
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by setSegmentDetail().
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.
Referenced by setTravelModes(), and travelModes().
|
readwrite |
Definition at line 151 of file qdeclarativegeoroutemodel_p.h.