SUMO - Simulation of Urban MObility
|
#include <NBAlgorithms.h>
Data Structures | |
struct | Combination |
Stores the information about the angle between an incoming ("from") and an outgoing ("to") edge. More... | |
class | combination_by_angle_sorter |
Sorts "Combination"s by decreasing angle. More... |
Static Public Member Functions | |
static void | computeTurnDirections (NBNodeCont &nc) |
Computes turnaround destinations for all edges (if exist) | |
static void | computeTurnDirectionsForNode (NBNode *node) |
Computes turnaround destinations for all incoming edges of the given nodes (if any) |
Definition at line 53 of file NBAlgorithms.h.
|
static |
Computes turnaround destinations for all edges (if exist)
[in] | nc | The container of nodes to loop along |
Definition at line 56 of file NBAlgorithms.cpp.
References NBNodeCont::begin(), computeTurnDirectionsForNode(), and NBNodeCont::end().
Referenced by NBNetBuilder::compute().
|
static |
Computes turnaround destinations for all incoming edges of the given nodes (if any)
[in] | node | The node for which to compute turnaround destinations |
Definition at line 63 of file NBAlgorithms.cpp.
References NBTurningDirectionsComputer::Combination::angle, NBTurningDirectionsComputer::Combination::from, NBEdge::getAngleAtNode(), NBEdge::getConnections(), NBEdge::getFromNode(), Named::getID(), NBNode::getIncomingEdges(), NBNode::getOutgoingEdges(), NBEdge::getToNode(), NBEdge::isConnectedTo(), NBHelpers::relAngle(), SUMOReal, NBTurningDirectionsComputer::Combination::to, and WRITE_WARNING.
Referenced by computeTurnDirections().