public class InterpolateStrokeFilter extends StrokeFilter
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_SPACING |
PROPERTY_KEY| Constructor and Description |
|---|
InterpolateStrokeFilter()
Create a InterpolateStrokeFilter with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
TimedStroke |
apply(TimedStroke s)
Interpolate the given stroke such that no 2 consecutive points
in the stroke has a distance greater than the specified
spacing.
|
double |
getSpacing()
Return the spacing parameter.
|
static TimedStroke |
interpolate(TimedStroke s)
Interpolate the points in the given stroke using the default
spacing value (20.0).
|
static TimedStroke |
interpolate(TimedStroke s,
double spacing)
Interpolate the points in the given stroke using the specified
spacing value.
|
void |
setSpacing(double val)
Set the spacing value for adding interpolated points.
|
public static final double DEFAULT_SPACING
public InterpolateStrokeFilter()
public TimedStroke apply(TimedStroke s)
apply in class StrokeFilterpublic static TimedStroke interpolate(TimedStroke s)
public static TimedStroke interpolate(TimedStroke s, double spacing)
public double getSpacing()
public void setSpacing(double val)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.