Marble::RouteRequest
#include <RouteRequest.h>
Signals | |
void | positionAdded (int index) |
void | positionChanged (int index, const GeoDataCoordinates &position) |
void | positionRemoved (int index) |
void | routingProfileChanged () |
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()
Constructor.
Definition at line 112 of file RouteRequest.cpp.
◆ ~RouteRequest()
|
override |
Destructor.
Definition at line 118 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 254 of file RouteRequest.cpp.
◆ addVia() [2/2]
void Marble::RouteRequest::addVia | ( | const GeoDataPlacemark & | placemark | ) |
Definition at line 261 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 232 of file RouteRequest.cpp.
◆ append() [2/2]
void Marble::RouteRequest::append | ( | const GeoDataPlacemark & | placemark | ) |
Definition at line 240 of file RouteRequest.cpp.
◆ at()
GeoDataCoordinates Marble::RouteRequest::at | ( | int | index | ) | const |
Accessor for the n-th position.
Definition at line 146 of file RouteRequest.cpp.
◆ clear()
void Marble::RouteRequest::clear | ( | ) |
Remove all elements.
Definition at line 199 of file RouteRequest.cpp.
◆ destination()
GeoDataCoordinates Marble::RouteRequest::destination | ( | ) | const |
The last point, or a default constructed if empty.
Definition at line 137 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 206 of file RouteRequest.cpp.
◆ insert() [2/2]
void Marble::RouteRequest::insert | ( | int | index, |
const GeoDataPlacemark & | placemark ) |
Definition at line 214 of file RouteRequest.cpp.
◆ name()
QString Marble::RouteRequest::name | ( | int | index | ) | const |
Definition at line 287 of file RouteRequest.cpp.
◆ operator[]() [1/2]
GeoDataPlacemark & Marble::RouteRequest::operator[] | ( | int | index | ) |
Definition at line 343 of file RouteRequest.cpp.
◆ operator[]() [2/2]
const GeoDataPlacemark & Marble::RouteRequest::operator[] | ( | int | index | ) | const |
Definition at line 348 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 151 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 246 of file RouteRequest.cpp.
◆ reverse()
void Marble::RouteRequest::reverse | ( | ) |
Definition at line 323 of file RouteRequest.cpp.
◆ routingProfile()
RoutingProfile Marble::RouteRequest::routingProfile | ( | ) | const |
Definition at line 338 of file RouteRequest.cpp.
◆ routingProfileChanged
|
signal |
The routing profile was changed.
◆ setName()
Definition at line 280 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 268 of file RouteRequest.cpp.
◆ setRoutingProfile()
Definition at line 332 of file RouteRequest.cpp.
◆ setVisited()
void Marble::RouteRequest::setVisited | ( | int | index, |
bool | visited ) |
Definition at line 296 of file RouteRequest.cpp.
◆ size()
int Marble::RouteRequest::size | ( | ) | const |
Number of points in the route.
Definition at line 123 of file RouteRequest.cpp.
◆ source()
GeoDataCoordinates Marble::RouteRequest::source | ( | ) | const |
The first point, or a default constructed if empty.
Definition at line 128 of file RouteRequest.cpp.
◆ swap()
void Marble::RouteRequest::swap | ( | int | index1, |
int | index2 ) |
Swaps the given elements at the given positions.
Definition at line 220 of file RouteRequest.cpp.
◆ visited()
bool Marble::RouteRequest::visited | ( | int | index | ) | const |
Definition at line 312 of file RouteRequest.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:12:41 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.