Line

class omni.ui.scene.Line

Bases: AbstractShape

Methods

__init__(*args, **kwargs)

Overloaded function.

get_gesture_payload(*args, **kwargs)

Overloaded function.

Attributes

color

The line color.

end

The end point of the line.

gesture_payload

Contains all the information about the intersection.

intersection_thickness

The thickness of the line for the intersection.

start

The start point of the line.

thickness

The line thickness.

__init__(*args, **kwargs)

Overloaded function.

  1. __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.

  1. __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.

  1. get_gesture_payload(self: omni.ui_scene._scene.Line) -> omni.ui_scene._scene.LineGesturePayload

Contains all the information about the intersection.

  1. 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.