|
Methods defined here:
- __init__(self, id, type, coord, incLanes, intLanes=None)
- addIncoming(self, edge)
- addOutgoing(self, edge)
- areFoes(self, link1, link2)
- forbids(self, possProhibitor, possProhibited)
- getConnections(self, source=None, target=None)
- getCoord(self)
- getCoord3D(self)
- getID(self)
- getIncoming(self)
- getInternal(self)
- getLinkIndex(self, conn)
- getOutgoing(self)
- getShape(self)
- Returns the shape of the node in 2d.
This function returns the shape of the node, as defined in the net.xml
file. The returned shape is a list containing numerical
2-tuples representing the x,y coordinates of the shape points.
If no shape is defined in the xml, an empty list will be returned.
- getShape3D(self)
- Returns the shape of the node in 3d.
This function returns the shape of the node, as defined in the net.xml
file. The returned shape is a list containing numerical
3-tuples representing the x,y,z coordinates of the shape points.
If no shape is defined in the xml, an empty list will be returned.
- getType(self)
- setFoes(self, index, foes, prohibits)
- setShape(self, shape)
- Set the shape of the node.
Shape must be a list containing x,y,z coords as numbers
to represent the shape of the node.
|