public class NormalizeLengthStrokeFilter extends StrokeFilter
PROPERTY_KEY
Constructor and Description |
---|
NormalizeLengthStrokeFilter(int numPoints)
Interpolate to the given number of points.
|
Modifier and Type | Method and Description |
---|---|
TimedStroke |
apply(TimedStroke s)
Interpolate a timed stroke so that it contains a certain number
of points (specified through the constructor).
|
int |
getPointCount()
Return the number of points that the filter interpolates to.
|
static TimedStroke |
interpolate(TimedStroke s,
int numPoints)
Interpolate the given stroke to make it the given number of
points.
|
void |
setPointCount(int numPoints)
Set the number of points that the filter interpolates to.
|
public NormalizeLengthStrokeFilter(int numPoints)
public int getPointCount()
public void setPointCount(int numPoints)
public TimedStroke apply(TimedStroke s)
apply
in class StrokeFilter
public static TimedStroke interpolate(TimedStroke s, int numPoints)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.