artisynth.core.probes
Class AffineNumericInputProbe

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.NumericProbeBase
                  extended by artisynth.core.probes.NumericInputProbe
                      extended by artisynth.core.probes.AffineNumericInputProbe
All Implemented Interfaces:
Displayable, CopyableComponent, HasState, ModelAgent, ModelComponent, java.lang.Cloneable, HasProperties, HierarchyNode, Scannable

public class AffineNumericInputProbe
extends NumericInputProbe


Nested Class Summary
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent
ModelComponent.NavpanelVisibility
 
Field Summary
 
Fields inherited from class artisynth.core.probes.NumericInputProbe
EXPLICIT_TIME, myProps
 
Fields inherited from class artisynth.core.probes.Probe
useOldSaveMethod, writeStartStopTimeInSeconds
 
Fields inherited from class artisynth.core.modelbase.ModelComponentBase
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
 
Fields inherited from interface artisynth.core.modelbase.CopyableComponent
COPY_REFERENCES
 
Constructor Summary
AffineNumericInputProbe()
          Interpolate data to specified time and set related properties values.
AffineNumericInputProbe(ModelComponent e)
           
AffineNumericInputProbe(ModelComponent e, java.lang.String propName, double startTime, double stopTime)
           
AffineNumericInputProbe(ModelComponent e, java.lang.String propName, java.lang.String fileName)
           
AffineNumericInputProbe(Property[] props, ModelComponent e)
           
AffineNumericInputProbe(Property[] props, ModelComponent e, double ymin, double ymax)
           
AffineNumericInputProbe(Property prop, ModelComponent e)
           
AffineNumericInputProbe(Property prop, ModelComponent e, double ymin, double ymax)
           
 
Method Summary
 void apply(double t)
          Interpolate data to specified time and set related properties values.
 void createNumericList(int vsize)
           
 java.util.ArrayList<Point3d> getPoints(double t)
           
 double getTimeOffset()
           
 AffineTransform3d getTransform()
           
 VectorNd getValues(double t)
           
 void initTransform(int size)
           
 void set(Property[] props, java.lang.String[] driverExpressions, java.lang.String[] variableNames, int[] variableDimensions, PlotTraceInfo[] traceInfos)
           
 void setTimeOffset(double tOffset)
           
 void setTransform(AffineTransform3d A)
           
 VectorNd transform(VectorNd x)
           
 
Methods inherited from class artisynth.core.probes.NumericInputProbe
addData, addData, addData, addData, addData, addData, clone, copy, createState, getAllPropertyInfo, getCopyReferences, getExtendData, getInput, getState, hasState, isDuplicatable, isInput, isSettable, load, loadEmpty, postscan, read, save, scan, scanItem, set, setAttachedFileName, setAttachedFileName, setData, setExtendData, setInputProperties, setState, write, writeItems
 
Methods inherited from class artisynth.core.probes.NumericProbeBase
applyDefaultDisplayRanges, decreaseDisplayRanges, dispose, getAttachedProperties, getData, getDefaultDisplayMax, getDefaultDisplayMin, getDefaultDisplayRange, getDisplay, getDrivers, getFormat, getInterpolation, getInterpolationOrder, getLegend, getMinMaxValues, getNumericList, getOrderedTraceIndex, getPlotTraceInfo, getRange, getRangeHints, getTraceColor, getTraceLabel, getValues, getVariables, getVsize, increaseDisplayRanges, isCloneable, isEmpty, isPrintable, isSmallDisplayVisible, isTraceVisible, isValidVariableName, print, removeDisplay, removeLegend, resetTraceColors, resetTraceOrder, scaleNumericList, setDefaultDisplayRange, setDefaultDisplayRange, setFormat, setInterpolation, setInterpolationOrder, setLegendLabels, setRangeHints, setScale, setSmallDisplayVisible, setTraceColor, setTraceLabel, setTraceOrder, setTraceVisible, setValues, swapPlotTraceOrder, updateDisplays, updateDisplays, updateDisplaysForPropertyChanges, updateDisplaysWithoutAutoRanging
 
Methods inherited from class artisynth.core.probes.Probe
getAttachedFile, getAttachedFileName, getChildren, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getInitialState, getProperty, getScale, getStartTime, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, isActive, isAttachedFileRelative, isEventTime, isScalable, nextEventTime, setActive, setName, setScalable, setStartStopTimes, setStartTime, setStopTime, setTrack, setUpdateInterval
 
Methods inherited from class artisynth.core.modelbase.ModelAgentBase
finalize, getModel, initialize, setModel, setModelFromComponent, write
 
Methods inherited from class artisynth.core.modelbase.ModelComponentBase
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, 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, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
 
Methods inherited from interface maspack.properties.HasProperties
getProperty
 
Methods inherited from interface maspack.properties.HierarchyNode
getChildren, hasChildren
 
Methods inherited from interface maspack.util.Scannable
isWritable, write
 

Constructor Detail

AffineNumericInputProbe

public AffineNumericInputProbe()
Interpolate data to specified time and set related properties values. time in nano-seconds


AffineNumericInputProbe

public AffineNumericInputProbe(ModelComponent e)

AffineNumericInputProbe

public AffineNumericInputProbe(ModelComponent e,
                               java.lang.String propName,
                               java.lang.String fileName)
                        throws java.io.IOException
Throws:
java.io.IOException

AffineNumericInputProbe

public AffineNumericInputProbe(ModelComponent e,
                               java.lang.String propName,
                               double startTime,
                               double stopTime)

AffineNumericInputProbe

public AffineNumericInputProbe(Property prop,
                               ModelComponent e)

AffineNumericInputProbe

public AffineNumericInputProbe(Property prop,
                               ModelComponent e,
                               double ymin,
                               double ymax)

AffineNumericInputProbe

public AffineNumericInputProbe(Property[] props,
                               ModelComponent e)

AffineNumericInputProbe

public AffineNumericInputProbe(Property[] props,
                               ModelComponent e,
                               double ymin,
                               double ymax)
Method Detail

transform

public VectorNd transform(VectorNd x)

initTransform

public void initTransform(int size)

setTransform

public void setTransform(AffineTransform3d A)

getTransform

public AffineTransform3d getTransform()

getValues

public VectorNd getValues(double t)

getPoints

public java.util.ArrayList<Point3d> getPoints(double t)

set

public void set(Property[] props,
                java.lang.String[] driverExpressions,
                java.lang.String[] variableNames,
                int[] variableDimensions,
                PlotTraceInfo[] traceInfos)
Overrides:
set in class NumericInputProbe

createNumericList

public void createNumericList(int vsize)
Overrides:
createNumericList in class NumericInputProbe

setTimeOffset

public void setTimeOffset(double tOffset)

getTimeOffset

public double getTimeOffset()

apply

public void apply(double t)
Description copied from class: NumericInputProbe
Interpolate data to specified time and set related properties values.

Overrides:
apply in class NumericInputProbe
Parameters:
t - current time