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

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:

confGKNodeConflict

__init__(acon1, acon2[, type=GKNodeConflict.GKNodeConflictType.eSimple])
Parameters:
calculateStopLinesInConflict(conf)
Parameters:

confGKTurningSimEntity

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:

GKNodeConflictType

Gets the type of conflict.

getFirstEntity()
Return type:

GKTurningSimEntity

Gets the first entity causing the conflict

getFirstEntityXEnd()
Return type:

float

Gets the end distance of the conflict in the first entity

getFirstEntityXIni()
Return type:

float

Gets the starting distance of the conflict in the first entity

getIntersectionEnd()
Return type:

GKPoint

Gets the position of the second intersecion of the conflict

getIntersectionIni()
Return type:

GKPoint

Gets the position of the first intersecion of the conflict

getSecondEntity()
Return type:

GKTurningSimEntity

Gets the second entity causing the conflict

getSecondEntityXEnd()
Return type:

float

Gets the end distance of the conflict in the second entity

getSecondEntityXIni()
Return type:

float

Gets the starting distance of the conflict in the second entity

getTurningDestinationId()
Return type:

int

Gets the turn ID of the destination entity

getTurningOriginId()
Return type:

int

Gets the turn ID of the origin entity

isValid(node)
Parameters:

nodeGKNode

Return type:

bool

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

setIntersectionEnd(p)
Parameters:

pGKPoint

Sets the position of the second intersecion of the conflict

setIntersectionIni(p)
Parameters:

pGKPoint

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