Table of Contents

Class GenericNodeTemplate

Namespace
Ceres.Graph
Assembly
Ceres.Graph.dll

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

portValueType Type

Port value type, null if no port dropped

Returns

bool

GetAvailableArguments(Type)

Get available argument types based on port value type

public abstract Type[] GetAvailableArguments(Type portValueType)

Parameters

portValueType Type

Port 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

portValueType Type

Port value type, null if no port dropped

selectArgumentType Type

Returns

Type[]

GetGenericNodeBaseName(string, Type[])

protected virtual string GetGenericNodeBaseName(string label, Type[] argumentTypes)

Parameters

label string
argumentTypes Type[]

Returns

string

GetGenericNodeEntryName(string, Type)

Make generic node view editor name

public virtual string GetGenericNodeEntryName(string label, Type selectArgumentType)

Parameters

label string
selectArgumentType Type

Returns

string

GetGenericNodeName(string, Type[])

Make generic node view editor name

public virtual string GetGenericNodeName(string label, Type[] argumentTypes)

Parameters

label string
argumentTypes Type[]

Returns

string

GetTargetName(Type[])

protected virtual string GetTargetName(Type[] argumentTypes)

Parameters

argumentTypes Type[]

Returns

string

RequirePort()

Whether this template require to know port value type

public virtual bool RequirePort()

Returns

bool