libosmscout  1.1.1
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
osmscout::RouteNode Class Reference

#include <libosmscout/include/osmscout/routing/RouteNode.h>

Collaboration diagram for osmscout::RouteNode:
Collaboration graph
[legend]

Classes

struct  Exclude
 
struct  ObjectData
 
struct  Path
 

Public Member Functions

FileOffset GetFileOffset () const
 
Id GetId () const
 
GeoCoord GetCoord () const
 
void Initialize (FileOffset fileOffset, const Point &point)
 
uint8_t AddObject (const ObjectFileRef &object, uint16_t objectVariantIndex)
 
void Read (FileScanner &scanner)
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 
void Write (FileWriter &writer) const
 

Public Attributes

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...
 
std::vector< Excludeexcludes
 List of potential excludes regarding use of paths. More...
 

Static Public Attributes

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

Detailed Description

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

Member Function Documentation

◆ AddObject()

uint8_t osmscout::RouteNode::AddObject ( const ObjectFileRef &  object,
uint16_t  objectVariantIndex 
)

◆ GetCoord()

GeoCoord osmscout::RouteNode::GetCoord ( ) const
inline

◆ GetFileOffset()

FileOffset osmscout::RouteNode::GetFileOffset ( ) const
inline

◆ GetId()

Id osmscout::RouteNode::GetId ( ) const
inline

◆ Initialize()

void osmscout::RouteNode::Initialize ( FileOffset  fileOffset,
const Point &  point 
)
inline

◆ Read() [1/2]

void osmscout::RouteNode::Read ( FileScanner &  scanner)

◆ Read() [2/2]

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

◆ Write()

void osmscout::RouteNode::Write ( FileWriter &  writer) const

Member Data Documentation

◆ excludes

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

List of potential excludes regarding use of paths.

◆ objects

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

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

◆ paths

std::vector<Path> osmscout::RouteNode::paths

List of paths that can in principle be used from this node.

◆ restrictedForBicycle

const uint8_t osmscout::RouteNode::restrictedForBicycle = 1u << 4u
static

Using this path ist restricted for bicycle.

◆ restrictedForCar

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

Using this path ist restricted for car.

◆ restrictedForFoot

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

Using this path ist restricted for foot.

◆ usableByBicycle

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

This path can be traveled by bicycle.

◆ usableByCar

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

This path can be traveled by car.

◆ usableByFoot

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

This path can be traveled by foot.


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