artisynth.core.probes
Class RigidTransformInputProbe

java.lang.Object
  extended by artisynth.core.modelbase.ModelComponentBase
      extended by artisynth.core.modelbase.ModelAgentBase
          extended by artisynth.core.probes.Probe
              extended by artisynth.core.probes.InputProbe
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent
ModelComponent.NavpanelVisibility
 
Field Summary
 
Fields inherited from class artisynth.core.probes.Probe
myProps, useOldSaveMethod, writeStartStopTimeInSeconds
 
Fields inherited from class artisynth.core.modelbase.ModelComponentBase
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
 
Constructor Summary
RigidTransformInputProbe()
          Default constructor.
RigidTransformInputProbe(RigidBody rigid)
          Creates a RigidTransformInputProbe for a specified RigidBody
 
Method Summary
 void addTransform(double t, RigidTransform3d tx)
           
 void apply(double t)
          Apply this probe at time t to model myModel.
 void initialize(double t)
           
 void setInterpolation(Interpolation.Order interpOrder)
          Set the interpolation order of the interpolator.
 void setInterpolation(Interpolation interp)
          Set your own interpolation method
 void setRigid(RigidBody rigid)
          Set the rigid body associated with this probe.
 
Methods inherited from class artisynth.core.probes.InputProbe
isInput
 
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.ModelAgentBase
dispose, finalize, getModel, setModel, setModelFromComponent, write
 
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
 
Methods inherited from interface maspack.util.Scannable
isWritable
 

Constructor Detail

RigidTransformInputProbe

public RigidTransformInputProbe()
Default constructor.


RigidTransformInputProbe

public RigidTransformInputProbe(RigidBody rigid)
Creates a RigidTransformInputProbe for a specified RigidBody

Parameters:
rigid - rigid body for this probe
Method Detail

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.