SUMO - Simulation of Urban MObility
NBTurningDirectionsComputer Class Reference

#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)

Detailed Description

Definition at line 52 of file NBAlgorithms.h.


Member Function Documentation

Computes turnaround destinations for all edges (if exist)

Parameters:
[in]ncThe container of nodes to loop along

Definition at line 54 of file NBAlgorithms.cpp.

References NBNodeCont::begin(), computeTurnDirectionsForNode(), and NBNodeCont::end().

Referenced by NBNetBuilder::compute().

Computes turnaround destinations for all incoming edges of the given nodes (if any)

Parameters:
[in]nodeThe node for which to compute turnaround destinations
Note:
: This is needed by NETEDIT

Definition at line 61 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().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines