CompoundInputOutputNodeDelegate#
- class omni.kit.widget.graph.CompoundInputOutputNodeDelegate#
Bases:
GraphNodeDelegateFull
The delegate for the input/output nodes of the compound.
This class extends the GraphNodeDelegateFull and provides custom functionality for input/output nodes, such as creating context menus for port interactions that allow the user to connect, disconnect, remove, and reorder ports.
Methods
__init__
()Initializes the CompoundInputOutputNodeDelegate with a default context menu.
destroy
()Release any resources and references held by the delegate.
port
(model, node_desc, port_desc)Called to create the middle part of the port.
port_input
(model, node_desc, port_desc)Create the UI representation for an input port and attach the context menu trigger to it.
port_output
(model, node_desc, port_desc)Create the UI representation for an output port and attach the context menu trigger to it.
- __init__()#
Initializes the CompoundInputOutputNodeDelegate with a default context menu.
- destroy()#
Release any resources and references held by the delegate.
- port(
- model,
- node_desc: GraphNodeDescription,
- port_desc: GraphPortDescription,
Called to create the middle part of the port.
- Parameters:
model – The graph model containing the node data.
node_desc (GraphNodeDescription) – Description of the node containing the port.
port_desc (GraphPortDescription) – Description of the port.
- port_input(
- model,
- node_desc: GraphNodeDescription,
- port_desc: GraphPortDescription,
Create the UI representation for an input port and attach the context menu trigger to it.
- Parameters:
model – The graph model.
node_desc (GraphNodeDescription) – The description of the node to which the port belongs.
port_desc (GraphPortDescription) – The description of the port.
- port_output(
- model,
- node_desc: GraphNodeDescription,
- port_desc: GraphPortDescription,
Create the UI representation for an output port and attach the context menu trigger to it.
- Parameters:
model – The graph model.
node_desc (GraphNodeDescription) – The description of the node to which the port belongs.
port_desc (GraphPortDescription) – The description of the port.