Skip to main content

Class: InkBuilder

PathBuilding.InkBuilder()

Path builder implementation

Constructor

new InkBuilder()

Extends

Methods

abort()

Aborts pipeline processing. Reset state and start over.When InputDevice is configured close streams with true as aborted argument.

Overrides:

add(additionSensorPoint, predictionSensorPointopt)

Adds input in pipeline to be processed

Parameters:
NameTypeAttributesDescription
additionSensorPointInkInput.SensorPoint
predictionSensorPointInkInput.SensorPoint<optional>

Overrides:

build() → PathBuilding.PathSegment

Process data segment through the pipeline

Overrides:

Returns:

Processed pipeline segment

Type

PathBuilding.PathSegment

configure(settings)

Configures ink building process

Parameters:
NameTypeDescription
settingsPathBuilding.InkBuilderSettings

Overrides:

ignore(sensorPoint)

This method is relevant with underlying InputDevice when is configured.When device has very high input rate, some of samples could be ignored (downsampling).This could affect performance, even to make stroke looks better.This input should be registerd in the ink stream without to affect pipeline.

Parameters:
NameTypeDescription
sensorPointInkInput.SensorPoint

Overrides:

(abstract) onComplete(pathSegment)

Path processing build callback. Implemntation is optional.

Parameters:
NameTypeDescription
pathSegmentPathBuilding.PathSegmentPath part for current animation frame

(abstract) processSegment()

Process segment through the pipeline

Overrides:

processSpline(spline) → PathBuilding.Pipeline.DataOutput

Process spline through pipeline

Parameters:
NameTypeDescription
splinePathBuilding.Spline
Returns:

Processed control points

Type

PathBuilding.Pipeline.DataOutput

Home