Skip to main content

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:
NameTypeDescription
layoutArray.<PathBuilding.PathPoint.Property>The path point layout object that specifies the available properties of a path point
pathPointPropsPathBuilding.PathPointPropertiesStatic values used when the layout does not include variable ones

Since:

  • version 3.0

Extends

Methods

configure(layout, pathPointPropsopt)

Configures spline building process

Parameters:
NameTypeAttributesDefaultDescription
layoutArray.<PathBuilding.PathPoint.Property>The path point layout object that specifies the available properties of a path point
pathPointPropsPathBuilding.PathPointProperties<optional>Static values used when the layout does not include variable ones

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

SplineProducer input type

Type:
  • Array.<float>

Output

SplineProducer output type

Type:

PipelineStage

Type:
Properties:
NameTypeAttributesDefaultDescription
indexint<optional>3
previousPathBuilding.Pipeline.Smoother
nextPathBuilding.Pipeline.SplineInterpolator

Home