Module imp3d

Class PolygonsBase

java.lang.Object
de.grogra.imp3d.objects.PolygonsBase
All Implemented Interfaces:
ContextDependent, Polygons, Polygonization, Serializable
Direct Known Subclasses:
PolygonMesh

public abstract class PolygonsBase extends Object implements Polygons, Serializable
This abstract class can be used as superclass for user-defined polygonal data. The method Polygonization.polygonize(de.grogra.graph.ContextDependent, de.grogra.graph.GraphState, de.grogra.imp3d.PolygonArray, int, float) has to be implemented.
Author:
Ole Kniemeyer
See Also:
  • Constructor Details

    • PolygonsBase

      public PolygonsBase()
  • Method Details

    • dependsOnContext

      public boolean dependsOnContext()
      Description copied from interface: ContextDependent
      Determines whether this object actually depends on context.
      Specified by:
      dependsOnContext in interface ContextDependent
      Returns:
      true iff this object depends on context
    • writeStamp

      public void writeStamp(Cache.Entry cache, GraphState gs)
      Description copied from interface: ContextDependent
      Writes a stamp of the context into cache. Based on this stamp, a cache detects whether the context of this object has changed or not.
      Specified by:
      writeStamp in interface ContextDependent
      Parameters:
      cache - a cache entry to write the stamp
      gs - the current graph state
    • getStamp

      public int getStamp()