PyGKPedestrians.GKPedestrianLevelChangeObject¶
- class GKPedestrianLevelChangeObject¶
Object that represents either an underpath or an upperpath for pedestrians. * * Level change object distribution
Details
*
0–x0–1—– | | | | | y0 x3 x1 | | |—– | | 3–x2–2
x points are drawable y points are stair items reference point
Synopsis¶
Methods¶
def
__init__()def
addItem()def
clearItems()def
getAngle()def
getHeight()def
getLength()def
getPosition()def
getWidth()def
setAngle()def
setDistance()def
setHeight()def
setLength()def
setPosition()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 Side¶
- class Exit¶
- class Type¶
- class Direction¶
- __init__()¶
- addItem(item)¶
- Parameters:
item –
GKPedestrianLevelChangeItem
- calculateLevelChangeItemsGeometry()¶
Calculates the area for all level change items (stairs and escalators)
- clearItems()¶
Returns the segments to build obstacles in the current level object position
- getClosestExitArea(referencePoint, closestExit, closestSide)¶
Returns the segments to build shifted obstacles to represent a different level
Returns the focal node geometry in front of the specified side and exit
Returns the geometry of the base at the level of the pedestrian area. This is used as obstacles for the walkable space generation.
Returns the focal node geometry in front of the specified side and exit
Returns true if the desired point is selected. Return false if the desired point is not selected
- recalculatePoints()¶
- setAngle(angle)¶
- Parameters:
angle – float
- setHeight(value)¶
- Parameters:
value – float
- setLength(length)¶
- Parameters:
length – float
- setStairPointSelected(p, value)¶
- Parameters:
p – int
value – bool
Changes the selection status of a desired point
See also
- setWidth(width)¶
- Parameters:
width – float
- class GKPedestrianLevelChangeItem¶
Struct that defines each entry/exit to the pedestrian level change object
Details
*
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.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.side¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.exit¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.type¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.direction¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.width¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.speed¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.usePercentage¶
- PyGKPedestrians.GKPedestrianLevelChangeObject.GKPedestrianLevelChangeItem.areaPoints¶