de.grogra.rgg
Class SurfaceRef

java.lang.Object
  extended by de.grogra.persistence.ShareableBase
      extended by de.grogra.pf.registry.ItemReference
          extended by de.grogra.rgg.SurfaceRef
All Implemented Interfaces:
ContextDependent, BSplineSurface, KnotVector, VertexGrid, VertexSet, Manageable, Shareable

public class SurfaceRef
extends ItemReference
implements BSplineSurface


Nested Class Summary
static class SurfaceRef.Type
           
 
Field Summary
static SurfaceRef.Type $TYPE
           
 
Fields inherited from class de.grogra.pf.registry.ItemReference
item, itemResolved, name$FIELD, object, objectResolved
 
Constructor Summary
SurfaceRef(java.lang.String name)
           
 
Method Summary
 boolean dependsOnContext()
          Determines whether this object actually depends on context.
 int getDimension(GraphState gs)
           
 float getKnot(int dim, int index, GraphState gs)
           
 ManageableType getManageableType()
           
 int getUDegree(GraphState gs)
           
 int getUSize(GraphState gs)
           
 int getVDegree(GraphState gs)
           
 int getVertex(float[] out, int index, GraphState gs)
           
 int getVertexIndex(int u, int v, GraphState gs)
           
 int getVSize(GraphState gs)
           
 boolean isRational(GraphState gs)
           
 java.lang.Object manageableWriteReplace()
           
 BSplineSurface resolve()
           
 void writeStamp(Cache.Entry cache, GraphState gs)
          Writes a stamp of the context into cache.
 
Methods inherited from class de.grogra.pf.registry.ItemReference
createItem, equals, getName, hashCode, resolveItem, resolveObject
 
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, removeReference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$TYPE

public static final SurfaceRef.Type $TYPE
Constructor Detail

SurfaceRef

public SurfaceRef(java.lang.String name)
Method Detail

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

getDimension

public int getDimension(GraphState gs)
Specified by:
getDimension in interface VertexSet

getKnot

public float getKnot(int dim,
                     int index,
                     GraphState gs)
Specified by:
getKnot in interface KnotVector

getManageableType

public ManageableType getManageableType()
Specified by:
getManageableType in interface Manageable

getUDegree

public int getUDegree(GraphState gs)
Specified by:
getUDegree in interface BSplineSurface

getUSize

public int getUSize(GraphState gs)
Specified by:
getUSize in interface VertexGrid

getVDegree

public int getVDegree(GraphState gs)
Specified by:
getVDegree in interface BSplineSurface

getVertex

public int getVertex(float[] out,
                     int index,
                     GraphState gs)
Specified by:
getVertex in interface VertexSet

getVertexIndex

public int getVertexIndex(int u,
                          int v,
                          GraphState gs)
Specified by:
getVertexIndex in interface VertexGrid

getVSize

public int getVSize(GraphState gs)
Specified by:
getVSize in interface VertexGrid

isRational

public boolean isRational(GraphState gs)
Specified by:
isRational in interface VertexSet

manageableWriteReplace

public java.lang.Object manageableWriteReplace()
Specified by:
manageableWriteReplace in interface Manageable
Overrides:
manageableWriteReplace in class ShareableBase

resolve

public BSplineSurface resolve()

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