new GraphNode()
Base class from which all processing and source nodes are derrived.
- Source:
Members
destroyed
Get whether the node has been destroyed or not.
- Source:
displayName
Get a string representation of the class name.
- Source:
inputNames
Get the names of the inputs to this node.
- Source:
inputs
Get an array of all the nodes which connect to this node.
- Source:
maximumConnections
The maximum number of connections that can be made to this node. If there is not limit this will return Infinity.
- Source:
outputs
Get an array of all the nodes which this node outputs to.
- Source:
Methods
connect(targetNode, targetPortopt)
Connect this node to the targetNode
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
targetNode |
GraphNode | the node to connect. |
|
targetPort |
number | String |
<optional> |
the port on the targetNode to connect to, this can be an index, a string identifier, or undefined (in which case the next available port will be connected to). |
- Source:
destroy()
Destory this node, removing it from the graph.
- Source:
disconnect(targetNodeopt)
Disconnect this node from the targetNode. If targetNode is undefind remove all out-bound connections.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
targetNode |
GraphNode |
<optional> |
the node to disconnect from. If undefined, disconnect from all nodes. |
- Source: