de.grogra.math
Class IsoCurve

java.lang.Object
  extended by de.grogra.persistence.ShareableBase
      extended by de.grogra.graph.impl.ContextDependentBase
          extended by de.grogra.math.IsoCurve
All Implemented Interfaces:
ContextDependent, BSplineCurve, KnotVector, VertexList, VertexSet, Manageable, Shareable

public class IsoCurve
extends ContextDependentBase
implements BSplineCurve


Nested Class Summary
static class IsoCurve.Type
           
 
Field Summary
static IsoCurve.Type $TYPE
           
static SCOType.Field direction$FIELD
           
static SCOType.Field parameter$FIELD
           
static SCOType.Field surface$FIELD
           
 
Constructor Summary
IsoCurve()
           
IsoCurve(BSplineSurface surface)
           
 
Method Summary
 boolean dependsOnContext()
          Determines whether this object actually depends on context.
 int getDegree(GraphState gs)
           
 int getDimension(GraphState gs)
           
 float getKnot(int dim, int index, GraphState gs)
           
 ManageableType getManageableType()
           
 float getParameter()
           
 int getSize(GraphState gs)
           
 BSplineSurface getSurface()
           
 int getVertex(float[] out, int index, GraphState gs)
           
 boolean isDirection()
           
 boolean isRational(GraphState gs)
           
 void setDirection(boolean value)
           
 void setParameter(float value)
           
 void setSurface(BSplineSurface value)
           
 void writeStamp(Cache.Entry cache, GraphState gs)
          Writes a stamp of the context into cache.
 
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$TYPE

public static final IsoCurve.Type $TYPE

direction$FIELD

public static final SCOType.Field direction$FIELD

parameter$FIELD

public static final SCOType.Field parameter$FIELD

surface$FIELD

public static final SCOType.Field surface$FIELD
Constructor Detail

IsoCurve

public IsoCurve()

IsoCurve

public IsoCurve(BSplineSurface surface)
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

getDegree

public int getDegree(GraphState gs)
Specified by:
getDegree in interface BSplineCurve

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

getParameter

public float getParameter()

getSize

public int getSize(GraphState gs)
Specified by:
getSize in interface VertexList

getSurface

public BSplineSurface getSurface()

getVertex

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

isDirection

public boolean isDirection()

isRational

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

setDirection

public void setDirection(boolean value)

setParameter

public void setParameter(float value)

setSurface

public void setSurface(BSplineSurface value)

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
Overrides:
writeStamp in class ContextDependentBase
Parameters:
cache - a cache entry to write the stamp
gs - the current graph state