java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.impl.ContextDependentBase
de.grogra.math.ProductSurface
- All Implemented Interfaces:
ContextDependent
,BSplineSurface
,KnotVector
,VertexGrid
,VertexSet
,Manageable
,Shareable
- Direct Known Subclasses:
ExtrudedSurface
,SwungSurface
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProductSurface.Type
static final SCOType.Field
static final SCOType.Field
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProductSurface
(BSplineCurve profile, BSplineCurve trajectory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether this object actually depends on context.int
float
getKnot
(int dim, int index, GraphState gs) int
getUDegree
(GraphState gs) int
getUSize
(GraphState gs) int
getVDegree
(GraphState gs) int
getVertexIndex
(int u, int v, GraphState gs) int
getVSize
(GraphState gs) boolean
isRational
(GraphState gs) void
setProfile
(BSplineCurve value) void
setTrajectory
(BSplineCurve value) void
writeStamp
(Cache.Entry cache, GraphState gs) Writes a stamp of the context intocache
.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
Methods inherited from interface de.grogra.persistence.Manageable
getManageableType
-
Field Details
-
$TYPE
-
profile$FIELD
-
trajectory$FIELD
-
-
Constructor Details
-
ProductSurface
protected ProductSurface() -
ProductSurface
-
-
Method Details
-
getProfile
-
setProfile
-
getTrajectory
-
setTrajectory
-
dependsOnContext
public boolean dependsOnContext()Description copied from interface:ContextDependent
Determines whether this object actually depends on context.- Specified by:
dependsOnContext
in interfaceContextDependent
- Returns:
true
iff this object depends on context
-
writeStamp
Description copied from interface:ContextDependent
Writes 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:
writeStamp
in interfaceContextDependent
- Overrides:
writeStamp
in classContextDependentBase
- Parameters:
cache
- a cache entry to write the stampgs
- the current graph state
-
getUDegree
- Specified by:
getUDegree
in interfaceBSplineSurface
-
getVDegree
- Specified by:
getVDegree
in interfaceBSplineSurface
-
getUSize
- Specified by:
getUSize
in interfaceVertexGrid
-
getVSize
- Specified by:
getVSize
in interfaceVertexGrid
-
getVertexIndex
- Specified by:
getVertexIndex
in interfaceVertexGrid
-
getDimension
- Specified by:
getDimension
in interfaceVertexSet
-
getKnot
- Specified by:
getKnot
in interfaceKnotVector
-
isRational
- Specified by:
isRational
in interfaceVertexSet
-