AbstractManipulatorModel#

class omni.ui.scene.AbstractManipulatorModel#

Bases: pybind11_object

Bridge to data. Operates with double and int arrays. No strings. No tree, it’s a flat list of items. Manipulator requires the model has specific items.

Methods

__init__(self)

add_item_changed_fn(self, arg0)

Adds the function that will be called every time the value changes.

get_as_bool(self, arg0)

Shortcut for `get_as_ints` that returns the first item of the list.

get_as_float(self, arg0)

Shortcut for `get_as_floats` that returns the first item of the list.

get_as_floats(self, arg0)

Returns the Float values of the item.

get_as_int(self, arg0)

Shortcut for `get_as_ints` that returns the first item of the list.

get_as_ints(self, arg0)

Returns the int values of the item.

get_item(self, arg0)

Returns the items that represents the identifier.

remove_item_changed_fn(self, arg0)

Remove the callback by its id.

set_bool(self, arg0, arg1)

Shortcut for `set_ints` that sets an array with the size of one.

set_float(self, arg0, arg1)

Shortcut for `set_floats` that sets an array with the size of one.

set_floats(self, arg0, arg1)

Sets the Float values of the item.

set_int(self, arg0, arg1)

Shortcut for `set_ints` that sets an array with the size of one.

set_ints(self, arg0, arg1)

Sets the int values of the item.

subscribe_item_changed_fn(self, arg0)

Adds the function that will be called every time the value changes.

__init__(
self: omni.ui_scene._scene.AbstractManipulatorModel,
) None#
add_item_changed_fn(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: Callable[[omni.ui_scene._scene.AbstractManipulatorModel, omni.ui_scene._scene.AbstractManipulatorItem], None],
) int#

Adds the function that will be called every time the value changes. The id of the callback that is used to remove the callback.

get_as_bool(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
) bool#

Shortcut for `get_as_ints` that returns the first item of the list.

get_as_float(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
) float#

Shortcut for `get_as_floats` that returns the first item of the list.

get_as_floats(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
) List[float]#

Returns the Float values of the item.

get_as_int(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
) int#

Shortcut for `get_as_ints` that returns the first item of the list.

get_as_ints(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
) List[int]#

Returns the int values of the item.

get_item(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: str,
) omni.ui_scene._scene.AbstractManipulatorItem#

Returns the items that represents the identifier.

remove_item_changed_fn(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: int,
) None#

Remove the callback by its id.

### Arguments:

`id :`

The id that addValueChangedFn returns.

set_bool(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
arg1: bool,
) None#

Shortcut for `set_ints` that sets an array with the size of one.

set_float(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
arg1: float,
) None#

Shortcut for `set_floats` that sets an array with the size of one.

set_floats(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
arg1: List[float],
) None#

Sets the Float values of the item.

set_int(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
arg1: int,
) None#

Shortcut for `set_ints` that sets an array with the size of one.

set_ints(
self: omni.ui_scene._scene.AbstractManipulatorModel,
arg0: handle,
arg1: List[int],
) None#

Sets the int values of the item.

subscribe_item_changed_fn(
self: AbstractManipulatorModel,
arg0: Callable[[omni.ui_scene._scene.AbstractManipulatorModel, omni.ui_scene._scene.AbstractManipulatorItem], None],
) carb._carb.Subscription#

Adds the function that will be called every time the value changes. The id of the callback that is used to remove the callback.