Port Nodes
NodeGraphQt.SubGraph
that
represent the ports from the parent NodeGraphQt.GroupNode
object.Classes:
The |
|
The |
Hint
Port node objects can be accessed in a expanded
NodeGraphQt.GroupNode
with:
PortInputNode
- class NodeGraphQt.nodes.port_node.PortInputNode(qgraphics_item=None, parent_port=None)
The
PortInputNode
is the node that represents a input port from aNodeGraphQt.GroupNode
when expanded in aNodeGraphQt.SubGraph
.Attributes:
The parent group node port representing this node.
Methods:
add_input
([name, multi_input, display_name, ...])Warning
This is not available for the
PortInputNode
class.add_output
([name, multi_output, ...])- property parent_port
The parent group node port representing this node.
- Returns:
port object.
- Return type:
- add_input(name='input', multi_input=False, display_name=True, color=None, locked=False, painter_func=None)
Warning
This is not available for the
PortInputNode
class.
- add_output(name='output', multi_output=True, display_name=True, color=None, locked=False, painter_func=None)
Warning
This function is called by
NodeGraphQt.SubGraph.expand_group_node()
and is not available for thePortInputNode
class.
PortOutputNode
- class NodeGraphQt.nodes.port_node.PortOutputNode(qgraphics_item=None, parent_port=None)
The
PortOutputNode
is the node that represents a output port from aNodeGraphQt.GroupNode
when expanded in aNodeGraphQt.SubGraph
.Attributes:
The parent group node port representing this node.
Methods:
add_input
([name, multi_input, display_name, ...])add_output
([name, multi_output, ...])Warning
This is not available for the
PortOutputNode
class.- property parent_port
The parent group node port representing this node.
- Returns:
port object.
- Return type:
- add_input(name='input', multi_input=False, display_name=True, color=None, locked=False, painter_func=None)
Warning
This function is called by
NodeGraphQt.SubGraph.expand_group_node()
and is not available for thePortOutputNode
class.