VectorFloatComponentModel
- class omni.kit.widget.settings.settings_model.VectorFloatComponentModel(parent, vec_index, immediate_mode)
Bases:
SimpleFloatModel
Methods
__init__
(parent, vec_index, immediate_mode)VectorFloatComponentModel init function.
get_value_as_float
(self)Return the float representation of the value.
set_range
([min_val, max_val])set the allowable range for the setting.
set_value
(*args, **kwargs)Overloaded function.
Attributes
- __init__(parent, vec_index, immediate_mode)
VectorFloatComponentModel init function.
- get_value_as_float(self: omni.ui._ui.AbstractValueModel) float
Return the float representation of the value.
- set_range(min_val=None, max_val=None)
set the allowable range for the setting. This is more restrictive than the UI min/max setting which still lets you set out of range values using the keyboard (e.g click and type in slider)
- set_value(*args, **kwargs)
Overloaded function.
set_value(self: omni.ui._ui.AbstractValueModel, value: bool) -> None
Set the value.
set_value(self: omni.ui._ui.AbstractValueModel, value: int) -> None
Set the value.
set_value(self: omni.ui._ui.AbstractValueModel, value: float) -> None
Set the value.
set_value(self: omni.ui._ui.AbstractValueModel, value: str) -> None
Set the value.