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__( ) None #
- add_item_changed_fn(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: Callable[[omni.ui_scene._scene.AbstractManipulatorModel, omni.ui_scene._scene.AbstractManipulatorItem], None],
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,
Shortcut for `get_as_ints` that returns the first item of the list.
- get_as_float(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: handle,
Shortcut for `get_as_floats` that returns the first item of the list.
- get_as_floats(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: handle,
Returns the Float values of the item.
- get_as_int(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: handle,
Shortcut for `get_as_ints` that returns the first item of the list.
- get_as_ints(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: handle,
Returns the int values of the item.
- get_item(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: str,
Returns the items that represents the identifier.
- remove_item_changed_fn(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: int,
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,
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,
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],
Sets the Float values of the item.
- set_int(
- self: omni.ui_scene._scene.AbstractManipulatorModel,
- arg0: handle,
- arg1: int,
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],
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],
Adds the function that will be called every time the value changes. The id of the callback that is used to remove the callback.