Class: SplineProducer
PathBuilding.Pipeline.SplineProducer()
Catmull Rom Spline data processor.Provided with a float vectors : for example a sequence of x and y.Produces same kind of float vectors, representing a Catmull-Rom spline.
Constructor
new SplineProducer()
Properties:
Name | Type | Description |
---|---|---|
layout | Array.<PathBuilding.PathPoint.Property> | The path point layout object that specifies the available properties of a path point |
pathPointProps | PathBuilding.PathPointProperties | Static values used when the layout does not include variable ones |
Since:
- version 3.0
Extends
Methods
configure(layout, pathPointPropsopt)
Configures spline building process
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
layout | Array.<PathBuilding.PathPoint.Property> | The path point layout object that specifies the available properties of a path point | ||
pathPointProps | PathBuilding.PathPointProperties | <optional> | Static values used when the layout does not include variable ones |
process(input, typeopt, lastSegmentopt)
Invokes input processing of particular implementation
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input | PathBuilding.Pipeline.Input | Newly added stroke data that must be processed | ||
type | PathBuilding.Pipeline.SegmentType | <optional> | DataSequenceProcessor.SegmentType.INTEGRAL | Input type |
lastSegment | boolean | <optional> | true | Applicable for SegmentType.ADDITION only, describe end of the input |
Overrides:
reset()
Resets the processor to its initial state
Overrides:
Type Definitions
Input
SplineProducer input type
Type:
- Array.<float>
Output
SplineProducer output type
Type:
PipelineStage
Type:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
index | int | <optional> | 3 | |
previous | PathBuilding.Pipeline.Smoother | |||
next | PathBuilding.Pipeline.SplineInterpolator |