PyANGKernel.GKSectionChange¶
- class GKSectionChange¶
A base class of all the actions that can be activated in a section
Inherited by:
GKSpeedChange,GKSectionIncident,GKPeriodicSectionIncident,GKSectionBehaviouralParametersChange,GKRoadPricing,GKParkAndRideChange,GKLaneClosingChange,GKForceTurning,GKDisableReservedLaneChange,GKDestinationChangeSynopsis¶
Methods¶
def
__init__()def
getFromLane()def
getFromSegment()def
getLength()def
getOffset()def
getSection()def
getTargetType()def
getToLane()def
getToSegment()def
setFromLane()def
setFromSegment()def
setLength()def
setOffset()def
setSection()def
setTargetType()def
setToLane()def
setToSegment()
Virtual methods¶
def
adjust()
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 TargetType¶
- __init__()¶
- adjust()¶
Ensures offset, length and from/to lanes are valid values in the current section.
returns the target (a section, group or road type) where the action is associated
Returns the first lane in the section (from 0 to number of lanes -1) this change affects to A -1 indicates all lanes will be affected
Returns the first segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected
It returns the length of this object in the section’s central line
It returns the length of this object in the central line of the desired lane, not in the section’s central line
It returns the offset of this object from the beginning of the section in the section’s central line. Right now, it only makes sense for incidents
It returns the offset from the beginning of the section but in the central line of the desired lane, not in the section’s central line
It returns the offset of this object from the beginning of the section in the section’s central line without considering the pedestrian crossing at the beginning of the section, if any. Right now, it only makes sense for incidents
OBSOLETE, UnknownCommand
getChangeTargetreturns the section where the action is associatedReturns the section Objects of all the sections affected by this action
- getTargetType()¶
- Return type:
Type of target
Returns the last lane in the section (from 0 to number of lanes -1) this change affects to A -1 indicates all lanes will be affected
Returns the last segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected
- getTurnsAffected()¶
- Return type:
.list of const GKTurning
Returns the turns affected by this action
Returns the IDs of the turns affected by this action
sets the target (a section, group or road type) where the action is associated
- setFromLane(value)¶
- Parameters:
value – int
Sets the first lane in the section (from 0 to number of lanes -1) this change affects to. A -1 indicates all lanes will be affected
- setFromSegment(value)¶
- Parameters:
value – int
Sets the first segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected
- setLength(l)¶
- Parameters:
l – float
Sets the length of this change in the section’s center line
- setOffset(o)¶
- Parameters:
o – float
Sets the offset from the beginning of the section to the start point where this change will be located in the section’s center line. Right now, it only makes sense for incidents
OBSOLETE, UnknownCommand
setChangeTargetsets the section where the action is associated- setTargetType(targetType)¶
- Parameters:
targetType –
TargetType
Type of target
- setToLane(value)¶
- Parameters:
value – int
Sets the last lane in the section (from 0 to number of lanes -1) this change affects to A -1 indicates all lanes will be affected
- setToSegment(value)¶
- Parameters:
value – int
Sets the last segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected