PyGKPedestrians.GKPedestrianServicePoint¶
- class GKPedestrianServicePoint¶
Object that represents any kind of shop, noticeboard, etc
Details
it justs keeps a center position, the length, the width and the delay width, which defines the are where pedestrians will wait for a while (see
DelayTimeType)*—x1–* | | | | x0 * x2 height |—x4—| | |delay width *—x3–* width
[x0, x3] are drawable points x4 is the drawable delay point
Synopsis¶
Methods¶
def
__init__()def
getAngle()def
getCapacity()def
getDelayPoint()def
getDelayPoints()def
getExitTime()def
getFixedTime()def
getHeight()def
getPercentage()def
getPosition()def
getUseQueue()def
getWidth()def
setAngle()def
setCapacity()def
setExitTime()def
setFixedTime()def
setHeight()def
setPercentage()def
setPosition()def
setUseQueue()def
setWidth()
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 DelayTimeType¶
Pedestrians delay options: eFixed: pedestrians will wait the specied number of seconds eWaitUntil: pedestrians will wait until a certain time eVariable: pedestrians will wait a variable number of seconds calculated using mean, min and max values
- class AggressivenessType¶
Pedestrians behavior when being delayed: eLow: Pedestrians will not try to reach their target point eMedium: Pedestrians will reach their target point, if there’s nobody between them and their target eHigh: Pedestrians will try to reach their target point even if there are people in their path
- class DistributionPointsLocation¶
It defines how the distribution points will be automatically placed eWholeArea: Points will be placed all over the Delay area eTop: Points will be placed closer to the entrance eMiddle: Points will be placed in the middle of the area eBottom: Points will be placed as far as possible from the entrance
- PyGKPedestrians.GKPedestrianServicePoint.defaultServicePointColor¶
- PyGKPedestrians.GKPedestrianServicePoint.defaultServicePointSelectedColor¶
- __init__()¶
- enableDistributionPoints(value)¶
- Parameters:
value – bool
- getAggressivenessType()¶
- Return type:
- getDelayTimeType()¶
- Return type:
- getDistributionLocationType()¶
- Return type:
- recalculatePoints()¶
- setAggressivenessType(atype)¶
- Parameters:
atype –
AggressivenessType
- setAngle(angle)¶
- Parameters:
angle – float
- setCapacity(_capacity)¶
- Parameters:
_capacity – int
- setDelayPoinSelected(value)¶
- Parameters:
value – bool
- setDelayPointWidth(width)¶
- Parameters:
width – float
- setDelayTimeType(atype)¶
- Parameters:
atype –
DelayTimeType
- setDistributionLocationType(type)¶
- Parameters:
type –
DistributionPointsLocation
- setFixedTime(fixedDelay)¶
- Parameters:
fixedDelay – float
- setHeight(height)¶
- Parameters:
height – float
- setNbDistributionPoints(value)¶
- Parameters:
value – int
- setPercentage(_percentage)¶
- Parameters:
_percentage – float
- setQueueOrientation(_degrees)¶
- Parameters:
_degrees – float
- setUseQueue(_useit)¶
- Parameters:
_useit – bool
- setVariableTime(mean, dev)¶
- Parameters:
mean – float
dev – float
- setWidth(width)¶
- Parameters:
width – float