Class ScriptNodeViewFactory
Factory for script node views.
Inheritance
object
ScriptNodeViewFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.ScriptGraph.Editor
Syntax
public class ScriptNodeViewFactory
Constructors
ScriptNodeViewFactory(ScriptNodeViewTypesRegistry)
Create the factory.
Declaration
public ScriptNodeViewFactory(ScriptNodeViewTypesRegistry nodeViewTypesRegistry)
Parameters
Type | Name | Description |
---|---|---|
ScriptNodeViewTypesRegistry | nodeViewTypesRegistry | The node types registry. |
Methods
CreateNodeViewForNode(IScriptNode, ScriptGraphView)
Creates a new node view for the given node.
Declaration
public ScriptNodeView CreateNodeViewForNode(IScriptNode node, ScriptGraphView graphView)
Parameters
Type | Name | Description |
---|---|---|
IScriptNode | node | The node. |
ScriptGraphView | graphView | The graph view. |
Returns
Type | Description |
---|---|
ScriptNodeView | The new node view. |
CreateNodeViewForReferenceNode(ReferenceNode, ScriptGraphView)
Declaration
public ScriptNodeView CreateNodeViewForReferenceNode(ReferenceNode referenceNode, ScriptGraphView scriptGraphView)
Parameters
Type | Name | Description |
---|---|---|
ReferenceNode | referenceNode | |
ScriptGraphView | scriptGraphView |
Returns
Type | Description |
---|---|
ScriptNodeView |