de.grogra.imp3d.objects
public class CurveSequence extends Sequence implements BSplineCurveList
| Modifier and Type | Class and Description |
|---|---|
static class |
CurveSequence.Type |
| Modifier and Type | Field and Description |
|---|---|
static CurveSequence.Type |
$TYPE |
DOWNWARD, DOWNWARD_AXIS, name$FIELD, PATH_TYPE, path$FIELD, UPWARD_AXIS, UPWARD_BRANCH| Constructor and Description |
|---|
CurveSequence() |
CurveSequence(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areCurvesCompatible(GraphState gs) |
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(int curve,
GraphState gs) |
int |
getDimension(int curve,
GraphState gs) |
float |
getKnot(int curve,
int index,
GraphState gs) |
ManageableType |
getManageableType() |
int |
getSize(GraphState gs) |
int |
getSize(int curve,
GraphState gs) |
int |
getVertex(float[] out,
int curve,
int index,
GraphState gs) |
boolean |
isRational(int curve,
GraphState gs) |
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 CurveSequence.Type $TYPE
public CurveSequence()
public CurveSequence(java.lang.String name)
public boolean areCurvesCompatible(GraphState gs)
areCurvesCompatible in interface BSplineCurveListprotected 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(int curve,
GraphState gs)
getDegree in interface BSplineCurveListpublic int getDimension(int curve,
GraphState gs)
getDimension in interface BSplineCurveListpublic float getKnot(int curve,
int index,
GraphState gs)
getKnot in interface BSplineCurveListpublic ManageableType getManageableType()
getManageableType in interface Manageablepublic int getSize(GraphState gs)
getSize in interface BSplineCurveListpublic int getSize(int curve,
GraphState gs)
getSize in interface BSplineCurveListpublic int getVertex(float[] out,
int curve,
int index,
GraphState gs)
getVertex in interface BSplineCurveListpublic boolean isRational(int curve,
GraphState gs)
isRational in interface BSplineCurveListprotected 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