BackdropNode

class NodeGraphQt.BackdropNode(qgraphics_views=None)

The NodeGraphQt.BackdropNode class allows other node object to be nested inside, it’s mainly good for grouping nodes together.

Inheritance diagram of NodeGraphQt.BackdropNode
../_images/backdrop.png

Methods:

on_backdrop_updated(update_prop[, value])

Slot triggered by the "on_backdrop_updated" signal from the node graph.

auto_size()

Auto resize the backdrop node to fit around the intersecting nodes.

wrap_nodes(nodes)

Set the backdrop size to fit around specified nodes.

nodes()

Returns nodes wrapped within the backdrop node.

set_text([text])

Sets the text to be displayed in the backdrop node.

text()

Returns the text on the backdrop node.

set_size(width, height)

Sets the backdrop size.

size()

Returns the current size of the node.

inputs()

outputs()

on_backdrop_updated(update_prop, value=None)

Slot triggered by the “on_backdrop_updated” signal from the node graph.

Parameters:
  • update_prop (str) – update property type.

  • value (object) – update value (optional)

auto_size()

Auto resize the backdrop node to fit around the intersecting nodes.

wrap_nodes(nodes)

Set the backdrop size to fit around specified nodes.

Parameters:

nodes (list[NodeGraphQt.NodeObject]) – list of nodes.

nodes()

Returns nodes wrapped within the backdrop node.

Returns:

list of node under the backdrop.

Return type:

list[NodeGraphQt.BaseNode]

set_text(text='')

Sets the text to be displayed in the backdrop node.

Parameters:

text (str) – text string.

text()

Returns the text on the backdrop node.

Returns:

text string.

Return type:

str

set_size(width, height)

Sets the backdrop size.

Parameters:
  • width (float) – backdrop width size.

  • height (float) – backdrop height size.

size()

Returns the current size of the node.

Returns:

node width, height

Return type:

tuple

inputs()
outputs()