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) | |
static void | computeTurnDirectionsForNode (NBNode *node, bool warn) |
Computes turnaround destinations for all incoming edges of the given nodes (if any) | |
static double | getFarAngleAtNode (const NBEdge *e, const NBNode *n, double dist=50) |
compute angle to junction at a point further away | |
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 52 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 59 of file NBAlgorithms.cpp.
References NBTurningDirectionsComputer::Combination::angle, DEBUGCOND2, NBTurningDirectionsComputer::Combination::from, NBNode::geometryLike(), getFarAngleAtNode(), Named::getID(), NBNode::getIncomingEdges(), NBNode::getOutgoingEdges(), NBHelpers::normRelAngle(), NBHelpers::relAngle(), TL, NBTurningDirectionsComputer::Combination::to, and WRITE_WARNINGF.
Referenced by computeTurnDirections(), GNEJunction::getPopUpMenu(), GNEJunction::setLogicValid(), NBNode::updateSurroundingGeometry(), and NBRailwayTopologyAnalyzer::updateTurns().
|
static |
compute angle to junction at a point further away
Definition at line 175 of file NBAlgorithms.cpp.
References Position::angleTo2D(), NBEdge::getGeometry(), NBNode::getIncomingEdges(), NBNode::getOutgoingEdges(), NBEdge::getToNode(), GeomHelper::legacyDegree(), PositionVector::length(), and PositionVector::positionAtOffset().
Referenced by computeTurnDirectionsForNode().