public class NormalizeTimeStrokeFilter extends StrokeFilter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMESTEP
The default timestep, 10ms.
|
PROPERTY_KEY
Constructor and Description |
---|
NormalizeTimeStrokeFilter()
Interpolate to the default timestep.
|
NormalizeTimeStrokeFilter(int timestep)
Interpolate to the given time step (in milliseconds)
|
Modifier and Type | Method and Description |
---|---|
TimedStroke |
apply(TimedStroke s)
Interpolate a timed stroke so that it contains
a specified number of points.
|
int |
getTimestep()
Return the timestep that the filter interpolates to in millisecs.
|
static TimedStroke |
interpolate(TimedStroke s)
Normalize an individual stroke to time increments according
to DEFAULT_TIMESTEP.
|
static TimedStroke |
interpolate(TimedStroke s,
int timestep)
Normalize an individual stroke to time increments given
by timestep.
|
void |
setTimestep(int timestep)
Set the timestep (milliseconds) that the filter interpolates to.
|
public NormalizeTimeStrokeFilter(int timestep)
public NormalizeTimeStrokeFilter()
public int getTimestep()
public void setTimestep(int timestep)
public TimedStroke apply(TimedStroke s)
apply
in class StrokeFilter
public static TimedStroke interpolate(TimedStroke s)
public static TimedStroke interpolate(TimedStroke s, int timestep)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.