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:
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:
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: