Marble::RouteRequest
#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=nullptr) | |
~RouteRequest () override | |
void | addVia (const GeoDataCoordinates &position) |
void | addVia (const GeoDataPlacemark &placemark) |
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()) |
void | insert (int index, const GeoDataPlacemark &placemark) |
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 |
void | swap (int index1, int index2) |
bool | visited (int index) const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Additional Inherited Members | |
Public Types inherited from QObject | |
typedef | QObjectList |
Properties inherited from QObject | |
objectName | |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
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) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
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 26 of file RouteRequest.h.
Constructor & Destructor Documentation
◆ RouteRequest()
|
explicit |
Constructor.
Definition at line 112 of file RouteRequest.cpp.
◆ ~RouteRequest()
|
override |
Destructor.
Definition at line 119 of file RouteRequest.cpp.
Member Function Documentation
◆ addVia() [1/2]
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 255 of file RouteRequest.cpp.
◆ addVia() [2/2]
void Marble::RouteRequest::addVia | ( | const GeoDataPlacemark & | placemark | ) |
Definition at line 262 of file RouteRequest.cpp.
◆ append() [1/2]
void Marble::RouteRequest::append | ( | const GeoDataCoordinates & | coordinates, |
const QString & | name = QString() ) |
Add the given element to the end.
Definition at line 233 of file RouteRequest.cpp.
◆ append() [2/2]
void Marble::RouteRequest::append | ( | const GeoDataPlacemark & | placemark | ) |
Definition at line 241 of file RouteRequest.cpp.
◆ at()
GeoDataCoordinates Marble::RouteRequest::at | ( | int | index | ) | const |
Accessor for the n-th position.
Definition at line 147 of file RouteRequest.cpp.
◆ clear()
void Marble::RouteRequest::clear | ( | ) |
Remove all elements.
Definition at line 200 of file RouteRequest.cpp.
◆ destination()
GeoDataCoordinates Marble::RouteRequest::destination | ( | ) | const |
The last point, or a default constructed if empty.
Definition at line 138 of file RouteRequest.cpp.
◆ insert() [1/2]
void Marble::RouteRequest::insert | ( | int | index, |
const GeoDataCoordinates & | coordinates, | ||
const QString & | name = QString() ) |
Add the given element at the given position.
Definition at line 207 of file RouteRequest.cpp.
◆ insert() [2/2]
void Marble::RouteRequest::insert | ( | int | index, |
const GeoDataPlacemark & | placemark ) |
Definition at line 215 of file RouteRequest.cpp.
◆ name()
QString Marble::RouteRequest::name | ( | int | index | ) | const |
Definition at line 288 of file RouteRequest.cpp.
◆ operator[]() [1/2]
GeoDataPlacemark & Marble::RouteRequest::operator[] | ( | int | index | ) |
Definition at line 344 of file RouteRequest.cpp.
◆ operator[]() [2/2]
const GeoDataPlacemark & Marble::RouteRequest::operator[] | ( | int | index | ) | const |
Definition at line 349 of file RouteRequest.cpp.
◆ pixmap()
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 152 of file RouteRequest.cpp.
◆ positionAdded
|
signal |
An element was added at the given position.
◆ positionChanged
|
signal |
The value of the n-th element was changed.
◆ positionRemoved
|
signal |
The element at the given position was removed.
◆ remove()
void Marble::RouteRequest::remove | ( | int | index | ) |
Remove the element at the given position.
Definition at line 247 of file RouteRequest.cpp.
◆ reverse()
void Marble::RouteRequest::reverse | ( | ) |
Definition at line 324 of file RouteRequest.cpp.
◆ routingProfile()
RoutingProfile Marble::RouteRequest::routingProfile | ( | ) | const |
Definition at line 339 of file RouteRequest.cpp.
◆ routingProfileChanged
|
signal |
The routing profile was changed.
◆ setName()
void Marble::RouteRequest::setName | ( | int | index, |
const QString & | name ) |
Definition at line 281 of file RouteRequest.cpp.
◆ setPosition()
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 269 of file RouteRequest.cpp.
◆ setRoutingProfile()
void Marble::RouteRequest::setRoutingProfile | ( | const RoutingProfile & | profile | ) |
Definition at line 333 of file RouteRequest.cpp.
◆ setVisited()
void Marble::RouteRequest::setVisited | ( | int | index, |
bool | visited ) |
Definition at line 297 of file RouteRequest.cpp.
◆ size()
int Marble::RouteRequest::size | ( | ) | const |
Number of points in the route.
Definition at line 124 of file RouteRequest.cpp.
◆ source()
GeoDataCoordinates Marble::RouteRequest::source | ( | ) | const |
The first point, or a default constructed if empty.
Definition at line 129 of file RouteRequest.cpp.
◆ swap()
void Marble::RouteRequest::swap | ( | int | index1, |
int | index2 ) |
Swaps the given elements at the given positions.
Definition at line 221 of file RouteRequest.cpp.
◆ visited()
bool Marble::RouteRequest::visited | ( | int | index | ) | const |
Definition at line 313 of file RouteRequest.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.