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

Inheritance diagram of PyGKPedestrians.GKPedestrianServicePoint

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 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__()
distributionPointsEnabled()
Return type:

bool

enableDistributionPoints(value)
Parameters:

value – bool

getAggressivenessType()
Return type:

AggressivenessType

getAngle()
Return type:

float

getCapacity()
Return type:

int

getDelayPoint()
Return type:

GKPoint

getDelayPointWidth()
Return type:

float

getDelayPoints()
Return type:

GKPoints

getDelayTimeType()
Return type:

DelayTimeType

getDevVariableTime()
Return type:

float

getDistributionLocationType()
Return type:

DistributionPointsLocation

getDistributionPoints()
Return type:

GKPoints

getDrawablePoints()
Return type:

GKPoints

getExitTime()
Return type:

QTime

getFixedTime()
Return type:

float

getFocalDriftPoints()
Return type:

GKPoints

getHeight()
Return type:

float

getMeanVariableTime()
Return type:

float

getNbDistributionPoints()
Return type:

int

getPercentage()
Return type:

float

getPosition()
Return type:

GKPoint

getQueueOrientation()
Return type:

float

getUseQueue()
Return type:

bool

getWidth()
Return type:

float

isDelayPointSelected()
Return type:

bool

recalculatePoints()
setAggressivenessType(atype)
Parameters:

atypeAggressivenessType

setAngle(angle)
Parameters:

angle – float

setCapacity(_capacity)
Parameters:

_capacity – int

setDelayPoinSelected(value)
Parameters:

value – bool

setDelayPointWidth(width)
Parameters:

width – float

setDelayTimeType(atype)
Parameters:

atypeDelayTimeType

setDistributionLocationType(type)
Parameters:

typeDistributionPointsLocation

setExitTime(exitTime)
Parameters:

exitTimeQTime

setFixedTime(fixedDelay)
Parameters:

fixedDelay – float

setHeight(height)
Parameters:

height – float

setNbDistributionPoints(value)
Parameters:

value – int

setPercentage(_percentage)
Parameters:

_percentage – float

setPosition(centre)
Parameters:

centreGKPoint

setQueueOrientation(_degrees)
Parameters:

_degrees – float

setUseQueue(_useit)
Parameters:

_useit – bool

setVariableTime(mean, dev)
Parameters:
  • mean – float

  • dev – float

setWidth(width)
Parameters:

width – float