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

A route node is the representation of a node in the routing graph. More...

#include <RouteNode.h>

Classes

struct  Exclude
 Exclude regarding use of paths. More...
 
struct  ObjectData
 Information for an object referenced by a path. More...
 
struct  Path
 A single path that starts at the given route node. More...
 

Public Member Functions

uint32_t AddObject (const ObjectFileRef &object, uint16_t objectVariantIndex)
 
GeoCoord GetCoord () const
 
FileOffset GetFileOffset () const
 
Id GetId () const
 
void Read (FileScanner &scanner)
 Read data from the given FileScanner. More...
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 Read data from the given FileScanner. More...
 
void SetPoint (const Point &point)
 
void Write (FileWriter &writer) const
 Write data to the given FileWriter. More...
 

Public Attributes

std::vector< Excludeexcludes
 List of potential excludes regarding use of paths. More...
 
std::vector< ObjectDataobjects
 List of objects (ways, areas) that cross this route node. More...
 
std::vector< Pathpaths
 List of paths that can in principle be used from this node. More...
 

Static Public Attributes

static const uint8_t restrictedForBicycle = 1 << 4
 Using this path ist restricted for bicycle. More...
 
static const uint8_t restrictedForCar = 1 << 5
 Using this path ist restricted for car. More...
 
static const uint8_t restrictedForFoot = 1 << 3
 Using this path ist restricted for foot. More...
 
static const uint8_t usableByBicycle = 1 << 1
 This path can be traveled by bicycle. More...
 
static const uint8_t usableByCar = 1 << 2
 This path can be traveled by car. More...
 
static const uint8_t usableByFoot = 1 << 0
 This path can be traveled by foot. More...
 

Detailed Description

A route node is the representation of a node in the routing graph.

Member Function Documentation

uint32_t osmscout::RouteNode::AddObject ( const ObjectFileRef &  object,
uint16_t  objectVariantIndex 
)
GeoCoord osmscout::RouteNode::GetCoord ( ) const
inline
FileOffset osmscout::RouteNode::GetFileOffset ( ) const
inline
Id osmscout::RouteNode::GetId ( ) const
inline
void osmscout::RouteNode::Read ( FileScanner &  scanner)

Read data from the given FileScanner.

Exceptions
IOException

References excludes, objects, paths, osmscout::refArea, and osmscout::refWay.

Referenced by Read().

void osmscout::RouteNode::Read ( const TypeConfig &  typeConfig,
FileScanner &  scanner 
)

Read data from the given FileScanner.

Exceptions
IOException

References Read().

void osmscout::RouteNode::SetPoint ( const Point &  point)
inline
void osmscout::RouteNode::Write ( FileWriter &  writer) const

Write data to the given FileWriter.

Exceptions
IOException

References excludes, objects, paths, osmscout::refArea, and osmscout::refWay.

Member Data Documentation

std::vector<Exclude> osmscout::RouteNode::excludes

List of potential excludes regarding use of paths.

Referenced by Read(), and Write().

std::vector<ObjectData> osmscout::RouteNode::objects

List of objects (ways, areas) that cross this route node.

Referenced by AddObject(), osmscout::AbstractRoutingProfile::CanUse(), osmscout::FastestPathRoutingProfile::GetCosts(), Read(), and Write().

std::vector<Path> osmscout::RouteNode::paths
const uint8_t osmscout::RouteNode::restrictedForBicycle = 1 << 4
static

Using this path ist restricted for bicycle.

const uint8_t osmscout::RouteNode::restrictedForCar = 1 << 5
static

Using this path ist restricted for car.

const uint8_t osmscout::RouteNode::restrictedForFoot = 1 << 3
static

Using this path ist restricted for foot.

const uint8_t osmscout::RouteNode::usableByBicycle = 1 << 1
static

This path can be traveled by bicycle.

Referenced by osmscout::AbstractRoutingProfile::SetVehicle().

const uint8_t osmscout::RouteNode::usableByCar = 1 << 2
static

This path can be traveled by car.

Referenced by osmscout::AbstractRoutingProfile::SetVehicle().

const uint8_t osmscout::RouteNode::usableByFoot = 1 << 0
static

This path can be traveled by foot.

Referenced by osmscout::AbstractRoutingProfile::SetVehicle().


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