PyGKPedestrians.GKPedestrianDecisionNode

class GKPedestrianDecisionNode

Area where pedestrians are routed to their next target in their path

Inheritance diagram of PyGKPedestrians.GKPedestrianDecisionNode

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

PyGKPedestrians.GKPedestrianDecisionNode.defaultDecisionNodePointColor
PyGKPedestrians.GKPedestrianDecisionNode.defaultDecisionNodePointSelectedColor
__init__()
focalPointAtCenter()

Calculates the focal point as the mathematical center of the polygon. If the polygon is non convex, the center will be computed calculating the triangulation of the polygon and using the nearest triangle center to the mathematical center. This will ensure that the point is inside the polygon

getAnchorPoint()
Return type:

GKPoint

getFocalGeometryType()
Return type:

FocalGeometryType

getFocalPoint()
Return type:

GKPoint

getFocalPointDragState()
Return type:

bool

Returns true if the focal point is being dragged

getFocalSegment()
Return type:

GKSegment

getFocalSegmentFromIndex()
Return type:

int

Returns the focal segment from index. -1 if it has a focal point

getFocalSegmentToIndex()
Return type:

int

Returns the focal segment to index. -1 if it has a focal point

getSegmentFromIndex()
Return type:

int

getSegmentToIndex()
Return type:

int

isAutoFocal()
Return type:

bool

Returns true if the focal point is autocalculated

setAnchorPoint(_anchor)
Parameters:

_anchorGKPoint

setFocalPoint(focalPoint)
Parameters:

focalPointGKPoint

setFocalPointDragState(_state)
Parameters:

_state – bool

Sets the drag state of the focal point

setFocalSegment(_indexFrom, _indexTo)
Parameters:
  • _indexFrom – int

  • _indexTo – int