Module imp3d

Class PolygonizationCache

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

public class PolygonizationCache extends Cache
This class can be used to cache the result of polygonization of Polygonizable shapes.
Author:
Ole Kniemeyer
  • Constructor Details

  • Method Details

    • get

      public PolygonArray get(Object object, boolean asNode, Polygonizable p)
      Returns the PolygonArray of a Polygonizable in the given object context.
      Parameters:
      object - the context
      asNode - true if object is a node, false if object is an edge
      p - the polygonizable
      Returns:
      a PolygonArray, computed by p
    • createEntry

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