de.grogra.math
public class ProfileSweep extends Sweep
| Modifier and Type | Class and Description |
|---|---|
static class |
ProfileSweep.Type |
| Modifier and Type | Field and Description |
|---|---|
static ProfileSweep.Type |
$TYPE |
static SCOType.Field |
profile$FIELD |
static SCOType.Field |
trajectory$FIELD |
useRail$FIELD| Constructor and Description |
|---|
ProfileSweep() |
ProfileSweep(BSplineCurve profile,
BSplineCurve trajectory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dependsOnContext()
Determines whether this object actually depends on context.
|
int |
getDegree(int curve,
GraphState gs) |
float |
getKnot(int curve,
int index,
GraphState gs) |
ManageableType |
getManageableType() |
BSplineCurve |
getProfile() |
int |
getSize(int curve,
GraphState gs) |
BSplineCurve |
getTrajectory() |
protected BSplineCurve |
getTrajectory(GraphState gs) |
protected int |
getVertexImpl(float[] out,
int curve,
int index,
java.lang.Object[] cache,
GraphState gs) |
protected java.lang.Object[] |
initCache(GraphState gs) |
void |
setProfile(BSplineCurve value) |
void |
setTrajectory(BSplineCurve value) |
void |
writeStamp(Cache.Entry cache,
GraphState gs)
Writes a stamp of the context into
cache. |
areCurvesCompatible, calculateLocalX, computeTrajectory, getCache, getCacheImpl, getDimension, getSize, getVertex, initLocalX, isRational, setUseRailaddReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferencepublic static final ProfileSweep.Type $TYPE
public static final SCOType.Field profile$FIELD
public static final SCOType.Field trajectory$FIELD
public ProfileSweep()
public ProfileSweep(BSplineCurve profile, BSplineCurve trajectory)
public boolean dependsOnContext()
ContextDependenttrue iff this object depends on contextpublic int getDegree(int curve,
GraphState gs)
public float getKnot(int curve,
int index,
GraphState gs)
public ManageableType getManageableType()
public BSplineCurve getProfile()
public int getSize(int curve,
GraphState gs)
public BSplineCurve getTrajectory()
protected BSplineCurve getTrajectory(GraphState gs)
getTrajectory in class Sweepprotected int getVertexImpl(float[] out,
int curve,
int index,
java.lang.Object[] cache,
GraphState gs)
getVertexImpl in class Sweepprotected java.lang.Object[] initCache(GraphState gs)
public void setProfile(BSplineCurve value)
public void setTrajectory(BSplineCurve 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