de.grogra.math
public class BSplineOfVertices extends ContextDependentBase implements BSplineCurve
| Modifier and Type | Class and Description |
|---|---|
static class |
BSplineOfVertices.Type |
| Modifier and Type | Field and Description |
|---|---|
static BSplineOfVertices.Type |
$TYPE |
static SCOType.Field |
bezier$FIELD |
static SCOType.Field |
degree$FIELD |
static SCOType.Field |
knots$FIELD |
static SCOType.Field |
periodic$FIELD |
static SCOType.Field |
rational$FIELD |
static SCOType.Field |
size$FIELD |
static SCOType.Field |
vertices$FIELD |
| Constructor and Description |
|---|
BSplineOfVertices() |
BSplineOfVertices(VertexList vertices,
int degree,
boolean periodic,
boolean bezier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dependsOnContext()
Determines whether this object actually depends on context.
|
int |
getDegree() |
int |
getDegree(GraphState gs) |
int |
getDimension(GraphState gs) |
float |
getKnot(int dim,
int index,
GraphState gs) |
float[] |
getKnots() |
ManageableType |
getManageableType() |
int |
getSize() |
int |
getSize(GraphState gs) |
int |
getVertex(float[] out,
int index,
GraphState gs) |
VertexList |
getVertices() |
boolean |
isBezier() |
boolean |
isPeriodic() |
boolean |
isRational() |
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 into
cache. |
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferencepublic static final BSplineOfVertices.Type $TYPE
public static final SCOType.Field bezier$FIELD
public static final SCOType.Field degree$FIELD
public static final SCOType.Field knots$FIELD
public static final SCOType.Field periodic$FIELD
public static final SCOType.Field rational$FIELD
public static final SCOType.Field size$FIELD
public static final SCOType.Field vertices$FIELD
public BSplineOfVertices()
public BSplineOfVertices(VertexList vertices, int degree, boolean periodic, boolean bezier)
public boolean dependsOnContext()
ContextDependentdependsOnContext in interface ContextDependenttrue iff this object depends on contextpublic int getDegree()
public int getDegree(GraphState gs)
getDegree in interface BSplineCurvepublic int getDimension(GraphState gs)
getDimension in interface VertexSetpublic float getKnot(int dim,
int index,
GraphState gs)
getKnot in interface KnotVectorpublic float[] getKnots()
public ManageableType getManageableType()
getManageableType in interface Manageablepublic int getSize()
public int getSize(GraphState gs)
getSize in interface VertexListpublic int getVertex(float[] out,
int index,
GraphState gs)
public VertexList getVertices()
public boolean isBezier()
public boolean isPeriodic()
public boolean isRational()
public boolean isRational(GraphState gs)
isRational in interface VertexSetpublic void setBezier(boolean value)
public void setDegree(int value)
public void setKnots(float[] value)
public void setPeriodic(boolean value)
public void setRational(boolean value)
public void setSize(int value)
public void setVertices(VertexList value)
public void writeStamp(Cache.Entry cache, GraphState gs)
ContextDependentcache. Based on
this stamp, a cache detects whether the context of this
object has changed or not.writeStamp in interface ContextDependentwriteStamp in class ContextDependentBasecache - a cache entry to write the stampgs - the current graph state