de.grogra.math
Class ProfileSweep
java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.impl.ContextDependentBase
de.grogra.math.Sweep
de.grogra.math.ProfileSweep
- All Implemented Interfaces:
- ContextDependent, BSplineCurveList, Manageable, Shareable
public class ProfileSweep
- extends Sweep
Methods inherited from class de.grogra.math.Sweep |
areCurvesCompatible, calculateLocalX, computeTrajectory, getCache, getCacheImpl, getDimension, getSize, getVertex, initLocalX, isRational, setUseRail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final ProfileSweep.Type $TYPE
profile$FIELD
public static final SCOType.Field profile$FIELD
trajectory$FIELD
public static final SCOType.Field trajectory$FIELD
ProfileSweep
public ProfileSweep()
ProfileSweep
public ProfileSweep(BSplineCurve profile,
BSplineCurve trajectory)
dependsOnContext
public boolean dependsOnContext()
- Description copied from interface:
ContextDependent
- Determines whether this object actually depends on context.
- Returns:
true
iff this object depends on context
getDegree
public int getDegree(int curve,
GraphState gs)
getKnot
public float getKnot(int curve,
int index,
GraphState gs)
getManageableType
public ManageableType getManageableType()
getProfile
public BSplineCurve getProfile()
getSize
public int getSize(int curve,
GraphState gs)
getTrajectory
public BSplineCurve getTrajectory()
getTrajectory
protected BSplineCurve getTrajectory(GraphState gs)
- Specified by:
getTrajectory
in class Sweep
getVertexImpl
protected int getVertexImpl(float[] out,
int curve,
int index,
java.lang.Object[] cache,
GraphState gs)
- Specified by:
getVertexImpl
in class Sweep
initCache
protected java.lang.Object[] initCache(GraphState gs)
- Specified by:
initCache
in class Sweep
setProfile
public void setProfile(BSplineCurve value)
setTrajectory
public void setTrajectory(BSplineCurve value)
writeStamp
public void writeStamp(Cache.Entry cache,
GraphState gs)
- Description copied from interface:
ContextDependent
- Writes a stamp of the context into
cache
. Based on
this stamp, a cache detects whether the context of this
object has changed or not.
- Specified by:
writeStamp
in interface ContextDependent
- Overrides:
writeStamp
in class ContextDependentBase
- Parameters:
cache
- a cache entry to write the stampgs
- the current graph state