SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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) More...
 
static void computeTurnDirectionsForNode (NBNode *node)
 Computes turnaround destinations for all incoming edges of the given nodes (if any) More...
 

Detailed Description

Definition at line 52 of file NBAlgorithms.h.

Member Function Documentation

void NBTurningDirectionsComputer::computeTurnDirections ( NBNodeCont nc)
static

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().

void NBTurningDirectionsComputer::computeTurnDirectionsForNode ( NBNode node)
static

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: