GraphNodeDelegate

class omni.kit.widget.graph.graph_node_delegate.GraphNodeDelegate

Bases: GraphNodeDelegateRouter

The delegate with the Omniverse design that has both full and collapsed states.

Methods

__init__()

get_style()

Return style that can be used with this delegate

specialized_color_style(name, color, icon[, ...])

Return part of the style that has everything to color special node type.

specialized_port_style(name, color)

Return part of the style that has everything to color the customizable part of the port.

__init__()
static get_style()

Return style that can be used with this delegate

static specialized_color_style(name, color, icon, icon_tint_color=None)

Return part of the style that has everything to color special node type.

Parameters
  • name – Node type

  • color – Node color

  • icon – Filename to the icon the node type should display

  • icon_tint_color – Icon tint color

static specialized_port_style(name, color)

Return part of the style that has everything to color the customizable part of the port.

Parameters
  • name – Port type type

  • color – Port color