PyGKPedestrians.GKPedestrianExitCentroid¶
- class GKPedestrianExitCentroid¶
Centroid where pedestrians exit the network
Synopsis¶
Methods¶
def
__init__()def
getAnchorPoint()def
getFocalPoint()def
isAutoFocal()def
setAnchorPoint()def
setFocalPoint()
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
- __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
- getFocalGeometryType()¶
- Return type:
Returns true if the focal point is being dragged
Returns the focal segment from index. -1 if it has a focal point
Returns the focal segment to index. -1 if it has a focal point
Returns true if the focal point is auto-calculated
- setFocalPointDragState(_state)¶
- Parameters:
_state – bool
Sets the drag state of the focal point
- setFocalSegment(_indexFrom, _indexTo)¶
- Parameters:
_indexFrom – int
_indexTo – int