Class GenericNodeTemplate
Base class for generic node template, class name should match '{node name}_Template'
public abstract class GenericNodeTemplate : IGenericNodeTemplate
- Inheritance
-
GenericNodeTemplate
- Implements
- Inherited Members
Constructors
GenericNodeTemplate()
protected GenericNodeTemplate()
Methods
CanFilterPort(Type)
Whether input port value type is allowed for this template
public virtual bool CanFilterPort(Type portValueType)
Parameters
portValueTypeTypePort value type, null if no port dropped
Returns
GetAvailableArguments(Type)
Get available argument types based on port value type
public abstract Type[] GetAvailableArguments(Type portValueType)
Parameters
portValueTypeTypePort value type, null if no port dropped
Returns
- Type[]
GetGenericArguments(Type, Type)
Get arguments to construct generic node type
public abstract Type[] GetGenericArguments(Type portValueType, Type selectArgumentType)
Parameters
Returns
- Type[]
GetGenericNodeBaseName(string, Type[])
protected virtual string GetGenericNodeBaseName(string label, Type[] argumentTypes)
Parameters
Returns
GetGenericNodeEntryName(string, Type)
Make generic node view editor name
public virtual string GetGenericNodeEntryName(string label, Type selectArgumentType)
Parameters
Returns
GetGenericNodeName(string, Type[])
Make generic node view editor name
public virtual string GetGenericNodeName(string label, Type[] argumentTypes)
Parameters
Returns
GetTargetName(Type[])
protected virtual string GetTargetName(Type[] argumentTypes)
Parameters
argumentTypesType[]
Returns
RequirePort()
Whether this template require to know port value type
public virtual bool RequirePort()