Marble
9 #include "RouteSegment.h"
10 #include "GeoDataLatLonBox.h"
15 class 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 & currentSegment()
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;
KOSM_EXPORT double distance(const std::vector< const OSM::Node * > &path, Coordinate coord)
Binds a QML item to a specific geodetic location in screen coordinates.
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.