GraphPortDescription#

class omni.kit.widget.graph.GraphPortDescription(
port,
level,
relative_position,
parent_child_count,
connected_source=None,
connected_target=None,
)#

Bases: object

Represents the description of a graph port with its various characteristics.

Parameters:
  • port – The graphical representation of the port.

  • level – The hierarchy level of the port within the graph.

  • relative_position – The position of the port relative to its node.

  • parent_child_count – The count of either parent or child connections.

  • connected_source – The source node this port is connected to, if any.

  • connected_target – The target node this port is connected to, if any.

Methods

__init__(port, level, relative_position, ...)

Initialize a description for a graph port.

__init__(
port,
level,
relative_position,
parent_child_count,
connected_source=None,
connected_target=None,
)#

Initialize a description for a graph port.

Parameters:
  • port – The port object being described.

  • level – The hierarchical level of the port within the graph.

  • relative_position – The position of the port relative to its node.

  • parent_child_count – The number of children the parent of this port has.

  • connected_source – The source connection of the port, if any.

  • connected_target – The target connection of the port, if any.