artisynth.core.probes
Class RigidTransformInputProbe
java.lang.Object
artisynth.core.modelbase.ModelComponentBase
artisynth.core.modelbase.ModelAgentBase
artisynth.core.probes.Probe
artisynth.core.probes.InputProbe
artisynth.core.probes.RigidTransformInputProbe
- All Implemented Interfaces:
- HasState, ModelAgent, ModelComponent, java.lang.Cloneable, HasProperties, HierarchyNode, Scannable
public class RigidTransformInputProbe
- extends InputProbe
- Since:
- 2013-07-16
- Author:
- Andrew K Ho
Methods inherited from class artisynth.core.probes.Probe |
createState, getAllPropertyInfo, getAttachedFile, getAttachedFileName, getChildren, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getInitialState, getProperty, getScale, getStartTime, getState, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, hasState, isActive, isAttachedFileRelative, isCloneable, isEventTime, isPrintable, isScalable, isSettable, load, nextEventTime, print, save, scan, setActive, setAttachedFileName, setData, setName, setScalable, setScale, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval |
Methods inherited from class artisynth.core.modelbase.ModelComponentBase |
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface artisynth.core.modelbase.ModelComponent |
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, setFixed, setMarked, setNumber, setParent, setSelected, updateReferences |
RigidTransformInputProbe
public RigidTransformInputProbe()
- Default constructor.
RigidTransformInputProbe
public RigidTransformInputProbe(RigidBody rigid)
- Creates a RigidTransformInputProbe for a specified RigidBody
- Parameters:
rigid
- rigid body for this probe
setRigid
public void setRigid(RigidBody rigid)
- Set the rigid body associated with this probe.
This must only be called once in the lifetime of the probe. Reseting the
rigid body is not supported at the moment. Create a new
RigidTransformInputProbe instead.
- Parameters:
rigid
- rigid body for this probe
initialize
public void initialize(double t)
- Specified by:
initialize
in interface ModelAgent
- Overrides:
initialize
in class ModelAgentBase
setInterpolation
public void setInterpolation(Interpolation.Order interpOrder)
- Set the interpolation order of the interpolator.
- Parameters:
interpOrder
- Enum value. Can be Linear, Cubic, Step, etc.
See maspack.interpolation.Interpolation
setInterpolation
public void setInterpolation(Interpolation interp)
- Set your own interpolation method
- Parameters:
interp
- An initialized instance of Interpolation
addTransform
public void addTransform(double t,
RigidTransform3d tx)
apply
public void apply(double t)
- Apply this probe at time t to model myModel.
- Overrides:
apply
in class InputProbe
- Parameters:
t
- time to interpolate vertex positions to.