de.grogra.imp3d.objects
public class VertexSequence extends Sequence implements BSplineCurve
| Modifier and Type | Class and Description |
|---|---|
static class |
VertexSequence.Type |
static interface |
VertexSequence.Vertex |
| Modifier and Type | Field and Description |
|---|---|
static VertexSequence.Type |
$TYPE |
static SCOType.Field |
hermite$FIELD |
static SCOType.Field |
periodic$FIELD |
static SCOType.Field |
tangentLength$FIELD |
DOWNWARD, DOWNWARD_AXIS, name$FIELD, PATH_TYPE, path$FIELD, UPWARD_AXIS, UPWARD_BRANCH| Constructor and Description |
|---|
VertexSequence() |
VertexSequence(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
calculateCache(Matrix4d inv,
java.util.ArrayList list,
GraphState gs,
java.lang.Object info) |
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() |
int |
getSize(GraphState gs) |
float |
getTangentLength() |
int |
getVertex(float[] out,
int index,
GraphState gs) |
boolean |
isHermite() |
boolean |
isPeriodic() |
boolean |
isRational(GraphState gs) |
void |
setHermite(boolean value) |
void |
setPeriodic(boolean value) |
void |
setTangentLength(float value) |
protected void |
visitNode(java.lang.Object node,
java.lang.Object shape,
java.util.ArrayList list,
GraphState gs) |
void |
writeStamp(Cache.Entry cache,
GraphState gs)
Writes a stamp of the context into
cache. |
calculateCache, getCache, getName, getPath, setName, setPathaddReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferencepublic static final VertexSequence.Type $TYPE
public static final SCOType.Field hermite$FIELD
public static final SCOType.Field periodic$FIELD
public static final SCOType.Field tangentLength$FIELD
public VertexSequence()
public VertexSequence(java.lang.String name)
protected java.lang.Object calculateCache(Matrix4d inv, java.util.ArrayList list, GraphState gs, java.lang.Object info)
calculateCache in class Sequencepublic boolean dependsOnContext()
ContextDependentdependsOnContext in interface ContextDependenttrue iff this object depends on contextpublic 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 ManageableType getManageableType()
getManageableType in interface Manageablepublic int getSize(GraphState gs)
getSize in interface VertexListpublic float getTangentLength()
public int getVertex(float[] out,
int index,
GraphState gs)
public boolean isHermite()
public boolean isPeriodic()
public boolean isRational(GraphState gs)
isRational in interface VertexSetpublic void setHermite(boolean value)
public void setPeriodic(boolean value)
public void setTangentLength(float value)
protected void visitNode(java.lang.Object node,
java.lang.Object shape,
java.util.ArrayList list,
GraphState gs)
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