PyANGKernel.GKSectionLaneSolid¶
- class GKSectionLaneSolid¶
Information for solid line for a lane.
Details
A solid line can be at the left of the lane line (no movement from the left is allowed), at the right (no movement from the right is allowed) or in both sides (no movement neither from the left nor from the right is allowed). Note that left and right are defined using the direction of lane geometrical definition (coordinate 0, 1, … N).
LEFT: _____________________ - - - - - - - - - - - - - - - - - - - - ->
RIGHT: - - - - - - - - - - - - - - - - - - - - -> _____________________
BOTH: - - - - - ———————- - - - - ->
The position and length identifies where the solid line is, taking as the origin (for “position” reference) the initial coordinate of the lane. Length must be lower than or equal to lane length.
<B>Special Cases</B> If length is -1.0 means that all the remain lane length will be used for the solid lane (that is, from “position” to lane length).
Synopsis¶
Methods¶
def
__init__()def
getLength()def
getLineType()def
getPosition()def
isSelected()def
setLength()def
setLineType()def
setPosition()def
setSelected()
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 GKSectionLaneSolidLineType¶
The solid line position
- __init__()¶
Returns the solid line length
- getLineType()¶
- Return type:
Returns the line type, which indicates the side position (left, right or both)
Returns the relative position from the beginning of the section
Returns if the object is selected or not
- setLength(value)¶
- Parameters:
value – float
Sets the solid line length
- setLineType(value)¶
- Parameters:
value –
GKSectionLaneSolidLineType
Sets the line type, which indicates the side position (left, right or both)
- setPosition(value)¶
- Parameters:
value – float
Sets the relative position from the beginning of the section
- setSelected(newState)¶
- Parameters:
newState – bool
Is the object selected?… Note that is selected by model and not by view. This means that a selected object will appear selected in all the views.
See also