de.grogra.imp3d
public class LineSegmentizationCache extends Cache
LineSegmentizable shapes.Cache.Entry| Constructor and Description |
|---|
LineSegmentizationCache(GraphState gs,
float flatness)
Constructs a new cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected Cache.Entry |
createEntry(java.lang.Object obj,
boolean node,
ContextDependent dep,
java.lang.Object strategy) |
LineArray |
get(java.lang.Object object,
boolean asNode,
LineSegmentizable ls)
Returns the
LineArray of a LineSegmentizable
in the given object context. |
clear, clearUnused, getGraphState, getValuepublic LineSegmentizationCache(GraphState gs, float flatness)
LineSegmentizable.segmentize(ContextDependent, GraphState, LineArray, float)
when a cache entry is to be computed.gs - the graph state within which the cache will be usedflatness - the flatness to pass to segmentizeprotected Cache.Entry createEntry(java.lang.Object obj, boolean node, ContextDependent dep, java.lang.Object strategy)
createEntry in class Cachepublic LineArray get(java.lang.Object object, boolean asNode, LineSegmentizable ls)
LineArray of a LineSegmentizable
in the given object context.object - the contextasNode - true if object is a node,
false if object is an edgels - the segmentizableLineArray, computed by ls