public abstract class WrapTestBase extends RootModel implements Manager.Updatable
| Modifier and Type | Class and Description |
|---|---|
class |
WrapTestBase.ABPointsMonitor |
static class |
WrapTestBase.HasUpdateFileMonitor |
static class |
WrapTestBase.PropertyMonitor |
static interface |
WrapTestBase.RequiresReset |
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilityCompositeComponent.NavpanelDisplay| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_DAMPING |
static double |
DEFAULT_DISTANCE_GRID_DENSITY |
static boolean |
DEFAULT_DISTANCE_GRID_VISIBILITY |
static Vector3i |
DEFAULT_EXPLICIT_GRID_RES |
static Point3d |
DEFAULT_INSERTION_BASE_POSITION |
static Vector3d |
DEFAULT_INSERTION_INTERPOLATION |
static int |
DEFAULT_NUM_SEGMENTS |
static Point3d |
DEFAULT_ORIGIN_BASE_POSITION |
static Vector3d |
DEFAULT_ORIGIN_INTERPOLATION |
static double |
DEFAULT_REST_LENGTH |
static double |
DEFAULT_STIFFNESS |
static PropertyList |
myProps |
DEFAULT_MODEL_TITLE, testSaveAndRestoreStateDEFAULT_MAX_STEP_SIZEDEFAULT_NAVPANEL_DISPLAYenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONALSTATE_IS_VOLATILE| Constructor and Description |
|---|
WrapTestBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
By default, this method does nothing.
|
StepAdjustment |
advance(double t0,
double t1,
int flags)
Advances this model from time t0 to time t1.
|
void |
attach(DriverInterface di)
Attach this root model to a driver program
|
void |
build(java.lang.String[] args) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getDistanceGridDensity() |
Vector3i |
getExplicitGridRes() |
Point3d |
getInsertionBasePosition() |
Vector3d |
getInsertionInterpolation() |
Point3d |
getInsertionPosition() |
boolean |
getMenuItems(java.util.List<java.lang.Object> items)
Returns objects to be displayed under a "Model" menu in the main
ArtiSynth frame.
|
int |
getNumSegments() |
Point3d |
getOriginBasePosition() |
Vector3d |
getOriginInterpolation() |
Point3d |
getOriginPosition() |
double |
getProfileTime() |
MultiPointSpring |
getSpring() |
abstract Wrappable |
getWrappable() |
boolean |
isDistanceGridVisible() |
void |
reWrap() |
abstract void |
setDistanceGridDensity(double density) |
abstract void |
setDistanceGridVisible(boolean enable) |
void |
setDistanceGridVisible(Wrappable wrappable,
boolean enable) |
void |
setExplicitGridRes(Vector3i res) |
void |
setInsertionBasePosition(Point3d position) |
void |
setInsertionInterpolation(Vector3d interpolation) |
void |
setNumSegments(int numSegments) |
void |
setOriginBasePosition(Point3d position) |
void |
setOriginInterpolation(Vector3d interpolation) |
void |
setProfileTime(double interval) |
void |
update()
A callback called whenever this
Manager's currently "active"
object changes. |
addBreakPoint, addComponentChangeListener, addController, addController, addControlPanel, addControlPanel, addInputProbe, addInputProbe, addModel, addMonitor, addMonitor, addOutputProbe, addOutputProbe, addRenderable, addRenderable, addTracingProbe, addWayPoint, addWayPoint, applyControllers, applyInputProbes, applyMonitors, applyOutputProbes, checkWrite, clear, clearRenderables, clearTraces, clearTracing, componentChanged, createState, detach, disableAllTracing, disableTracing, dispose, enableTracing, findSourceDir, getAbout, getAdaptiveStepping, getControllers, getControlPanels, getControlPanelTabs, getDefaultViewOrientation, getInitialState, getInputProbes, getMainFrame, getMainViewer, getMinStepSize, getModelTitle, getMonitors, getNextAdvanceTime, getNumTraceables, getOutputProbes, getRoot, getSourceRelativePath, getStartTime, getState, getState, getStopRequest, getTaskManager, getTestSaveRestoreState, getTraceSet, getTracingProbe, getTracingProbes, getViewerCenter, getViewerEye, getViewerUp, getWayPoint, getWayPointChecking, getWayPoints, getWorkingFolder, hasRoot, hasState, hasTracingProbes, initialize, invalidateInitialState, isBaseProperty, isCheckEnabled, isFocusable, isTracing, loadControlPanel, mergeAllControlPanels, mergeControlPanel, models, notifyParentOfChange, notifyStructureChanged, postscan, postscanInitialize, prerender, removeAllControllers, removeAllControlPanels, removeAllInputProbes, removeAllModels, removeAllMonitors, removeAllOutputProbes, removeAllWayPoints, removeComponentChangeListener, removeController, removeControlPanel, removeInputProbe, removeModel, removeMonitor, removeOutputProbe, removeRenderable, removeRenderable, removeWayPoint, render, renderables, rerender, resetInitialState, scan, scanProbes, setAdaptiveStepping, setCheckEnabled, setDefaultValues, setDefaultViewOrientation, setDefaultViewOrientation, setFocusable, setMainViewer, setMaxStepSize, setMinStepSize, setModelTitle, setStartTime, setState, setStopRequest, setTaskManager, setTestSaveRestoreState, setTracingProbesVisible, setViewerCenter, setViewerEye, setViewerUp, setWayPointChecking, setWorkingFolder, stopAdvance, updateBounds, writecreateRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderPropscopy, getDefaultMaxStepSize, getMaxStepSize, hasParameterizedType, hierarchyContainsReferences, preadvance, setDefaultMaxStepSizeadd, add, addAll, addComponents, addFixed, addNumbered, clone, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getMinNumber, getNavpanelDisplay, getNumberLimit, getOneBasedNumbering, getParameterType, getShortName, hasChildren, incrementNumbering, indexOf, invalidateNumbers, isEditable, isEmpty, iterator, nextComponentNumber, numComponents, remove, remove, removeAll, removeAll, removeComponents, resetNumbersToIndices, retainAll, set, setEditable, setNavpanelDisplay, setNumbered, setOneBasedNumbering, setShortName, size, toArray, toArray, updateNameMapcheckFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writegetNameequals, hashCode, parallelStream, removeIf, spliterator, streamrecursivelyFindpublic static final Point3d DEFAULT_ORIGIN_BASE_POSITION
public static final Point3d DEFAULT_INSERTION_BASE_POSITION
public static final double DEFAULT_DISTANCE_GRID_DENSITY
public static final boolean DEFAULT_DISTANCE_GRID_VISIBILITY
public static final Vector3d DEFAULT_ORIGIN_INTERPOLATION
public static final Vector3d DEFAULT_INSERTION_INTERPOLATION
public static final Vector3i DEFAULT_EXPLICIT_GRID_RES
public static final int DEFAULT_NUM_SEGMENTS
public static final double DEFAULT_STIFFNESS
public static final double DEFAULT_DAMPING
public static final double DEFAULT_REST_LENGTH
public static PropertyList myProps
public void setProfileTime(double interval)
public double getProfileTime()
public void setDistanceGridVisible(Wrappable wrappable, boolean enable)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class RootModelpublic int getNumSegments()
public void setNumSegments(int numSegments)
public double getDistanceGridDensity()
public Vector3i getExplicitGridRes()
public void setExplicitGridRes(Vector3i res)
public abstract Wrappable getWrappable()
public abstract void setDistanceGridDensity(double density)
public boolean isDistanceGridVisible()
public abstract void setDistanceGridVisible(boolean enable)
public Point3d getOriginBasePosition()
public void setOriginBasePosition(Point3d position)
public Point3d getInsertionBasePosition()
public void setInsertionBasePosition(Point3d position)
public Vector3d getOriginInterpolation()
public void setOriginInterpolation(Vector3d interpolation)
public Vector3d getInsertionInterpolation()
public void setInsertionInterpolation(Vector3d interpolation)
public Point3d getOriginPosition()
public Point3d getInsertionPosition()
public void update()
Manager.UpdatableManager's currently "active"
object changes.update in interface Manager.Updatablepublic void build(java.lang.String[] args)
throws java.io.IOException
public void attach(DriverInterface di)
RootModelpublic boolean getMenuItems(java.util.List<java.lang.Object> items)
ModelBaselist
argument. The objects should be be items capable of being added to a
JMenu, including Component, JMenuItem, and String.
If the method returns false (the default behavior), that is
taken to indicate that this component has no menu items.getMenuItems in interface HasMenuItemsgetMenuItems in class ModelBaseitems - collects the objects that should be addedfalse if there are no items to add to the
model menu.GuiUtils.createMenuItem(java.awt.event.ActionListener, java.lang.String, java.lang.String)public void actionPerformed(java.awt.event.ActionEvent e)
ModelBaseModelBase.getMenuItems(java.util.List<java.lang.Object>).actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class ModelBasepublic void reWrap()
public StepAdjustment advance(double t0, double t1, int flags)
ModelBaseIf the method determines that the step size should be
reduced, it can return a StepAdjustment object indicating
the recommended reduction. Otherwise, the method may return
null
The flags argument gives additional information that may
be relevant when advancing the model. Currently implemented
flags include Model.STATE_IS_VOLATILE.
public MultiPointSpring getSpring()