public class TransparencyProbe extends NumericControlProbe
alpha
value of their render properties.Probe.ExportProps, Probe.ImportExportFileInfo
ModelComponent.NavpanelVisibility
EXPLICIT_TIME, myProps
mySmallDisplay
useOldSaveMethod, writeStartStopTimeInSeconds
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
COPY_REFERENCES, REST_POSITION
Constructor and Description |
---|
TransparencyProbe() |
TransparencyProbe(java.util.Collection<? extends RenderableComponent> comps,
double startTime,
double stopTime) |
TransparencyProbe(RenderableComponent[] comps,
double startTime,
double stopTime) |
TransparencyProbe(RenderableComponent comp,
double startTime,
double stopTime) |
Modifier and Type | Method and Description |
---|---|
void |
addFadeIn(double t0,
double t1) |
void |
addFadeOut(double t0,
double t1) |
void |
addKnot(double t0,
double value) |
void |
applyData(VectorNd vec,
double t,
double trel)
Applies the current numeric data of this probe, as input in the argument
vec , and uses it to update the simulation for either
the current absolute time t or probe relative time
trel . |
boolean |
scanItem(ReaderTokenizer rtok,
java.util.Deque<ScanToken> tokens) |
void |
writeItems(java.io.PrintWriter pw,
NumberFormat fmt,
CompositeComponent ancestor)
Write probe attributes to a PrintWriter
|
addData, addData, addData, addData, addData, addData, apply, clone, copy, createNumericList, getAllPropertyInfo, getCopyReferences, getExtendData, getInput, isInput, isSettable, load, loadEmpty, read, save, scan, setAttachedFileName, setAttachedFileName, setData, setExtendData, setVsize, setVsize, write
createState, getDataFunction, getInitialState, getState, hasState, isCloneable, isDuplicatable, setDataFunction, setState
applyDefaultDisplayRanges, clearData, decreaseDisplayRanges, dispose, export, getAttachedProperties, getData, getDefaultDisplayMax, getDefaultDisplayMin, getDefaultDisplayRange, getDisplay, getDrivers, getExportFileInfo, getExportProps, getFormat, getInterpolation, getInterpolationOrder, getLegend, getMatlabName, getMinMaxValues, getNumericList, getOrderedTraceIndex, getPlotTraceInfo, getRange, getRange, getTraceColor, getTraceLabel, getTraceManager, getValues, getVariables, getVsize, importData, importText, increaseDisplayRanges, isDisplayable, isEmpty, isPrintable, isSmallDisplayVisible, isTraceVisible, isValidVariableName, isWritable, loadFromMatlab, print, removeDisplay, removeLegend, resetTraceColors, resetTraceOrder, saveToMatlab, scaleNumericList, setDefaultDisplayRange, setDefaultDisplayRange, setFormat, setInterpolation, setInterpolationOrder, setLegend, setLegendLabels, setScale, setSmallDisplayVisible, setTraceColor, setTraceLabel, setTraceOrder, setTraceVisible, setValues, smoothWithMovingAverage, smoothWithSavitzkyGolay, swapPlotTraceOrder, updateDisplays, updateDisplays, updateDisplaysForPropertyChanges, updateDisplaysWithoutAutoRanging, writeText
getAttachedFile, getAttachedFileName, getChildren, getClippedVirtualTime, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getExportFile, getExportFileName, getFileFromPath, getImportFile, getImportFileInfo, getImportFileName, getPathFromFile, getProperty, getScale, getStartTime, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, isAttachedFileRelative, isEventTime, isScalable, nextEventTime, setExportFileName, setImportFileName, setInterval, setName, setScalable, setStartStopTimes, setStartTime, 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, postscan, 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, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
public TransparencyProbe()
public TransparencyProbe(RenderableComponent comp, double startTime, double stopTime)
public TransparencyProbe(java.util.Collection<? extends RenderableComponent> comps, double startTime, double stopTime)
public TransparencyProbe(RenderableComponent[] comps, double startTime, double stopTime)
public void addFadeIn(double t0, double t1)
public void addFadeOut(double t0, double t1)
public void addKnot(double t0, double value)
public void writeItems(java.io.PrintWriter pw, NumberFormat fmt, CompositeComponent ancestor) throws java.io.IOException
Probe
writeItems
in class NumericControlProbe
pw
- writer to which components are writtenfmt
- format for floating point numbersancestor
- ancestor component which respect to which references are
expressedjava.io.IOException
- if an I/O error occurredpublic boolean scanItem(ReaderTokenizer rtok, java.util.Deque<ScanToken> tokens) throws java.io.IOException
scanItem
in class NumericControlProbe
java.io.IOException
public void applyData(VectorNd vec, double t, double trel)
NumericControlProbe
vec
, and uses it to update the simulation for either
the current absolute time t
or probe relative time
trel
. The size of
vec
will equal the vector size of the probe (as returned by
NumericProbeBase.getVsize()
. Probe relative time is determined
from the probe's start time and scale factor
using trel = (t - startTime)/scale.
applyData
in class NumericControlProbe
vec
- supplies the current numeric datat
- absolute time (seconds)trel
- probe relative time