Line
- class omni.ui.scene.Line
Bases:
AbstractShape
Methods
__init__
(*args, **kwargs)Overloaded function.
get_gesture_payload
(*args, **kwargs)Overloaded function.
Attributes
The line color.
The end point of the line.
Contains all the information about the intersection.
The thickness of the line for the intersection.
The start point of the line.
The line thickness.
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: omni.ui_scene._scene.Line, **kwargs) -> None
A simple line.
### Arguments:
- `start :`
The start point of the line
- `end :`
The end point of the line
- `kwargsdict`
See below
### Keyword Arguments:
- `start`
The start point of the line.
- `end`
The end point of the line.
- `color`
The line color.
- `thickness`
The line thickness.
- `intersection_thickness`
The thickness of the line for the intersection.
- `gesture`
All the gestures assigned to this shape.
- `gestures`
All the gestures assigned to this shape.
- `visible`
This property holds whether the item is visible.
__init__(self: omni.ui_scene._scene.Line, arg0: object, arg1: object, **kwargs) -> None
A simple line.
### Arguments:
- `start :`
The start point of the line
- `end :`
The end point of the line
- `kwargsdict`
See below
### Keyword Arguments:
- `start`
The start point of the line.
- `end`
The end point of the line.
- `color`
The line color.
- `thickness`
The line thickness.
- `intersection_thickness`
The thickness of the line for the intersection.
- `gesture`
All the gestures assigned to this shape.
- `gestures`
All the gestures assigned to this shape.
- `visible`
This property holds whether the item is visible.
- get_gesture_payload(*args, **kwargs)
Overloaded function.
get_gesture_payload(self: omni.ui_scene._scene.Line) -> omni.ui_scene._scene.LineGesturePayload
Contains all the information about the intersection.
get_gesture_payload(self: omni.ui_scene._scene.Line, arg0: omni.ui_scene._scene.GestureState) -> omni.ui_scene._scene.LineGesturePayload
Contains all the information about the intersection at the specific state.
- property color
The line color.
- property end
The end point of the line.
- property gesture_payload
Contains all the information about the intersection.
- property intersection_thickness
The thickness of the line for the intersection.
- property start
The start point of the line.
- property thickness
The line thickness.