java.lang.Object
de.grogra.imp3d.objects.PolygonsBase
- All Implemented Interfaces:
ContextDependent,Polygons,Polygonization,Serializable
- Direct Known Subclasses:
PolygonMesh
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:
-
Field Summary
Fields inherited from interface de.grogra.imp3d.Polygonization
COMPUTE_NORMALS, COMPUTE_UV -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether this object actually depends on context.intgetStamp()voidwriteStamp(Cache.Entry cache, GraphState gs) Writes a stamp of the context intocache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.imp3d.Polygonization
polygonize
-
Constructor Details
-
PolygonsBase
public PolygonsBase()
-
-
Method Details
-
dependsOnContext
public boolean dependsOnContext()Description copied from interface:ContextDependentDetermines whether this object actually depends on context.- Specified by:
dependsOnContextin interfaceContextDependent- Returns:
trueiff this object depends on context
-
writeStamp
Description copied from interface:ContextDependentWrites a stamp of the context intocache. Based on this stamp, a cache detects whether the context of this object has changed or not.- Specified by:
writeStampin interfaceContextDependent- Parameters:
cache- a cache entry to write the stampgs- the current graph state
-
getStamp
public int getStamp()
-