libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::RouteNode Class Reference

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

Collaboration diagram for osmscout::RouteNode:

Classes

struct  ObjectData
struct  Exclude
struct  Path

Public Member Functions

FileOffset GetFileOffset () const
Id GetId () const
GeoCoord GetCoord () const
Point GetPoint () 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.
std::vector< Pathpaths
 List of paths that can in principle be used from this node.
std::vector< Excludeexcludes
 List of potential excludes regarding use of paths.

Static Public Attributes

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

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

◆ GetPoint()

Point osmscout::RouteNode::GetPoint ( ) const
inline

◆ Initialize()

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

◆ Read() [1/2]

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

◆ Read() [2/2]

void osmscout::RouteNode::Read ( 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: