PyANGKernel.GKControlPlanSignal¶
- class GKControlPlanSignal¶
-
Synopsis¶
Methods¶
def
__init__()def
addTurning()def
getDistance()def
getNode()def
getTurnings()def
removeTurning()def
setDistance()def
setNode()def
usedSection()def
usedTurning()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
A set of turns that will be always green at the same time.
- __init__()¶
- addCrosswalkArea(area)¶
- Parameters:
area –
GKCrosswalkArea
Adds a crosswalk area to this signal.
- addPedestrianCrossing(turn)¶
- Parameters:
turn –
GKPedestrianCrossing
Adds a pedestrian crossing to this signal.
Adds a turn to this signal.
- getCrosswalkAreas()¶
- Return type:
.list of GKCrosswalkArea
Gets all the crosswalk areas in this signal.
Returns the distance of the stop line from the section end.
Gets the node this control plan signal belongs to.
- getPedestrianCrossings()¶
- Return type:
.list of GKPedestrianCrossing
Gets all the pedestrian crossings in this signal.
- getPedestrianType()¶
- Return type:
Gets the Pedestrian type this signal pedestrian crosswalk/crosswalk area reacts to, can be nullptr
Gets all the turns in this signal.
- getVehicleClass()¶
- Return type:
Returns the vehicle class this signal control plan is associated with (can be nullptr).
- removeAllCrosswalkAreas()¶
Removes all the crosswalk areas in this signal.
- removeAllPedestrianCrossings()¶
Removes all the pedestrian crossings in this signal.
- removeAllTurnings()¶
Removes all the turns in this signal.
- removeCrosswalkArea(cross)¶
- Parameters:
cross –
GKCrosswalkArea
Removes a crosswalk area from this signal.
- removePedestrianCrossing(cross)¶
- Parameters:
cross –
GKPedestrianCrossing
Removes a pedestrian crossing from this signal.
Removes a turn from this signal.
- setDistance(distance)¶
- Parameters:
distance – float
Sets the distance of the stop line from the section end.
Sets the node this control plan signal belongs to.
- setPedestrianType(pedestrianType)¶
- Parameters:
pedestrianType –
GKMobileAgent
Sets the Pedestrian type this signal pedestrian crosswalk/crosswalk area reacts to, can be nullptr
- setVehicleClass(vClass)¶
- Parameters:
vClass –
GKVehicleClass
Sets the vehicle class this signal control plan is associated with (can be nullptr).
- usedCrosswalkArea(cross)¶
- Parameters:
cross –
GKCrosswalkArea- Return type:
Returns true if the crosswalk area is in this signal.
- usedPedestrianCrossing(cross)¶
- Parameters:
cross –
GKPedestrianCrossing- Return type:
Returns true if the pedestrian crossing is in this signal.
Returns true if the section is in any turn as origin in this signal
Returns true if the turn is in this signal.