PyANGKernel.GKControlPlanSignal

class GKControlPlanSignal

Inheritance diagram of PyANGKernel.GKControlPlanSignal

Synopsis

Methods

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:

areaGKCrosswalkArea

Adds a crosswalk area to this signal.

addPedestrianCrossing(turn)
Parameters:

turnGKPedestrianCrossing

Adds a pedestrian crossing to this signal.

addTurning(turn)
Parameters:

turnGKTurning

Adds a turn to this signal.

getCrosswalkAreas()
Return type:

.list of GKCrosswalkArea

Gets all the crosswalk areas in this signal.

getDistance()
Return type:

float

Returns the distance of the stop line from the section end.

getNode()
Return type:

GKNode

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:

GKMobileAgent

Gets the Pedestrian type this signal pedestrian crosswalk/crosswalk area reacts to, can be nullptr

getTurnings()
Return type:

.list of GKTurning

Gets all the turns in this signal.

getVehicleClass()
Return type:

GKVehicleClass

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:

crossGKCrosswalkArea

Removes a crosswalk area from this signal.

removePedestrianCrossing(cross)
Parameters:

crossGKPedestrianCrossing

Removes a pedestrian crossing from this signal.

removeTurning(turn)
Parameters:

turnGKTurning

Removes a turn from this signal.

setDistance(distance)
Parameters:

distance – float

Sets the distance of the stop line from the section end.

setNode(node)
Parameters:

nodeGKNode

Sets the node this control plan signal belongs to.

setPedestrianType(pedestrianType)
Parameters:

pedestrianTypeGKMobileAgent

Sets the Pedestrian type this signal pedestrian crosswalk/crosswalk area reacts to, can be nullptr

setVehicleClass(vClass)
Parameters:

vClassGKVehicleClass

Sets the vehicle class this signal control plan is associated with (can be nullptr).

usedCrosswalkArea(cross)
Parameters:

crossGKCrosswalkArea

Return type:

bool

Returns true if the crosswalk area is in this signal.

usedPedestrianCrossing(cross)
Parameters:

crossGKPedestrianCrossing

Return type:

bool

Returns true if the pedestrian crossing is in this signal.

usedSection(section)
Parameters:

sectionGKSection

Return type:

bool

Returns true if the section is in any turn as origin in this signal

usedTurning(turn)
Parameters:

turnGKTurning

Return type:

bool

Returns true if the turn is in this signal.