![]() |
SUMO - Simulation of Urban MObility
|
A definition of a pedestrian crossing. More...
#include <NBNode.h>
Public Member Functions | |
Crossing (const NBNode *_node, const EdgeVector &_edges, double _width, bool _priority, int _customTLIndex, const PositionVector &_customShape) | |
constructor More... | |
Data Fields | |
PositionVector | customShape |
optional customShape for this crossing More... | |
int | customTLIndex |
the custom traffic light index of this crossing (if controlled) More... | |
double | customWidth |
This crossing's width. More... | |
EdgeVector | edges |
The edges being crossed. More... | |
std::string | id |
the (edge)-id of this crossing More... | |
std::string | nextWalkingArea |
the lane-id of the next walkingArea More... | |
const NBNode * | node |
The parent node of this crossing. More... | |
std::string | prevWalkingArea |
the lane-id of the previous walkingArea More... | |
bool | priority |
whether the pedestrians have priority More... | |
PositionVector | shape |
The crossing's shape. More... | |
std::string | tlID |
The id of the traffic light that controls this connection. More... | |
int | tlLinkNo |
the traffic light index of this crossing (if controlled) More... | |
bool | valid |
whether this crossing is valid (and can be written to the net.xml). This is needed for netedit because validity can only be checked during junction computation More... | |
double | width |
This crossing's width. More... | |
NBNode::Crossing::Crossing | ( | const NBNode * | _node, |
const EdgeVector & | _edges, | ||
double | _width, | ||
bool | _priority, | ||
int | _customTLIndex, | ||
const PositionVector & | _customShape | ||
) |
constructor
Definition at line 221 of file NBNode.cpp.
PositionVector NBNode::Crossing::customShape |
optional customShape for this crossing
Definition at line 153 of file NBNode.h.
Referenced by GNENet::deleteCrossing(), GNECrossing::drawGL(), GNECrossing::getAttribute(), GNEViewNet::onCmdEditCrossingShape(), GNECrossing::setAttribute(), and GNECrossing::updateGeometry().
int NBNode::Crossing::customTLIndex |
the custom traffic light index of this crossing (if controlled)
Definition at line 157 of file NBNode.h.
Referenced by GNENet::deleteCrossing(), GNECrossing::getAttribute(), and GNECrossing::setAttribute().
double NBNode::Crossing::customWidth |
This crossing's width.
Definition at line 141 of file NBNode.h.
Referenced by GNECrossing::getAttribute(), and GNECrossing::setAttribute().
EdgeVector NBNode::Crossing::edges |
The edges being crossed.
Definition at line 137 of file NBNode.h.
Referenced by NBEdge::buildInnerEdges(), NBNode::buildWalkingAreas(), GNECrossing::checkEdgeBelong(), GNENet::deleteCrossing(), GNECrossing::getAttribute(), NBOwnTLDef::hasCrossing(), NBRequest::mustBrakeForCrossing(), NBNodesEdgesSorter::crossing_by_junction_angle_sorter::operator()(), NBOwnTLDef::patchStateForCrossings(), GNEChange_Crossing::redo(), GNECrossing::setAttribute(), GNEChange_Crossing::undo(), and NBRequest::writeCrossingResponse().
std::string NBNode::Crossing::id |
the (edge)-id of this crossing
Definition at line 145 of file NBNode.h.
Referenced by NBNode::buildWalkingAreas().
std::string NBNode::Crossing::nextWalkingArea |
the lane-id of the next walkingArea
Definition at line 149 of file NBNode.h.
Referenced by NBNode::buildWalkingAreas().
const NBNode* NBNode::Crossing::node |
The parent node of this crossing.
Definition at line 135 of file NBNode.h.
Referenced by NBOwnTLDef::hasCrossing(), and NBOwnTLDef::patchStateForCrossings().
std::string NBNode::Crossing::prevWalkingArea |
the lane-id of the previous walkingArea
Definition at line 147 of file NBNode.h.
Referenced by NBNode::buildWalkingAreas().
bool NBNode::Crossing::priority |
whether the pedestrians have priority
Definition at line 151 of file NBNode.h.
Referenced by GNENet::deleteCrossing(), GNECrossing::drawGL(), GNECrossing::getAttribute(), NBRequest::mustBrakeForCrossing(), GNECrossing::setAttribute(), and NWWriter_SUMO::writeNetwork().
PositionVector NBNode::Crossing::shape |
The crossing's shape.
Definition at line 139 of file NBNode.h.
Referenced by NBEdge::buildInnerEdges(), NBNode::buildWalkingAreas(), GNECrossing::drawGL(), GNECrossing::getCenteringBoundary(), GNEViewNet::onCmdEditCrossingShape(), and GNECrossing::updateGeometry().
std::string NBNode::Crossing::tlID |
The id of the traffic light that controls this connection.
Definition at line 159 of file NBNode.h.
Referenced by GNECrossing::isValid(), and NWWriter_SUMO::writeNetwork().
int NBNode::Crossing::tlLinkNo |
the traffic light index of this crossing (if controlled)
Definition at line 155 of file NBNode.h.
Referenced by NWWriter_SUMO::writeNetwork().
bool NBNode::Crossing::valid |
whether this crossing is valid (and can be written to the net.xml). This is needed for netedit because validity can only be checked during junction computation
Definition at line 161 of file NBNode.h.
Referenced by NBNode::buildWalkingAreas(), and GNECrossing::drawGL().
double NBNode::Crossing::width |
This crossing's width.
Definition at line 143 of file NBNode.h.
Referenced by NBEdge::buildInnerEdges(), NBNode::buildWalkingAreas(), GNENet::deleteCrossing(), and GNECrossing::drawGL().