de.grogra.math
Class ProfileSweep

java.lang.Object
  extended by de.grogra.persistence.ShareableBase
      extended by de.grogra.graph.impl.ContextDependentBase
          extended by de.grogra.math.Sweep
              extended by de.grogra.math.ProfileSweep
All Implemented Interfaces:
ContextDependent, BSplineCurveList, Manageable, Shareable

public class ProfileSweep
extends Sweep


Nested Class Summary
static class ProfileSweep.Type
           
 
Field Summary
static ProfileSweep.Type $TYPE
           
static SCOType.Field profile$FIELD
           
static SCOType.Field trajectory$FIELD
           
 
Fields inherited from class de.grogra.math.Sweep
useRail$FIELD
 
Constructor Summary
ProfileSweep()
           
ProfileSweep(BSplineCurve profile, BSplineCurve trajectory)
           
 
Method Summary
 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.
 
Methods inherited from class de.grogra.math.Sweep
areCurvesCompatible, calculateLocalX, computeTrajectory, getCache, getCacheImpl, getDimension, getSize, getVertex, initLocalX, isRational, setUseRail
 
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$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
Constructor Detail

ProfileSweep

public ProfileSweep()

ProfileSweep

public ProfileSweep(BSplineCurve profile,
                    BSplineCurve trajectory)
Method Detail

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 stamp
gs - the current graph state