• Cmn
    abstract class Node
Known direct subclasses
TerminalNode

A TerminalNode is a terminal node in the graph; it does not produce a value and cannot be used as an input to other Nodes, but instead applies a modification to the brush tip state.

ValueNode

A ValueNode is a non-terminal node in the graph; it produces a value to be consumed as an input by other Nodes, and may itself depend on zero or more inputs.

Known indirect subclasses
BinaryOpNode

A ValueNode that combines two other values with a binary operation.

ConstantNode

A ValueNode that produces a constant output value.

DampingNode

A ValueNode that damps changes in an input value, causing the output value to slowly follow changes in the input value over a specified time or distance.

IntegralNode

A ValueNode that integrates an input value over time or distance.

InterpolationNode

A ValueNode that interpolates between two inputs based on a parameter input.

NoiseNode

A ValueNode that produces a smooth random function.

PolarTargetNode

A TerminalNode that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property.

ResponseNode

A ValueNode that maps an input value through a response curve.

SourceNode

A ValueNode that gets data from the stroke input batch.

TargetNode

A TerminalNode that consumes a single input to affect a scalar brush tip property.

ToolTypeFilterNode

A ValueNode for filtering out a branch of a behavior graph unless this stroke's tool type is in the specified set.


Represents one node in a androidx.ink.brush.BrushBehavior's expression graph. Node objects are immutable and their inputs must be chosen at construction time; therefore, they can only ever be assembled into an acyclic graph.

Summary

Public properties

List<ValueNode>

The ordered list of inputs that this node directly depends on.

Cmn

Public properties

inputs

val inputsList<ValueNode>

The ordered list of inputs that this node directly depends on.