![]() |
Eclipse 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, bool warn=true) |
Computes turnaround destinations for all edges (if exist) More... | |
static void | computeTurnDirectionsForNode (NBNode *node, bool warn) |
Computes turnaround destinations for all incoming edges of the given nodes (if any) More... | |
Definition at line 43 of file NBAlgorithms.h.
|
static |
Computes turnaround destinations for all edges (if exist)
[in] | nc | The container of nodes to loop along |
[in] | warn | Whether warnings shall be issued |
Definition at line 49 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 |
[in] | warn | Whether warnings shall be issued |
Definition at line 56 of file NBAlgorithms.cpp.
References NBTurningDirectionsComputer::Combination::angle, NBTurningDirectionsComputer::Combination::from, NBNode::geometryLike(), NBEdge::getAngleAtNode(), NBEdge::getFromNode(), NBEdge::getGeometry(), Named::getID(), NBNode::getIncomingEdges(), NBNode::getOutgoingEdges(), NBEdge::getPermissions(), NBNode::getPosition(), NBEdge::getToNode(), NBHelpers::normRelAngle(), SVC_PEDESTRIAN, NBTurningDirectionsComputer::Combination::to, and WRITE_WARNINGF.
Referenced by computeTurnDirections(), GNEJunction::getPopUpMenu(), GNEJunction::setLogicValid(), and NBRailwayTopologyAnalyzer::updateTurns().