|
libosmscout 0.1
|
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. | |
A route node is the representation of a node in the routing graph.
| uint8_t osmscout::RouteNode::AddObject | ( | const ObjectFileRef & | object, |
| uint16_t | objectVariantIndex | ||
| ) |
|
inline |
References osmscout::Point::GetCoord().
|
inline |
|
inline |
References osmscout::Point::GetId().
|
inline |
|
inline |
| void osmscout::RouteNode::Read | ( | const TypeConfig & | typeConfig, |
| FileScanner & | scanner | ||
| ) |
| void osmscout::RouteNode::Read | ( | FileScanner & | scanner | ) |
Read data from the given FileScanner.
| IOException |
References excludes, osmscout::FileScanner::GetPos(), objects, paths, osmscout::FileScanner::ReadCoord(), osmscout::FileScanner::ReadObjectFileRef(), osmscout::FileScanner::ReadUInt16(), osmscout::FileScanner::ReadUInt32Number(), osmscout::FileScanner::ReadUInt64(), osmscout::FileScanner::ReadUInt64Number(), osmscout::FileScanner::ReadUInt8(), osmscout::refArea, osmscout::refWay, and osmscout::Point::Set().
Referenced by Read().
| void osmscout::RouteNode::Write | ( | FileWriter & | writer | ) | const |
Write data to the given FileWriter.
| IOException |
References excludes, osmscout::Point::GetCoord(), osmscout::Point::GetSerial(), objects, paths, osmscout::refArea, osmscout::refWay, osmscout::FileWriter::Write(), osmscout::FileWriter::WriteCoord(), and osmscout::FileWriter::WriteNumber().
| std::vector<Exclude> osmscout::RouteNode::excludes |
| 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 |
List of paths that can in principle be used from this node.
Referenced by osmscout::AbstractRoutingProfile::CanUse(), osmscout::ShortestPathRoutingProfile::GetCosts(), osmscout::FastestPathRoutingProfile::GetCosts(), Read(), and Write().
|
static |
Using this path ist restricted for bicycle.
|
static |
Using this path ist restricted for car.
|
static |
Using this path ist restricted for foot.
|
static |
This path can be traveled by bicycle.
Referenced by osmscout::AbstractRoutingProfile::SetVehicle().
|
static |
This path can be traveled by car.
Referenced by osmscout::AbstractRoutingProfile::SetVehicle().
|
static |
This path can be traveled by foot.
Referenced by osmscout::AbstractRoutingProfile::SetVehicle().