PyANGKernel.GKPTZonePlan¶
- class GKPTZonePlan¶
-
Synopsis¶
Methods¶
def
__init__()def
addZone()def
contains()def
getFare()def
removeZone()def
setFare()def
setZones()def
updatePolygons()def
zones()
Virtual methods¶
def
activate()def
deactivate()def
isActive()
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__()¶
- abstractmethod activate()¶
- addZone(iZone, fromFares, toFares[, keepPolygon=false])
- Parameters:
iZone –
GKPTZonefromFares – Dictionary with keys of type .GKPTZone and values of type double.
toFares – Dictionary with keys of type .GKPTZone and values of type double.
keepPolygon – bool
- abstractmethod deactivate()¶
- getFare(from, to)
- Parameters:
from – int
to – int
- Return type:
- refreshPolygons()¶
- setFare(from, to, fare)
- Parameters:
from – int
to – int
fare – float
- setFaresFromVector(iVector)¶
- Parameters:
iVector – .list of list of double
- setZones(iZones)¶
- Parameters:
iZones – .list of GKPTZone
- updatePolygons()¶