|
libosmscout 0.1
|
#include <RouteDescription.h>
Public Member Functions | |
| template<class D > requires std::is_base_of_v<Description, D> | |
| void | AddDescription (const std::shared_ptr< D > &description) |
| size_t | GetCurrentNodeIndex () const |
| DatabaseId | GetDatabaseId () const |
| DBFileOffset | GetDBFileOffset () const |
| template<class D > requires std::is_base_of_v<Description, D> | |
| std::shared_ptr< D > | GetDescription () const |
| const std::list< DescriptionRef > & | GetDescriptions () const |
| Return a list of descriptions attached to the current node. | |
| Distance | GetDistance () const |
| Distance from the start of the route. | |
| GeoCoord | GetLocation () const |
| Location (latitude,longitude) of the node. | |
| const std::vector< ObjectFileRef > & | GetObjects () const |
| Return the objects that intersect at the current node index. | |
| ObjectFileRef | GetPathObject () const |
| Return the path object that connects the current node to the next node. | |
| size_t | GetTargetNodeIndex () const |
| The the index of the target node on the path that is the next node on the route. | |
| Duration | GetTime () const |
| Time from the start of the route in h. | |
| template<class D > requires std::is_base_of_v<Description, D> | |
| bool | HasDescription () const |
| bool | HasPathObject () const |
| There exists a object/path from the current node to the next node in the route. | |
| Node (DatabaseId database, size_t currentNodeIndex, const std::vector< ObjectFileRef > &objects, const ObjectFileRef &pathObject, size_t targetNodeIndex) | |
| void | SetDistance (Distance distance) |
| void | SetLocation (const GeoCoord &coord) |
| void | SetTime (const Timestamp::duration &duration) |
| osmscout::RouteDescription::Node::Node | ( | DatabaseId | database, |
| size_t | currentNodeIndex, | ||
| const std::vector< ObjectFileRef > & | objects, | ||
| const ObjectFileRef & | pathObject, | ||
| size_t | targetNodeIndex | ||
| ) |
|
inline |
Referenced by osmscout::RoutePostprocessor::CrossingWaysPostprocessor::Process(), osmscout::RoutePostprocessor::DirectionPostprocessor::Process(), osmscout::RoutePostprocessor::MotorwayJunctionPostprocessor::Process(), osmscout::RoutePostprocessor::MaxSpeedPostprocessor::Process(), and osmscout::RoutePostprocessor::SectionsPostprocessor::Process().
|
inline |
|
inline |
Referenced by osmscout::PostprocessorContext::GetLanes(), osmscout::RoutePostprocessor::CrossingWaysPostprocessor::Process(), osmscout::RoutePostprocessor::MotorwayJunctionPostprocessor::Process(), osmscout::RoutePostprocessor::DestinationPostprocessor::Process(), and osmscout::RoutePostprocessor::MaxSpeedPostprocessor::Process().
|
inline |
|
inline |
|
inline |
Return a list of descriptions attached to the current node.
|
inline |
Distance from the start of the route.
Referenced by osmscout::RouteDescriptionBuilder::Callback::BeforeNode(), and osmscout::RoutePostprocessor::DirectionPostprocessor::Process().
|
inline |
Location (latitude,longitude) of the node.
Referenced by osmscout::RouteDescriptionBuilder::Callback::BeforeNode().
|
inline |
Return the objects that intersect at the current node index.
Referenced by osmscout::RoutePostprocessor::CrossingWaysPostprocessor::Process(), and osmscout::RoutePostprocessor::DestinationPostprocessor::Process().
|
inline |
Return the path object that connects the current node to the next node.
Referenced by osmscout::PostprocessorContext::GetLanes(), osmscout::PostprocessorContext::GetNodeId(), osmscout::RoutePostprocessor::CrossingWaysPostprocessor::Process(), osmscout::RoutePostprocessor::DestinationPostprocessor::Process(), and osmscout::RoutePostprocessor::MaxSpeedPostprocessor::Process().
|
inline |
The the index of the target node on the path that is the next node on the route.
Referenced by osmscout::PostprocessorContext::GetLanes(), and osmscout::RoutePostprocessor::DirectionPostprocessor::Process().
|
inline |
Time from the start of the route in h.
Referenced by osmscout::RouteDescriptionBuilder::Callback::BeforeNode().
|
inline |
|
inline |
There exists a object/path from the current node to the next node in the route.
References osmscout::ObjectFileRef::Valid().
Referenced by osmscout::RoutePostprocessor::CrossingWaysPostprocessor::Process(), osmscout::RoutePostprocessor::DirectionPostprocessor::Process(), osmscout::RoutePostprocessor::DestinationPostprocessor::Process(), and osmscout::RoutePostprocessor::MaxSpeedPostprocessor::Process().
| void osmscout::RouteDescription::Node::SetDistance | ( | Distance | distance | ) |
| void osmscout::RouteDescription::Node::SetLocation | ( | const GeoCoord & | coord | ) |
| void osmscout::RouteDescription::Node::SetTime | ( | const Timestamp::duration & | duration | ) |