PyANGKernel.GKTurningSimEntity¶
- class GKTurningSimEntity¶
-
Synopsis¶
Methods¶
def
__init__()def
getCurve()def
__eq__()
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¶
Defines a possible movement from section origin to section destination in a specific turn by defining the origin/destination lanes positions.
- PyANGKernel.GKTurningSimEntity.turning¶
- PyANGKernel.GKTurningSimEntity.originLane¶
- PyANGKernel.GKTurningSimEntity.destinationLane¶
- __init__()¶
- __init__(aturn, origin, destination)
- Parameters:
aturn –
GKTurningorigin – int
destination – int
Creates a turn entity for the turn ‘aturn’ with origin lane ‘origin’ and destination lane ‘destination’
- calcStopLinesInformation(nodeConflicts, modelConnection, hasYellowBox, moveBuffers)¶
- Parameters:
nodeConflicts – .list of GKNodeConflict
modelConnection –
GKModelConnectionhasYellowBox – bool
moveBuffers – bool
Initializes the simulation stop lines (yield) information
- calculateStopLinesInConflict(iniPos, endPos)¶
- Parameters:
iniPos – float
endPos – float
- Return type:
.QSetint
Returns the list of stop lines thar are in the subturning between iniPos and endPos
Calculates a curve parallel to the turn, with an input as initial and final points
- hasConflictWith(otherEntity, intersectionPoint)¶
- Parameters:
otherEntity –
GKTurningSimEntityintersectionPoint –
GKPoint
- Return type:
Returns true if this turn entity intersects with the other entity. If the result is true then the intersection point is returned using the argument intersectionPoint, otherwise the argument is undefined
- hasConflictWith(otherEntity, intersectionPoints)
- Parameters:
otherEntity –
GKTurningSimEntityintersectionPoints –
GKPoints
- Return type:
Returns true if this turn entity intersects with the other entity. If the result is true then all the intersection points are returned using the argument intersectionPoints, otherwise the argument is undefined
- __eq__(value)¶
- Parameters:
value –
GKTurningSimEntity- Return type: