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

Inheritance diagram of PyGKPedestrians.GKPedestrianLevelChangeObject

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 Side
class Exit
class Type
class Direction
__init__()
addItem(item)
Parameters:

itemGKPedestrianLevelChangeItem

calculateLevelChangeItemsGeometry()

Calculates the area for all level change items (stairs and escalators)

clearItems()
getAngle()
Return type:

float

getBaseGeometry()
Return type:

.list of GKSegment

Returns the segments to build obstacles in the current level object position

getClosestExitArea(referencePoint, closestExit, closestSide)
Parameters:
Return type:

bool

getDrawablePoints()
Return type:

GKPoints

getDuplicateGeometry()
Return type:

.list of GKSegment

Returns the segments to build shifted obstacles to represent a different level

getHeight()
Return type:

float

getLength()
Return type:

float

getLowerFocalNodePoints(itemArea)
Parameters:

itemAreaGKPoints

Return type:

GKPoints

Returns the focal node geometry in front of the specified side and exit

getPedestrianAreaObstacles()
Return type:

.list of GKSegment

Returns the geometry of the base at the level of the pedestrian area. This is used as obstacles for the walkable space generation.

getPosition()
Return type:

GKPoint

getUpperFocalNodePoints(itemArea)
Parameters:

itemAreaGKPoints

Return type:

GKPoints

Returns the focal node geometry in front of the specified side and exit

getWidth()
Return type:

float

isStairPointSelected(i)
Parameters:

i – int

Return type:

bool

Returns true if the desired point is selected. Return false if the desired point is not selected

recalculatePoints()
setAngle(angle)
Parameters:

angle – float

setDistance(_side, _exit, newDistance)
Parameters:
  • _sideSide

  • _exitExit

  • newDistance – float

setHeight(value)
Parameters:

value – float

setLength(length)
Parameters:

length – float

setPosition(centre)
Parameters:

centreGKPoint

setStairPointSelected(p, value)
Parameters:
  • p – int

  • value – bool

Changes the selection status of a desired point

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