GraphModelBatchPositionHelper
- class omni.kit.widget.graph.graph_model_batch_position_helper.GraphModelBatchPositionHelper
Bases:
object
The model that manages batch position of the items. It can be used to manage the position of multi selection, backdrops and upstreams.
Methods
__init__
()Add the function that is called in batch_position_begin_edit to determine which items to move
Should be called from position_begin_edit to make sure position_begin_edit is called for all the selected nodes
batch_position_end_edit
(item)Should be called from position_begin_edit to make sure position_begin_edit is called for all the selected nodes
batch_set_position
(position[, item])Should be called in the position setter to make sure the position setter is called for all the selected nodes
Attributes
Proxy is the isolation model.
- __init__()
- add_get_moving_items_fn(fn: Callable[[Any], List[Any]])
Add the function that is called in batch_position_begin_edit to determine which items to move
- batch_position_begin_edit(item: Any)
Should be called from position_begin_edit to make sure position_begin_edit is called for all the selected nodes
- batch_position_end_edit(item: Any)
Should be called from position_begin_edit to make sure position_begin_edit is called for all the selected nodes
- batch_set_position(position: List[float], item: Optional[Any] = None)
Should be called in the position setter to make sure the position setter is called for all the selected nodes
- property batch_proxy
Proxy is the isolation model. We need it because it converts calls to input/output nodes.