libosmscout
0.1
|
#include <RouteDescription.h>
Public Member Functions | |
void | AddDescription (const char *name, const DescriptionRef &description) |
size_t | GetCurrentNodeIndex () const |
DatabaseId | GetDatabaseId () const |
DBFileOffset | GetDBFileOffset () const |
DescriptionRef | GetDescription (const char *name) const |
const std::list< DescriptionRef > & | GetDescriptions () const |
Return a list of descriptions attached to the current node. More... | |
Distance | GetDistance () const |
Distance from the start of the route. More... | |
GeoCoord | GetLocation () const |
Location (latitude,longitude) of the node. More... | |
const std::vector< ObjectFileRef > & | GetObjects () const |
Return the objects that intersect at the current node index. More... | |
ObjectFileRef | GetPathObject () const |
Return the path object that connects the current node to the next node. More... | |
size_t | GetTargetNodeIndex () const |
The the index of the target node on the path that is the next node on the route. More... | |
Duration | GetTime () const |
Time from the start of the route in h. More... | |
bool | HasDescription (const char *name) const |
bool | HasPathObject () const |
There exists a object/path from the current node to the next node in the route. More... | |
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 | ||
) |
void osmscout::RouteDescription::Node::AddDescription | ( | const char * | name, |
const DescriptionRef & | description | ||
) |
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 |
RouteDescription::DescriptionRef osmscout::RouteDescription::Node::GetDescription | ( | const char * | name | ) | const |
|
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().
|
inline |
Time from the start of the route in h.
Referenced by osmscout::RouteDescriptionBuilder::Callback::BeforeNode().
bool osmscout::RouteDescription::Node::HasDescription | ( | const char * | name | ) | const |
|
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::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 | ) |