artisynth.demos.mech
Class SpringMeshDemo
java.lang.Object
artisynth.core.modelbase.ModelComponentBase
artisynth.core.modelbase.ComponentList<ModelComponent>
artisynth.core.modelbase.ModelBase
artisynth.core.modelbase.RenderableModelBase
artisynth.core.workspace.RootModel
artisynth.demos.mech.SpringMeshDemo
- All Implemented Interfaces:
- ComponentChangeListener, ComponentListView<ModelComponent>, CompositeComponent, HasState, IndexedComponentList, Model, ModelComponent, MutableCompositeComponent<ModelComponent>, ParameterizedClass, RenderableComponent, java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Iterable<ModelComponent>, java.util.Collection<ModelComponent>, java.util.EventListener, HasProperties, HierarchyNode, GLRenderable, GLSelectable, HasRenderProps, Renderable, Disposable, ListView<ModelComponent>, Scannable
public class SpringMeshDemo
- extends RootModel
Methods inherited from class artisynth.core.workspace.RootModel |
actionPerformed, 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, disableAllTracing, disableTracing, dispose, enableTracing, getAdaptiveStepping, getControllers, getControlPanels, getControlPanelTabs, getDefaultViewOrientation, getInitialState, getInputProbes, getMainViewer, getMinStepSize, getModelMenuItems, getMonitors, getNextAdvanceTime, getNumTracables, getOutputProbes, getRoot, getState, getTraceSet, getTracingProbe, getTracingProbes, getViewerCenter, getViewerEye, getWayPoint, getWaypointChecking, getWayPoints, hasRoot, hasState, hasTracingProbes, initialize, isCheckEnabled, isFocusable, isTracing, loadControlPanel, makeMenuItem, mergeAllControlPanels, mergeControlPanel, models, notifyParentOfChange, notifyStructureChanged, postscan, prerender, removeAllControllers, removeAllControlPanels, removeAllInputProbes, removeAllModels, removeAllMonitors, removeAllOutputProbes, removeAllWayPoints, removeComponentChangeListener, removeController, removeControlPanel, removeInputProbe, removeModel, removeMonitor, removeOutputProbe, removeRenderable, removeRenderable, removeWayPoint, render, renderables, requestStop, rerender, scan, setAdaptiveStepping, setCheckEnabled, setDefaultValues, setDefaultViewOrientation, setFocusable, setMainViewer, setMaxStepSize, setMinStepSize, setState, setTracingProbesVisible, setViewerCenter, setViewerEye, setWaypointChecking, updateBounds |
Methods inherited from class artisynth.core.modelbase.ComponentList |
add, add, addAll, addComponents, addFixed, addNumbered, clone, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getNavpanelDisplay, getNumberLimit, getShortName, getTypeParameter, hasChildren, hasParameterizedType, indexOf, isEmpty, iterator, nextComponentNumber, numComponents, remove, remove, removeAll, removeAll, removeComponents, retainAll, setNavpanelDisplay, setNumberingStartAtOne, setShortName, size, toArray, toArray, updateNameMap |
Methods inherited from class artisynth.core.modelbase.ModelComponentBase |
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, 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, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences |
Methods inherited from interface java.util.Collection |
equals, hashCode |
debug
public static boolean debug
myProps
public static PropertyList myProps
SpringMeshDemo
public SpringMeshDemo()
SpringMeshDemo
public SpringMeshDemo(java.lang.String name)
getAllPropertyInfo
public PropertyList getAllPropertyInfo()
- Description copied from interface:
HasProperties
- Returns a list giving static information about all properties exported by
this object.
- Specified by:
getAllPropertyInfo
in interface HasProperties
- Overrides:
getAllPropertyInfo
in class RootModel
- Returns:
- static information for all exported properties
setAttachment
public void setAttachment(boolean enable)
getAttachment
public boolean getAttachment()
setCollision
public void setCollision(boolean enable)
getCollision
public boolean getCollision()
getCollider
public SoftPlaneCollider getCollider(MechModel model)
addProbes
public void addProbes(MechModel mech)
attach
public void attach(DriverInterface driver)
- Description copied from class:
RootModel
- Attach this root model to a driver program
- Overrides:
attach
in class RootModel
- Parameters:
driver
- Interface giving access to the frame and viewer
detach
public void detach(DriverInterface driver)
- Description copied from class:
RootModel
- Detach this root model from a driver program.
- Overrides:
detach
in class RootModel
advance
public StepAdjustment advance(double t0,
double t1,
int flags)
- Description copied from class:
ModelBase
- Advances this object from time t0 to time t1.
If 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
- Specified by:
advance
in interface Model
- Overrides:
advance
in class RootModel
- Parameters:
t0
- current time (seconds)t1
- new time to advance to (seconds)flags
- reserved for future use
- Returns:
- null, or a step adjustment recommendation
getAbout
public java.lang.String getAbout()
- Returns a text string giving a short description of this model.
- Overrides:
getAbout
in class RootModel
- Returns:
- text description of this model