|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartisynth.core.modelbase.ModelComponentBase
artisynth.core.modelbase.ModelAgentBase
artisynth.core.probes.Probe
artisynth.core.probes.NumericProbeBase
public abstract class NumericProbeBase
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent |
---|
ModelComponent.NavpanelVisibility |
Field Summary | |
---|---|
static PropertyList |
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 |
Constructor Summary | |
---|---|
NumericProbeBase()
|
Method Summary | |
---|---|
abstract void |
apply(double t)
Called when the probe is being applied to a model |
void |
applyDefaultDisplayRanges()
|
java.lang.Object |
clone()
|
void |
createNumericList(int vsize)
|
void |
decreaseDisplayRanges()
Decrease the display range of each numeric probe panel. |
void |
dispose()
Remove resources used by this agent. |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
Property[] |
getAttachedProperties()
|
VectorNd |
getData(double sec)
|
double |
getDefaultDisplayMax()
|
double |
getDefaultDisplayMin()
|
double[] |
getDefaultDisplayRange()
|
javax.swing.JPanel |
getDisplay(int w,
int h,
boolean isLargeDisplay)
|
NumericProbeDriver[] |
getDrivers()
|
java.lang.String |
getFormat()
|
Interpolation |
getInterpolation()
Returns the interpolation method for this numeric input probe. |
Interpolation.Order |
getInterpolationOrder()
Returns the interpolation order for this numeric probe. |
LegendDisplay |
getLegend()
|
double[] |
getMinMaxValues()
|
NumericList |
getNumericList()
|
int |
getOrderedTraceIndex(int order)
|
PlotTraceInfo |
getPlotTraceInfo(int idx)
|
double[] |
getRange()
|
void |
getRangeHints(double[] ranges)
Gets the range hints associated with this displayable object. |
java.awt.Color |
getTraceColor(int idx)
|
java.lang.String |
getTraceLabel(int idx)
|
double[][] |
getValues()
Returns the values of this probe as a two dimensional array of doubles. |
java.util.LinkedHashMap<java.lang.String,NumericProbeVariable> |
getVariables()
|
int |
getVsize()
|
void |
increaseDisplayRanges()
Increase the display range of each numeric probe panel. |
boolean |
isCloneable()
|
boolean |
isEmpty()
|
boolean |
isPrintable()
|
boolean |
isSmallDisplayVisible()
|
boolean |
isTraceVisible(int idx)
|
static boolean |
isValidVariableName(java.lang.String name)
|
void |
print(double sec)
|
boolean |
removeDisplay(javax.swing.JPanel display)
|
void |
removeLegend()
|
void |
resetTraceColors()
|
void |
resetTraceOrder()
|
void |
scaleNumericList(double scale)
Scales the values of a numberic probe. |
void |
setDefaultDisplayRange(double[] minmax)
|
void |
setDefaultDisplayRange(double min,
double max)
|
void |
setFormat(java.lang.String fmtStr)
|
void |
setInterpolation(Interpolation method)
Sets the interpolation method for this numeric input probe. |
void |
setInterpolationOrder(Interpolation.Order order)
Sets the interpolation order for this numeric probe. |
void |
setLegendLabels(java.util.ArrayList<java.lang.String> labels)
|
void |
setRangeHints(double[] ranges)
Sets the range hints associated with this displayable object. |
void |
setScale(double s)
|
void |
setSmallDisplayVisible(boolean visible)
|
void |
setTraceColor(int idx,
java.awt.Color color)
|
void |
setTraceLabel(int idx,
java.lang.String label)
|
void |
setTraceOrder(int[] indices)
Sets a new ordering for the plot traces. |
void |
setTraceVisible(int idx,
boolean visible)
|
void |
setValues(double[][] vals)
Sets the values of this numeric probe from a two dimensional array of doubles. |
void |
swapPlotTraceOrder(PlotTraceInfo pti0,
PlotTraceInfo pti1)
|
void |
updateDisplays()
|
void |
updateDisplays(NumericProbePanel notToUpdate)
|
void |
updateDisplaysForPropertyChanges()
Update displays if associated properties (like interpolation) have changed. |
void |
updateDisplaysWithoutAutoRanging()
Update displays with auto-ranging suppressed. |
Methods inherited from class artisynth.core.probes.Probe |
---|
createState, getAttachedFile, getAttachedFileName, getChildren, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getInitialState, getProperty, getScale, getStartTime, getState, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, hasState, isActive, isAttachedFileRelative, isEventTime, isInput, isScalable, isSettable, load, nextEventTime, save, scan, setActive, setAttachedFileName, setData, setName, setScalable, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval |
Methods inherited from class artisynth.core.modelbase.ModelAgentBase |
---|
finalize, getModel, initialize, setModel, setModelFromComponent, write |
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 |
Field Detail |
---|
public static PropertyList myProps
Constructor Detail |
---|
public NumericProbeBase()
Method Detail |
---|
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class Probe
public double[][] getValues()
public void setValues(double[][] vals)
getValues()
.
vals
- Values used to set this numeric probepublic abstract void apply(double t)
Probe
apply
in class Probe
public javax.swing.JPanel getDisplay(int w, int h, boolean isLargeDisplay)
getDisplay
in interface Displayable
public boolean removeDisplay(javax.swing.JPanel display)
removeDisplay
in interface Displayable
public int getVsize()
public void createNumericList(int vsize)
public void updateDisplays()
updateDisplays
in interface Displayable
public void setSmallDisplayVisible(boolean visible)
public boolean isSmallDisplayVisible()
public void updateDisplays(NumericProbePanel notToUpdate)
public void updateDisplaysForPropertyChanges()
public void updateDisplaysWithoutAutoRanging()
public void setInterpolation(Interpolation method)
method
- interpolation method.public Interpolation getInterpolation()
setInterpolation(maspack.interpolation.Interpolation)
public void setInterpolationOrder(Interpolation.Order order)
order
- new interpolation orderpublic Interpolation.Order getInterpolationOrder()
public void setFormat(java.lang.String fmtStr)
public java.lang.String getFormat()
public boolean isCloneable()
isCloneable
in class Probe
public double getDefaultDisplayMax()
public double getDefaultDisplayMin()
public void setDefaultDisplayRange(double min, double max)
public void setDefaultDisplayRange(double[] minmax)
public void increaseDisplayRanges()
public void decreaseDisplayRanges()
public void applyDefaultDisplayRanges()
public double[] getDefaultDisplayRange()
public double[] getMinMaxValues()
public boolean isEmpty()
public double[] getRange()
public void setRangeHints(double[] ranges)
Displayable
setRangeHints
in interface Displayable
ranges
- range hints. The first and second elements are the minimum and maximum
horizontal values, and the third and fourth elements are the minimun and
maximum vertical values.Displayable.getRangeHints(double[])
public void getRangeHints(double[] ranges)
Displayable
getRangeHints
in interface Displayable
ranges
- range hints. The first and second elements are the minimum and maximum
horizontal values, and the third and fourth elements are the minimun and
maximum vertical values.Displayable.setRangeHints(double[])
public void scaleNumericList(double scale)
scale
- the parameter by which to scale the values.public void setScale(double s)
setScale
in class Probe
public NumericList getNumericList()
public java.util.LinkedHashMap<java.lang.String,NumericProbeVariable> getVariables()
public NumericProbeDriver[] getDrivers()
public Property[] getAttachedProperties()
public static boolean isValidVariableName(java.lang.String name)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ModelComponentBase
java.lang.CloneNotSupportedException
public boolean isPrintable()
isPrintable
in class Probe
public VectorNd getData(double sec)
public void print(double sec)
print
in class Probe
public void setLegendLabels(java.util.ArrayList<java.lang.String> labels)
public PlotTraceInfo getPlotTraceInfo(int idx)
public int getOrderedTraceIndex(int order)
public void setTraceOrder(int[] indices)
public void swapPlotTraceOrder(PlotTraceInfo pti0, PlotTraceInfo pti1)
public void resetTraceOrder()
public void setTraceVisible(int idx, boolean visible)
public boolean isTraceVisible(int idx)
public void setTraceColor(int idx, java.awt.Color color)
public java.awt.Color getTraceColor(int idx)
public void resetTraceColors()
public void setTraceLabel(int idx, java.lang.String label)
public java.lang.String getTraceLabel(int idx)
public LegendDisplay getLegend()
public void removeLegend()
public void dispose()
dispose
in interface ModelAgent
dispose
in class ModelAgentBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |