public class GeneralWrapTest extends OneStrandWrapBase
| Modifier and Type | Class and Description |
|---|---|
static class |
GeneralWrapTest.GeometryType |
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilityCompositeComponent.NavpanelDisplay| Modifier and Type | Field and Description |
|---|---|
static boolean |
highGridRes |
static boolean |
highMeshRes |
static PropertyList |
myProps |
DEFAULT_MODEL_TITLE, testSaveAndRestoreStateDEFAULT_MAX_STEP_SIZEDEFAULT_NAVPANEL_DISPLAYenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONALSTATE_IS_VOLATILE| Constructor and Description |
|---|
GeneralWrapTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
By default, this method does nothing.
|
StepAdjustment |
advance(double t0,
double t1,
int flags)
Advances this model forward by a single time step.
|
void |
attach(DriverInterface driver)
Attach this root model to a driver program
|
void |
build(java.lang.String[] args)
Overridden by applications to populate the model with the necessary
simulation components (particles, rigid bodies, FE models, force
effectors, constrainers, etc., usually contained under one or more
MechModels) and instrumentation components (probes, controllers,
monitors, and control panels). |
void |
computeForceErrors(RigidBody body,
NumericProbeBase forceProbe,
NumericProbeBase momentProbe,
java.lang.String forceRefFileName,
java.lang.String momentRefFileName) |
static RigidBody |
createGeometry(GeneralWrapTest.GeometryType gtype,
double size,
double density,
boolean useMesh) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
boolean |
getMenuItems(java.util.List<java.lang.Object> items)
Returns objects to be displayed under a "Model" menu in the main
ArtiSynth frame.
|
int |
getSmoothIters() |
double |
getSmoothLambda() |
double |
getSmoothMu() |
Vector3d[] |
loadFileForceValues(java.lang.String fileName) |
Vector3d[] |
loadProbeForceValues(NumericProbeBase probe) |
void |
setSmoothIters(int iters) |
void |
setSmoothLambda(double lambda) |
void |
setSmoothMu(double mu) |
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, 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, reorderComponents, 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 boolean highMeshRes
public static boolean highGridRes
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class RootModelpublic int getSmoothIters()
public void setSmoothIters(int iters)
public double getSmoothLambda()
public void setSmoothLambda(double lambda)
public double getSmoothMu()
public void setSmoothMu(double mu)
public static RigidBody createGeometry(GeneralWrapTest.GeometryType gtype, double size, double density, boolean useMesh)
public void build(java.lang.String[] args)
RootModelMechModels) and instrumentation components (probes, controllers,
monitors, and control panels). The build() method is called only
when ArtiSynth loads the application directly from the class. It is
not called when the application is loaded from a .art
file.build in class OneStrandWrapBaseargs - command line arguments that can be optionally specified to
adjust how the model is createdpublic StepAdjustment advance(double t0, double t1, int flags)
RootModelpublic void attach(DriverInterface driver)
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 event)
ModelBaseModelBase.getMenuItems(java.util.List<java.lang.Object>).actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class ModelBasepublic Vector3d[] loadFileForceValues(java.lang.String fileName)
public Vector3d[] loadProbeForceValues(NumericProbeBase probe)
public void computeForceErrors(RigidBody body, NumericProbeBase forceProbe, NumericProbeBase momentProbe, java.lang.String forceRefFileName, java.lang.String momentRefFileName)