public class PositionOutputProbe extends NumericOutputProbe
position
property. For components with orientation
(Frame and FixedMeshBody), the rotation information is read from the
components's orientation
property, but is represented within the
probe data 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.ImportExportFileInfo
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility
myProps
EXPLICIT_TIME, mySmallDisplay
useOldSaveMethod, writeStartStopTimeInSeconds
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
COPY_REFERENCES, REST_POSITION
Constructor and Description |
---|
PositionOutputProbe()
No-args constructor needed for scanning.
|
PositionOutputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
RotationRep rotRep,
double startTime,
double stopTime)
Constructs a PositionOutputProbe for a list of Point, Frame, or
FixedMeshBody components specified by
comps . |
PositionOutputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
RotationRep rotRep,
java.lang.String fileName,
double startTime,
double stopTime,
double interval)
Constructs a PositionOutputProbe for a list of Point, Frame, or
FixedMeshBody components specified by
comps . |
PositionOutputProbe(java.lang.String name,
ModelComponent comp,
RotationRep rotRep,
double startTime,
double stopTime)
Constructs a PositionOutputProbe for a single Point, Frame, or
FixedMeshBody, as specified by
comp . |
PositionOutputProbe(java.lang.String name,
ModelComponent comp,
RotationRep rotRep,
java.lang.String fileName,
double startTime,
double stopTime,
double interval)
Constructs a PositionOutputProbe 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 |
transformData(AffineTransform3dBase X)
Apply a rigid or affine transform to all the point and rotation data in
this list.
|
apply, clone, copy, getAllPropertyInfo, getCopyReferences, getOutput, getShowHeader, getShowTime, isDuplicatable, isEditable, load, postscan, save, scan, scanItem, set, set, setAttachedFileName, setAttachedFileName, setOutputProperties, setShowHeader, setShowTime, write, writeData, writeItems
addData, applyDefaultDisplayRanges, clearData, decreaseDisplayRanges, dispose, export, getAttachedProperties, getData, getDefaultDisplayMax, getDefaultDisplayMin, getDefaultDisplayRange, getDisplay, getDrivers, getExportFileInfo, getExportProps, getFormat, getInterpolation, getInterpolationOrder, getLegend, getMatlabName, getMinMaxValues, getNumericList, getOrderedTraceIndex, getPlotTraceInfo, getRotationRep, getRotationSubvecOffsets, getTraceColor, getTraceLabel, getTraceManager, getValues, getVariables, getVisibleMinMaxValues, getVisibleRange, getVisibleRange, getVsize, importData, importText, increaseDisplayRanges, isCloneable, isDisplayable, isEmpty, isPrintable, isSmallDisplayVisible, isTraceVisible, isValidVariableName, isWritable, loadFromMatlab, print, read, removeDisplay, removeLegend, resetTraceColors, resetTraceOrder, saveToMatlab, scaleNumericList, setDefaultDisplayRange, setDefaultDisplayRange, setFormat, setInterpolation, setInterpolationOrder, setLegend, setLegendLabels, setScale, setSmallDisplayVisible, setTraceColor, setTraceLabel, setTraceOrder, setTraceVisible, setValues, setValues, smoothWithMovingAverage, smoothWithSavitzkyGolay, swapPlotTraceOrder, updateDisplays, updateDisplays, updateDisplaysForPropertyChanges, updateDisplaysWithoutAutoRanging, writeText
createState, getAttachedFile, getAttachedFileName, getChildren, getClippedVirtualTime, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getExportFile, getExportFileName, getFileFromPath, getImportFile, getImportFileInfo, getImportFileName, getInitialState, getPathFromFile, getProperty, getScale, getStartTime, getState, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, hasState, isAttachedFileRelative, isEventTime, isInput, isScalable, isSettable, nextEventTime, setAttachedFileName, setData, setExportFileName, setImportFileName, setInterval, setName, setScalable, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval
finalize, getModel, initialize, isActive, setActive, setModel, setModelFromComponent, write
checkFlag, 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, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
isWritable, write
public PositionOutputProbe()
public PositionOutputProbe(java.lang.String name, ModelComponent comp, RotationRep rotRep, double startTime, double stopTime)
comp
. The update interval is set
to [-1
, meaning that updates will occur every simulation step.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.startTime
- start time of the probestopTime
- stop time of the probepublic PositionOutputProbe(java.lang.String name, java.util.Collection<? extends ModelComponent> comps, RotationRep rotRep, double startTime, double stopTime)
comps
. The update interval
is set to [-1
, meaning that updates will occur every simulation
step.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.startTime
- start time of the probestopTime
- stop time of the probepublic PositionOutputProbe(java.lang.String name, ModelComponent comp, RotationRep rotRep, java.lang.String fileName, double startTime, double stopTime, double interval)
comp
.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.fileName
- if non-null, specifies the attached file to which probe
data can be savedstartTime
- start time of the probestopTime
- stop time of the probeinterval
- probe update interval. If set to -1
, updates will
occur every simulation step.public PositionOutputProbe(java.lang.String name, java.util.Collection<? extends ModelComponent> comps, RotationRep rotRep, java.lang.String fileName, double startTime, double stopTime, double interval)
comps
.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.fileName
- if non-null, specifies the attached file to which probe
data can be savedstartTime
- start time of the probestopTime
- stop time of the probeinterval
- probe update interval. If set to -1
, updates will
occur every simulation step.public void transformData(AffineTransform3dBase X)
X
- transform to applypublic java.util.ArrayList<ModelComponent> getPositionComponents()