PyANGKernel.GKNodeConflict¶
- class GKNodeConflict¶
Describes a “conflict zone” for a given turn entity inside a node.
Details
The conflict will reflect the conflicting zone of two GKTurningSimEntities.
Synopsis¶
Methods¶
def
__init__()def
getFirstEntity()def
isValid()
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
- class GKNodeConflictType¶
Types of node conflicts: - eSimple: a simple conflict with one geometrical intersection between the center lines of the two entities. - eComplex: a complex conflict defined by two geometrical intersections between the center lines of the two entities. - eOverlap: a conflict without geometrical intersection of the center lines of the two entities but with the volumes of the entities.
- __init__()¶
- __init__(conf)
- Parameters:
conf –
GKNodeConflict
- __init__(acon1, acon2[, type=GKNodeConflict.GKNodeConflictType.eSimple])
- Parameters:
acon1 –
GKTurningSimEntityacon2 –
GKTurningSimEntitytype –
GKNodeConflictType
- calculateStopLinesInConflict(conf)¶
- Parameters:
conf –
GKTurningSimEntity- Return type:
.QSetint
Returns the list of stop lines at the turning entity that matches conf, that are inside the conflict area
- getConflictType()¶
- Return type:
Gets the type of conflict.
- getFirstEntity()¶
- Return type:
Gets the first entity causing the conflict
Gets the end distance of the conflict in the first entity
Gets the starting distance of the conflict in the first entity
Gets the position of the second intersecion of the conflict
Gets the position of the first intersecion of the conflict
- getSecondEntity()¶
- Return type:
Gets the second entity causing the conflict
Gets the end distance of the conflict in the second entity
Gets the starting distance of the conflict in the second entity
Gets the turn ID of the destination entity
Gets the turn ID of the origin entity
Return true if this node conflicts uses existings turnings
- setFirstEntityXEnd(x)¶
- Parameters:
x – float
Sets the end distance of the conflict in the first entity
- setFirstEntityXIni(x)¶
- Parameters:
x – float
Sets the starting distance of the conflict in the first entity
Sets the position of the second intersecion of the conflict
Sets the position of the first intersecion of the conflict
- setSecondEntityXEnd(x)¶
- Parameters:
x – float
Sets the end distance of the conflict in the second entity
- setSecondEntityXIni(x)¶
- Parameters:
x – float
Sets the starting distance of the conflict in the second entity