libosmscout
0.1
|
#include <RouteNode.h>
Classes | |
struct | Exclude |
struct | ObjectData |
struct | Path |
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. More... | |
void | Read (FileScanner &scanner) |
Read data from the given FileScanner. More... | |
void | Write (FileWriter &writer) const |
Write data to the given FileWriter. More... | |
Public Attributes | |
std::vector< Exclude > | excludes |
List of potential excludes regarding use of paths. More... | |
std::vector< ObjectData > | objects |
List of objects (ways, areas) that cross this route node. More... | |
std::vector< Path > | paths |
List of paths that can in principle be used from this node. More... | |
Static Public Attributes | |
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... | |
static const uint8_t | restrictedForFoot = 1u << 3u |
Using this path ist restricted for 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 | usableByFoot = 1u << 0u |
This path can be traveled by foot. More... | |
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().