Module imp3d

Class LineSegmentizationCache

java.lang.Object
de.grogra.graph.Cache
de.grogra.imp3d.LineSegmentizationCache

public class LineSegmentizationCache extends Cache
This class can be used to cache the result of segmentization of LineSegmentizable shapes.
Author:
Ole Kniemeyer
  • Constructor Details

  • Method Details

    • get

      public LineArray get(Object object, boolean asNode, LineSegmentizable ls)
      Returns the LineArray of a LineSegmentizable in the given object context.
      Parameters:
      object - the context
      asNode - true if object is a node, false if object is an edge
      ls - the segmentizable
      Returns:
      a LineArray, computed by ls
    • createEntry

      protected Cache.Entry createEntry(Object obj, boolean node, ContextDependent dep, Object strategy)
      Specified by:
      createEntry in class Cache