9#include "GeoDataLatLonBox.h"
10#include "RouteSegment.h"
15class MARBLE_EXPORT Route
20 void addRouteSegment(
const RouteSegment &segment);
22 GeoDataLatLonBox bounds()
const;
26 const RouteSegment &at(
int index)
const;
28 int indexOf(
const RouteSegment &segment)
const;
32 const GeoDataLineString &
path()
const;
34 int travelTime()
const;
36 const GeoDataLineString &turnPoints()
const;
38 const GeoDataLineString &waypoints()
const;
40 void setPosition(
const GeoDataCoordinates &position);
42 GeoDataCoordinates position()
const;
44 const RouteSegment ¤tSegment()
const;
46 GeoDataCoordinates currentWaypoint()
const;
48 GeoDataCoordinates positionOnRoute()
const;
51 void updatePosition()
const;
53 GeoDataLatLonBox m_bounds;
59 GeoDataLineString m_path;
61 GeoDataLineString m_turnPoints;
63 GeoDataLineString m_waypoints;
67 mutable bool m_positionDirty;
69 mutable int m_closestSegmentIndex;
71 mutable GeoDataCoordinates m_positionOnRoute;
73 mutable GeoDataCoordinates m_currentWaypoint;
75 GeoDataCoordinates m_position;
QString path(const QString &relativePath)
Binds a QML item to a specific geodetic location in screen coordinates.
KOSM_EXPORT double distance(const std::vector< const OSM::Node * > &path, Coordinate coord)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.