libosmscout 0.1
Loading...
Searching...
No Matches
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

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

Public Attributes

std::vector< Exclude > excludes
 List of potential excludes regarding use of paths.
std::vector< ObjectData > objects
 List of objects (ways, areas) that cross this route node.
std::vector< Path > paths
 List of paths that can in principle be used from this node.

Static Public Attributes

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.
static const uint8_t restrictedForFoot = 1u << 3u
 Using this path ist restricted for 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 usableByFoot = 1u << 0u
 This path can be traveled by foot.

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()

◆ GetFileOffset()

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

◆ GetId()

◆ 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 data from the given FileScanner.

Exceptions
IOException

References Read().

◆ Read() [2/2]

◆ Write()

Member Data Documentation

◆ excludes

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

List of potential excludes regarding use of paths.

Referenced by Read(), osmscout::AbstractRoutingService< RoutingState >::WalkPaths(), and Write().

◆ objects

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

◆ paths

◆ restrictedForBicycle

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

Using this path ist restricted for bicycle.

Referenced by osmscout::RouteNode::Path::IsRestricted().

◆ restrictedForCar

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

Using this path ist restricted for car.

Referenced by osmscout::RouteNode::Path::IsRestricted().

◆ restrictedForFoot

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

Using this path ist restricted for foot.

Referenced by osmscout::RouteNode::Path::IsRestricted().

◆ usableByBicycle

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

This path can be traveled by bicycle.

Referenced by osmscout::RouteNode::Path::IsUsable(), and osmscout::AbstractRoutingProfile::SetVehicle().

◆ usableByCar

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

This path can be traveled by car.

Referenced by osmscout::RouteNode::Path::IsUsable(), and osmscout::AbstractRoutingProfile::SetVehicle().

◆ usableByFoot

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

This path can be traveled by foot.

Referenced by osmscout::RouteNode::Path::IsUsable(), and osmscout::AbstractRoutingProfile::SetVehicle().


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