Table of Contents

Class InputNodeProcessor<T>

Namespace
FlowGraph.Core.DataFlow
Assembly
FlowGraph.Core.dll

A simple processor for nodes that only output values (no processing needed). Use this for input nodes like color pickers, sliders, text inputs, etc.

public class InputNodeProcessor<T> : NodeProcessor, INodeProcessor

Type Parameters

T

The type of value this node outputs.

Inheritance
InputNodeProcessor<T>
Implements
Inherited Members

Constructors

InputNodeProcessor(Node, string, T?)

Creates a new input node processor.

public InputNodeProcessor(Node node, string outputPortId = "out", T? initialValue = default)

Parameters

node Node

The node.

outputPortId string

The output port ID.

initialValue T

The initial value.

Properties

AutoExecute

Gets whether this processor should auto-execute when inputs change.

public override bool AutoExecute { get; }

Property Value

bool

OutputPort

Gets the output port.

public ReactivePort<T> OutputPort { get; }

Property Value

ReactivePort<T>

Value

Gets or sets the output value.

public T? Value { get; set; }

Property Value

T

Methods

Process()

Processes inputs and updates outputs. Called automatically when any input changes (if auto-execute is enabled).

public override void Process()