Class: InkBuilderAsync
PathBuilding.InkBuilderAsync()
Async path builder implementation
Constructor
new InkBuilderAsync()
Properties:
Name | Type | Description |
---|---|---|
closed | boolean | Is builder capable to build. When is false, open should be executed. |
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:
Name | Type | Attributes | Description |
---|---|---|---|
additionSensorPoint | InkInput.SensorPoint | ||
predictionSensorPoint | InkInput.SensorPoint | <optional> |
Overrides:
build()
This processing is suitable for low performance devices.This approach can affect drawing performance and this could results to unwanted latency.Opened threads will balance hardware usage.
Overrides:
(async) buildChain()
Suitable for sensor data building where build segment is only one - the whole stroke
close()
Terminate all underlying workers
configure(settings)
Configures ink building process
Parameters:
Name | Type | Description |
---|---|---|
settings | PathBuilding.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:
Name | Type | Description |
---|---|---|
sensorPoint | InkInput.SensorPoint |
Overrides:
(abstract) onComplete(pathSegment)
Path processing build callback
Parameters:
Name | Type | Description |
---|---|---|
pathSegment | PathBuilding.PathSegment | Path part for current animation frame |
(async) open()
Allocate underlying workers
(abstract) processSegment()
Process segment through the pipeline
Overrides:
(async) processSpline(spline) → PathBuilding.Pipeline.DataOutput
Process spline through pipeline
Parameters:
Name | Type | Description |
---|---|---|
spline | PathBuilding.Spline |
Returns:
Processed control points
Type
PathBuilding.Pipeline.DataOutput