GroupNode
- class NodeGraphQt.GroupNode(qgraphics_item=None)
Implemented in
v0.2.0The
NodeGraphQt.GroupNodeclass extends from theNodeGraphQt.BaseNodeclass with the ability to nest other nodes inside of it.
Attributes:
Returns if the group node is expanded or collapsed.
Methods:
Returns the sub graph controller to the group node if initialized or returns None.
Returns the serialized sub graph session.
set_sub_graph_session(serialized_session)Sets the sub graph session data to the group node.
expand()Expand the group node session.
collapse()Collapse the group node session it's expanded child sub graphs.
set_name([name])Set the name of the node.
- property is_expanded
Returns if the group node is expanded or collapsed.
- Returns:
true if the node is expanded.
- Return type:
bool
- get_sub_graph()
Returns the sub graph controller to the group node if initialized or returns None.
- Returns:
sub graph controller.
- Return type:
- get_sub_graph_session()
Returns the serialized sub graph session.
- Returns:
serialized sub graph session.
- Return type:
dict
- set_sub_graph_session(serialized_session)
Sets the sub graph session data to the group node.
- Parameters:
serialized_session (dict) – serialized session.