Skip to main content

Class: BrushApplier

PathBuilding.Pipeline.BrushApplier(brush)

For each sample of the interpolated spline the BrushApplier creates a transformation based on the sample data and transforms the brush prototype.

Constructor

new BrushApplier(brush)

Parameters:
NameTypeDescription
brushRendering.2D.Brush2D

Since:

  • version 3.0

Extends

Methods

process(input, typeopt, lastSegmentopt)

Invokes input processing of particular implementation

Parameters:
NameTypeAttributesDefaultDescription
inputPathBuilding.Pipeline.InputNewly added stroke data that must be processed
typePathBuilding.Pipeline.SegmentType<optional>DataSequenceProcessor.SegmentType.INTEGRALInput type
lastSegmentboolean<optional>trueApplicable for SegmentType.ADDITION only, describe end of the input

Overrides:

reset()

Resets the processor to its initial state

Overrides:

Type Definitions

Input

BrushApplier input type

Type:

Output

BrushApplier output type

Type:

PipelineStage

Type:
Properties:
NameTypeAttributesDefaultDescription
indexint<optional>5
previousPathBuilding.Pipeline.SplineInterpolator
nextPathBuilding.Pipeline.ConvexHullChainProducer<optional>

Home