public class PositionInputProbe extends NumericInputProbe
position or targetPosition property,
depending on availability and the value of the useTargetProps
argument in the probe's constructor. For components with orientation (Frame
and FixedMeshBody), the rotation information is likewise attached to the
either the components's orientation or targetOrientation
property. However, within the probe data, the orientation is represented in
a manner specifed by a RotationRep object, using either 3 or 4
numbers. Rotation information is interpolated as curves on SO(3), as
originally described by Ken Shoemake in his SIGGRAPH 1985 paper "Animating
Rotation with Quaternion Curves".Probe.ExportProps, Probe.ImportExportFileInfoModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilitymyPropsEXPLICIT_TIME, mySmallDisplayuseOldSaveMethod, writeStartStopTimeInSecondsenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesCOPY_REFERENCES, REST_POSITION| Constructor and Description |
|---|
PositionInputProbe()
No-args constructor needed for scanning.
|
PositionInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
RotationRep rotRep,
boolean useTargetProps,
double startTime,
double stopTime)
Constructs a PositionInputProbe for a list of Point, Frame, or FixedMeshBody
components specified by
comps. |
PositionInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
RotationRep rotRep,
boolean useTargetProps,
java.lang.String filePath)
Constructs a PositionInputProbe for a list of Point, Frame, or FixedMeshBody
components specified by
comps. |
PositionInputProbe(java.lang.String name,
ModelComponent comp,
RotationRep rotRep,
boolean useTargetProps,
double startTime,
double stopTime)
Constructs a PositionInputProbe for a single Point, Frame, or FixedMeshBody,
as specified by
comp. |
PositionInputProbe(java.lang.String name,
ModelComponent comp,
RotationRep rotRep,
boolean useTargetProps,
java.lang.String filePath)
Constructs a PositionInputProbe for a single Point, Frame, or FixedMeshBody,
as specified by
comp. |
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<ModelComponent> |
getPositionComponents()
Returns a list of the position components associated with this probe, in
the order that they appear in the probe's data.
|
void |
setFrameData(ModelComponent frame,
double time,
RigidTransform3d TFW)
Sets position data for a specific frame controlled by this probe.
|
void |
setPointData(Point point,
double time,
Vector3d pos)
Sets position data for a specific point controlled by this probe.
|
void |
transformData(AffineTransform3dBase X)
Apply a rigid or affine transform to all the point and rotation data in
this list.
|
addData, addData, addData, addData, addData, addData, apply, clone, copy, createState, getAllPropertyInfo, getCopyReferences, getExtendData, getInput, getState, hasState, isDuplicatable, isEditable, isInput, isSettable, load, loadEmpty, postscan, save, scan, scanItem, set, set, setAttachedFileName, setAttachedFileName, setData, setData, setExtendData, setInputProperties, setState, write, writeItemsaddData, applyDefaultDisplayRanges, clearData, decreaseDisplayRanges, dispose, exportCsvData, exportCsvData, exportData, exportTextData, exportTextData, getAttachedProperties, getData, getData, getDefaultDisplayMax, getDefaultDisplayMin, getDefaultDisplayRange, getDisplay, getDrivers, getExportFileInfo, getExportProps, getFormat, getImportFileInfo, getInterpolation, getInterpolationOrder, getLegend, getMatlabName, getMinMaxValues, getNumericList, getOrderedTraceIndex, getPlotTraceInfo, getRotationRep, getRotationSubvecOffsets, getTraceColor, getTraceLabel, getTraceManager, getValues, getVariables, getVisibleMinMaxValues, getVisibleRange, getVisibleRange, getVsize, importCsvData, importData, importText, importTextData, increaseDisplayRanges, isCloneable, isDisplayable, isEmpty, isPrintable, isSmallDisplayVisible, isTraceVisible, isValidVariableName, isWritable, loadFromMatlab, print, read, removeDisplay, removeLegend, resetTraceColors, resetTraceOrder, saveToMatlab, scaleNumericList, setData, setData, setDefaultDisplayRange, setDefaultDisplayRange, setFormat, setInterpolation, setInterpolationOrder, setLegend, setLegendLabels, setScale, setSmallDisplayVisible, setTraceColor, setTraceLabel, setTraceOrder, setTraceVisible, setValues, setValues, smoothWithMovingAverage, smoothWithSavitzkyGolay, swapPlotTraceOrder, updateDisplays, updateDisplays, updateDisplaysForPropertyChanges, updateDisplaysWithoutAutoRanging, writeTextgetAttachedFile, getAttachedFileName, getChildren, getClippedVirtualTime, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getExportFile, getExportFileName, getFileFromPath, getImportFile, getImportFileName, getInitialState, getPathFromFile, getProperty, getScale, getStartTime, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, isAttachedFileRelative, isEventTime, isScalable, nextEventTime, setExportFileName, setImportFileName, setInterval, setName, setScalable, setStartStopTimes, setStartTime, setStopTime, setTrack, setUpdateIntervalfinalize, getModel, initialize, isActive, setActive, setModel, setModelFromComponent, writecheckFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isScanning, isSelected, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferencesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writepublic PositionInputProbe()
public PositionInputProbe(java.lang.String name,
ModelComponent comp,
RotationRep rotRep,
boolean useTargetProps,
double startTime,
double stopTime)
comp. Data must be added after the constructor is
called.name - if non-null, gives the name of the probecomp - specifies the Point, Frame, or FixedMeshBodyrotRep - rotation representation. Can be null if comp
is a Point.useTargetProps - if true, causes the probe to bind to the
component's targetPosition and targetOrientation
properties (if available), instead of position and orientationstartTime - start time of the probestopTime - stop time of the probepublic PositionInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
RotationRep rotRep,
boolean useTargetProps,
double startTime,
double stopTime)
comps. Data must be added after the
constructor is called.name - if non-null, gives the name of the probecomps - specifies the Point, Frame, or FixedMeshBody componentsrotRep - rotation representation. Can be null if all of the components
are points.useTargetProps - if true, causes the probe to bind to the
component's targetPosition and targetOrientation
properties (if available), instead of position and orientationstartTime - start time of the probestopTime - stop time of the probepublic PositionInputProbe(java.lang.String name,
ModelComponent comp,
RotationRep rotRep,
boolean useTargetProps,
java.lang.String filePath)
throws java.io.IOException
comp. Probe data, plus its interpolation method
and start and stop times, are specified in a probe file.name - if non-null, gives the name of the probecomp - specifies the Point, Frame, or FixedMeshBodyrotRep - rotation representation. Can be null if comp is a
Point.useTargetProps - if true, causes the probe to bind to the
component's targetPosition and targetOrientation
properties (if available), instead of position and orientationfilePath - path name of the probe data filejava.io.IOException - if a file I/O error occurspublic PositionInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
RotationRep rotRep,
boolean useTargetProps,
java.lang.String filePath)
throws java.io.IOException
comps. Probe data, plus its interpolation
method and start and stop times, are specified in a probe file.name - if non-null, gives the name of the probecomps - specifies the Point, Frame, or FixedMeshBody componentsrotRep - rotation representation. Can be null if all of the
components are points.useTargetProps - if true, causes the probe to bind to the
component's targetPosition and targetOrientation
properties (if available), instead of position and orientationfilePath - path name of the probe data filejava.io.IOException - if a file I/O error occurspublic void transformData(AffineTransform3dBase X)
X - transform to applypublic java.util.ArrayList<ModelComponent> getPositionComponents()
public void setPointData(Point point, double time, Vector3d pos)
point - point for which the data should be settime - time at which the data should be setpos - position data for the pointpublic void setFrameData(ModelComponent frame, double time, RigidTransform3d TFW)
frame - frame-based component (either Frame or FixedMeshBody) for which the data should be set.time - time at which the data should be setTFW - transform from frame to world, specifying the position, or
pose, of the frame. This will be turned into internal data based on the
setting of NumericProbeBase.getRotationRep().