libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::RouteDescription::Node Class Reference

#include <Route.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...
 
double GetDistance () const
 Distance from the start of the route in km. 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...
 
double 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 (double distance)
 
void SetLocation (const GeoCoord &coord)
 
void SetTime (double time)
 

Constructor & Destructor Documentation

osmscout::RouteDescription::Node::Node ( DatabaseId  database,
size_t  currentNodeIndex,
const std::vector< ObjectFileRef > &  objects,
const ObjectFileRef &  pathObject,
size_t  targetNodeIndex 
)

Member Function Documentation

RouteDescription::DescriptionRef osmscout::RouteDescription::Node::GetDescription ( const char *  name) const
const std::list<DescriptionRef>& osmscout::RouteDescription::Node::GetDescriptions ( ) const
inline

Return a list of descriptions attached to the current node.

double osmscout::RouteDescription::Node::GetDistance ( ) const
inline

Distance from the start of the route in km.

Referenced by osmscout::RoutePostprocessor::DirectionPostprocessor::Process().

GeoCoord osmscout::RouteDescription::Node::GetLocation ( ) const
inline

Location (latitude,longitude) of the node.

const std::vector<ObjectFileRef>& osmscout::RouteDescription::Node::GetObjects ( ) const
inline

Return the objects that intersect at the current node index.

Referenced by osmscout::RoutePostprocessor::DestinationPostprocessor::Process().

size_t osmscout::RouteDescription::Node::GetTargetNodeIndex ( ) const
inline

The the index of the target node on the path that is the next node on the route.

double osmscout::RouteDescription::Node::GetTime ( ) const
inline

Time from the start of the route in h.

bool osmscout::RouteDescription::Node::HasDescription ( const char *  name) const
bool osmscout::RouteDescription::Node::HasPathObject ( ) const
inline
void osmscout::RouteDescription::Node::SetDistance ( double  distance)
void osmscout::RouteDescription::Node::SetLocation ( const GeoCoord &  coord)
void osmscout::RouteDescription::Node::SetTime ( double  time)

The documentation for this class was generated from the following files: