Table of Contents

Class SharedVariableField<TVariable, TKValue>

Namespace
Ceres.Editor.Graph
Assembly
Ceres.Graph.Editor.dll
public abstract class SharedVariableField<TVariable, TKValue> : BaseField<TVariable>, IBindableField where TVariable : SharedVariable<TKValue>, new()

Type Parameters

TVariable
TKValue
Inheritance
SharedVariableField<TVariable, TKValue>
Implements
Derived

Constructors

SharedVariableField(string, Type, FieldInfo)

protected SharedVariableField(string label, Type objectType, FieldInfo fieldInfo)

Parameters

label string
objectType Type
fieldInfo FieldInfo

Properties

ValueField

protected BaseField<TKValue> ValueField { get; }

Property Value

BaseField<TKValue>

value

public override sealed TVariable value { get; set; }

Property Value

TVariable

Methods

BindGraph(CeresGraphView)

public void BindGraph(CeresGraphView graph)

Parameters

graph CeresGraphView

CreateValueField()

protected abstract BaseField<TKValue> CreateValueField()

Returns

BaseField<TKValue>

NotifyValueChange()

protected void NotifyValueChange()

OnRepaint()

protected virtual void OnRepaint()

Repaint()

Repaint SharedVariableField<TVariable, TKValue> and rebind property

public void Repaint()

SetValue(TKValue)

public void SetValue(TKValue newValue)

Parameters

newValue TKValue