GraphNode¶
-
class
guerilla.GraphNode¶ Bases:
guerilla.SelectableNodeGraphNode is the base class for nodes in a
GraphNode-
createinput()¶ Create a
GraphInputin the nodeThis method creates a new GraphInput in the node, after the last existing one. This method requiresthe getinputclassname method to be implemented.
return: The created input rtype: GraphInput
-
createoutput()¶ Create a
GraphOutputin the nodeThis method creates a new GraphOutput in the node, after the last existing one. This method requiresthe getoutputclassname method to be implemented.
return: The created output rtype: GraphOutput
-
getinput(name)¶ Get an input by its name
Parameters: name (str) – The name of the input to get Returns: The input with matching name Return type: GraphInput
-
getinputclassname()¶ Return the name of the
GraphInputclass to useReturns: The class name Return type: str
-
getinputs()¶ List the node’s inputs
Returns: The array of inputs in the node Return type: { GraphInput}
-
getoutput(name)¶ Get an output by its name
Parameters: name (str) – The name of the output to get Returns: The output with matching name Return type: GraphOutput
-
getoutputclassname()¶ Return the name of the
GraphOutputclass to useReturns: The class name Return type: str
-
getoutputs()¶ List the node’s outputs
Returns: The array of outputs in the node Return type: { GraphOutput}
-
inputs(*args)¶ An iterator on node’s inputs
Available arguments:
Return type: it or
Return type: it
-
isgraphparent(other)¶ Indicate if the other node is dependent on this node (i.e. if an output of self is directly/indirectly connected into any input of other.)
Parameters: other (GraphNode) – The other node Return type: bool
-
removeinput(string)¶ Remove a
GraphInputof the nodeParameters: string (name) – The name of the input to remove
-
removeoutput(string)¶ Remove a
GraphOutputof the nodeParameters: string (name) – The name of the output to remove
-