java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.impl.ContextDependentBase
de.grogra.math.BSplineOfVertices
- All Implemented Interfaces:
ContextDependent
,BSplineCurve
,KnotVector
,VertexList
,VertexSet
,Manageable
,Shareable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BSplineOfVertices.Type
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
-
Constructor Summary
ConstructorsConstructorDescriptionBSplineOfVertices
(VertexList vertices, int degree, boolean periodic, boolean bezier) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether this object actually depends on context.int
int
getDegree
(GraphState gs) int
float
getKnot
(int dim, int index, GraphState gs) float[]
getKnots()
int
getSize()
int
getSize
(GraphState gs) int
getVertex
(float[] out, int index, GraphState gs) boolean
isBezier()
boolean
boolean
boolean
isRational
(GraphState gs) void
setBezier
(boolean value) void
setDegree
(int value) void
setKnots
(float[] value) void
setPeriodic
(boolean value) void
setRational
(boolean value) void
setSize
(int value) void
setVertices
(VertexList 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
-
Field Details
-
$TYPE
-
vertices$FIELD
-
degree$FIELD
-
periodic$FIELD
-
rational$FIELD
-
bezier$FIELD
-
size$FIELD
-
knots$FIELD
-
-
Constructor Details
-
BSplineOfVertices
public BSplineOfVertices() -
BSplineOfVertices
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
isPeriodic
public boolean isPeriodic() -
setPeriodic
public void setPeriodic(boolean value) -
isRational
public boolean isRational() -
setRational
public void setRational(boolean value) -
isBezier
public boolean isBezier() -
setBezier
public void setBezier(boolean value) -
getDegree
public int getDegree() -
setDegree
public void setDegree(int value) -
getSize
public int getSize() -
setSize
public void setSize(int value) -
getVertices
-
setVertices
-
getKnots
public float[] getKnots() -
setKnots
public void setKnots(float[] value) -
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
-
getVertex
-
getSize
- Specified by:
getSize
in interfaceVertexList
-
getDegree
- Specified by:
getDegree
in interfaceBSplineCurve
-
getKnot
- Specified by:
getKnot
in interfaceKnotVector
-
isRational
- Specified by:
isRational
in interfaceVertexSet
-
getDimension
- Specified by:
getDimension
in interfaceVertexSet
-