PyGKPedestrians.GKPedestrianArea¶
- class GKPedestrianArea¶
Area that defines the available space for pedestrians
Synopsis¶
Methods¶
def
__init__()def
addCentroid()def
addObstacle()def
getCentroids()def
getObstacles()def
hasObstacle()def
removeCentroid()def
removeObstacle()def
usedObject()
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__()¶
- addCentroid(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianCentroid
- addDecisionNode(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianDecisionNode
- addLevelChangeObject(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianLevelChangeObject
- addObstacle(obstacle, originObj)¶
- Parameters:
obstacle –
GKPedestrianObstacleoriginObj –
GKGeoObject
associates the pedestrian obstacle with the origin object. OriginObj can be NULL because not all pedestrian obstacle must be generated from an existing geoobject. Note that origin object cannot be a pedestrian obstacle
- addServicePoint(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianServicePoint
- generateObstaclesFromLayer(layer, minHeight)¶
- Parameters:
layer –
GKLayerminHeight – float
- getCentroids()¶
- Return type:
.QSetGKPedestrianCentroid
- getDecisionNodes()¶
- Return type:
.QSetGKPedestrianDecisionNode
- getLevelChangeObjects()¶
- Return type:
.QSetGKPedestrianLevelChangeObject
- getObstacles()¶
- Return type:
.QSetGKPedestrianObstacle
- getObstaclesFromObject(geoobj)¶
- Parameters:
geoobj –
GKGeoObject- Return type:
.QSetGKPedestrianObstacle
- getOriginObject(obstacle)¶
- Parameters:
obstacle –
GKPedestrianObstacle- Return type:
Returns the origin object of an obstacle. It can return NULL
- getServicePoints()¶
- Return type:
.QSetGKPedestrianServicePoint
- hasObstacle(obj)¶
- Parameters:
obj –
GKGeoObject- Return type:
Returns if the specified object has an obstacle associated
- removeCentroid(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianCentroid
- removeDecisionNode(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianDecisionNode
- removeLevelChangeObject(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianLevelChangeObject
- removeObstacle(obstacle[, obj=NULL])¶
- Parameters:
obstacle –
GKPedestrianObstacleobj –
GKGeoObject
removes the obstacle, if obj is not NULL then it also removes the association between obj and obstacle
- removeObstaclesFromObject(obj[, removeGeoObject=false])¶
- Parameters:
obj –
GKGeoObjectremoveGeoObject – bool
removes all associated obstacles to obj, if any
- removeServicePoint(arg__1)¶
- Parameters:
arg__1 –
GKPedestrianServicePoint
- removesObstacles()¶
- updateObjectsInside()¶
- usedObject(obj)¶
- Parameters:
obj –
GKGeoObject- Return type:
Returns if the specified object is in the pedestrian area