marble
#include <RouteRequest.h>

Signals | |
| void | positionAdded (int index) |
| void | positionChanged (int index, const GeoDataCoordinates &position) |
| void | positionRemoved (int index) |
| void | routingProfileChanged () |
Public Member Functions | |
| RouteRequest (QObject *parent=0) | |
| ~RouteRequest () | |
| void | addVia (const GeoDataCoordinates &position) |
| void | append (const GeoDataCoordinates &coordinates, const QString &name=QString()) |
| void | append (const GeoDataPlacemark &placemark) |
| GeoDataCoordinates | at (int index) const |
| void | clear () |
| GeoDataCoordinates | destination () const |
| void | insert (int index, const GeoDataCoordinates &coordinates, const QString &name=QString()) |
| QString | name (int index) const |
| GeoDataPlacemark & | operator[] (int index) |
| GeoDataPlacemark const & | operator[] (int index) const |
| QPixmap | pixmap (int index, int size=-1, int margin=2) const |
| void | remove (int index) |
| void | reverse () |
| RoutingProfile | routingProfile () const |
| void | setName (int index, const QString &name) |
| void | setPosition (int index, const GeoDataCoordinates &position, const QString &name=QString()) |
| void | setRoutingProfile (const RoutingProfile &profile) |
| void | setVisited (int index, bool visited) |
| int | size () const |
| GeoDataCoordinates | source () const |
| bool | visited (int index) const |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
| objectName | |
Detailed Description
Points to be included in a route.
An ordered list of GeoDataCoordinates with change notification and Pixmap access, similar to QAbstractItemModel.
Definition at line 31 of file RouteRequest.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 115 of file RouteRequest.cpp.
| Marble::RouteRequest::~RouteRequest | ( | ) |
Destructor.
Definition at line 121 of file RouteRequest.cpp.
Member Function Documentation
| void Marble::RouteRequest::addVia | ( | const GeoDataCoordinates & | position | ) |
Insert a via point.
Order will be chosen such that the via point is not before the start or after the destination. Furthermore the distance between neighboring route points is minimized
- Note
- : This does not trigger an update of the route. It becomes "dirty"
- Todo:
- : Minimizing the distance might not always be what the user wants
Definition at line 240 of file RouteRequest.cpp.
| void Marble::RouteRequest::append | ( | const GeoDataCoordinates & | coordinates, |
| const QString & | name = QString() |
||
| ) |
Add the given element to the end.
Definition at line 218 of file RouteRequest.cpp.
| void Marble::RouteRequest::append | ( | const GeoDataPlacemark & | placemark | ) |
Definition at line 226 of file RouteRequest.cpp.
| GeoDataCoordinates Marble::RouteRequest::at | ( | int | index | ) | const |
Accessor for the n-th position.
Definition at line 149 of file RouteRequest.cpp.
| void Marble::RouteRequest::clear | ( | ) |
Remove all elements.
Definition at line 202 of file RouteRequest.cpp.
| GeoDataCoordinates Marble::RouteRequest::destination | ( | ) | const |
The last point, or a default constructed if empty.
Definition at line 140 of file RouteRequest.cpp.
| void Marble::RouteRequest::insert | ( | int | index, |
| const GeoDataCoordinates & | coordinates, | ||
| const QString & | name = QString() |
||
| ) |
Add the given element at the given position.
Definition at line 209 of file RouteRequest.cpp.
| QString Marble::RouteRequest::name | ( | int | index | ) | const |
Definition at line 268 of file RouteRequest.cpp.
| GeoDataPlacemark & Marble::RouteRequest::operator[] | ( | int | index | ) |
Definition at line 326 of file RouteRequest.cpp.
| const GeoDataPlacemark & Marble::RouteRequest::operator[] | ( | int | index | ) | const |
Definition at line 331 of file RouteRequest.cpp.
| QPixmap Marble::RouteRequest::pixmap | ( | int | index, |
| int | size = -1, |
||
| int | margin = 2 |
||
| ) | const |
Returns a pixmap which indicates the position of the element.
Definition at line 154 of file RouteRequest.cpp.
|
signal |
An element was added at the given position.
|
signal |
The value of the n-th element was changed.
|
signal |
The element at the given position was removed.
| void Marble::RouteRequest::remove | ( | int | index | ) |
Remove the element at the given position.
Definition at line 232 of file RouteRequest.cpp.
| void Marble::RouteRequest::reverse | ( | ) |
Definition at line 304 of file RouteRequest.cpp.
| RoutingProfile Marble::RouteRequest::routingProfile | ( | ) | const |
Definition at line 321 of file RouteRequest.cpp.
|
signal |
The routing profile was changed.
| void Marble::RouteRequest::setName | ( | int | index, |
| const QString & | name | ||
| ) |
Definition at line 261 of file RouteRequest.cpp.
| void Marble::RouteRequest::setPosition | ( | int | index, |
| const GeoDataCoordinates & | position, | ||
| const QString & | name = QString() |
||
| ) |
Change the value of the element at the given position.
Definition at line 249 of file RouteRequest.cpp.
| void Marble::RouteRequest::setRoutingProfile | ( | const RoutingProfile & | profile | ) |
Definition at line 315 of file RouteRequest.cpp.
| void Marble::RouteRequest::setVisited | ( | int | index, |
| bool | visited | ||
| ) |
Definition at line 277 of file RouteRequest.cpp.
| int Marble::RouteRequest::size | ( | ) | const |
Number of points in the route.
Definition at line 126 of file RouteRequest.cpp.
| GeoDataCoordinates Marble::RouteRequest::source | ( | ) | const |
The first point, or a default constructed if empty.
Definition at line 131 of file RouteRequest.cpp.
| bool Marble::RouteRequest::visited | ( | int | index | ) | const |
Definition at line 293 of file RouteRequest.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from