public class StrokeHull extends Object
ConvexHull
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY
The key to a stroke's property table, to store or access
the cached convex hull of a stroke.
|
Constructor and Description |
---|
StrokeHull() |
Modifier and Type | Method and Description |
---|---|
static ConvexHull |
apply(TimedStroke s)
Generate a convex hull object for the specified stroke.
|
static ConvexHull |
hullNoCache(TimedStroke s)
Generate a convex hull object for the specified stroke, but
do not cache it in the stroke's property table.
|
public static String PROPERTY_KEY
public static ConvexHull apply(TimedStroke s)
First check to see if the stroke's property table contains a convex hull. If so, just return the cached hull. This assumes that the stroke does not change. FIXME - this caching is extremely dangerous for incremental recognition. check number of points in stroke? have a force recompute function?
public static ConvexHull hullNoCache(TimedStroke s)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.