Class DotsNodeModel<T>
Quickly define a node model from a runtime node by subclassing this. It owns (and serializes) an instance of the runtime node that will be used during translation. However that instance's port indices will be remapped during translation. Having to define them one by one means we could keep the same model class with a different base class in the future if we realize it won't be a 1 to 1 mapping (eg. a Mul node model might output a MulInt, MulMatrix, ... runtime node)
Implements
Inherited Members
NodeModel.m_InputConstantsValues
NodeModel.m_PreviousInputs
NodeModel.m_PreviousOutputs
NodeModel.Move(Vector2)
NodeModel.ChangeColor(Color)
NodeModel.VariableString
NodeModel.VSGraphModel
Namespace: DotsStencil
Assembly: solution.dll
Syntax
public abstract class DotsNodeModel<T> : BaseDotsNodeModel, ISerializationCallbackReceiver, IHasProgress, IHasTitle, ICollapsible, IHasIOPorts, IHasPorts, IGTFNodeModel, IGTFGraphElementModel, ISelectable, IPositioned, IDeletable, IDroppable, ICopiable, IDotsNodeModel, INodeModel, IGraphElementModelWithGuid, IGraphElementModel, IUndoRedoAware, IPropertyVisitorNodeTarget where T : struct, INode
Type Parameters
Name | Description |
---|---|
T |
Constructors
Name | Description |
---|---|
DotsNodeModel() |
Properties
Name | Description |
---|---|
HasProgress | |
NodeType | |
Target | |
Title | |
TypedNode |
Methods
Name | Description |
---|---|
IsExcluded(object) |