public class FemModelDeformer extends FemModel3d implements java.awt.event.ActionListener
FemModel.ElementFilter, FemModel.IncompMethod, FemModel.Ranging, FemModel.StressStrainMeasure, FemModel.SurfaceRender
MechSystemBase.ConstraintForceStateSaver
Collidable.Collidability, Collidable.Group
ModelComponent.NavpanelVisibility
MechSystem.ConstraintInfo
CompositeComponent.NavpanelDisplay
abortOnInvertedElems, checkTangentStability, debugx, DEFAULT_ABORT_ON_INVERTED_ELEMENTS, DEFAULT_HARD_INCOMP, DEFAULT_SOFT_INCOMP, DEFAULT_SURFACEMESH_NAME, defaultAutoGenerateSurface, detJStepReductionLimit, frameMassFraction, myProps, noIncompressStiffnessDamping, useFrameRelativeCouplingMasses, useNodalMassWeights
DEFAULT_STABILIZATION, DEFAULT_USE_IMPLICIT_FRICTION, myParametricsInSystemMatrix, mySaveForcesAsState, useAllDynamicComps
DEFAULT_MAX_STEP_SIZE
DEFAULT_NAVPANEL_DISPLAY
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATING
All, AllBodies, Deformable, Rigid, Self
COPY_REFERENCES, REST_POSITION
STATE_IS_VOLATILE
COMPUTE_CONTACTS, UPDATE_CONTACTS
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
FemModelDeformer() |
FemModelDeformer(java.lang.String name,
MechModel mech,
int maxn) |
FemModelDeformer(java.lang.String name,
RootModel root,
int maxn) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
By default, this method does nothing.
|
void |
applyDeformation() |
ControlPanel |
createControlPanel() |
boolean |
getMenuItems(java.util.List<java.lang.Object> items)
Returns objects to be displayed under a "Model" menu in the main
ArtiSynth frame.
|
FemGeometryTransformer |
getTransformer() |
boolean |
hierarchyContainsReferences()
Returns true if the component hierarchy formed by this component and its
descendents is closed with respect to references.
|
javax.swing.JMenuItem |
makeMenuItem(java.lang.String cmd,
java.lang.String toolTip) |
void |
setForMechModel(java.lang.String name,
MechModel mech,
double wx,
double wy,
double wz,
int nx,
int ny,
int nz) |
void |
setForMechModel(java.lang.String name,
MechModel mech,
int maxn) |
void |
undoDeformation() |
addAuxMaterialBundle, addBilateralConstraints, addConnector, addCutPlane, addElement, addElements, addField, addGeneralMassBlocks, addMarker, addMarker, addMarker, addMaterialBundle, addMesh, addMesh, addMeshComp, addNode, addNodes, addNumberedElement, addNumberedMarker, addNumberedMarker, addNumberedNode, addNumberedShellElement, addPosJacobian, addShellElement, addShellElements, addSolveBlocks, addTransformableDependencies, addVelJacobian, attachFrame, checkElementCondition, clearAuxMaterialBundles, clearCutPlanes, clearElementConditionInfo, clearElements, clearFields, clearMaterialBundles, clearMeshComps, clearShellElements, collectStrainEnergy, computeStressAndStiffness, containsConnector, copy, createDefaultColorMap, createFrameAttachment, createFrameAttachment, createPointAttachment, createPointAttachment, createSurfaceMesh, dispose, findContainingElement, findNearestElement, findNearestElement, findNearestNode, findNearestNodes, findNearestShellElement, findNearestSurfaceElement, findNearestVolumetricElement, getAllElements, getAllPropertyInfo, getAttachments, getAugmentingMaterials, getAuxMaterialBundles, getAuxStateComponents, getAxisLength, getBilateralForces, getBilateralInfo, getBilateralSizes, getBVTree, getByNumber, getCollidable, getCollidableAncestor, getCollidables, getColorMap, getColorMapMode, getConnectors, getConstrainedComponents, getCopyReferences, getCutPlane, getCutPlanes, getDirectorRenderLen, getDynamicComponents, getDynamicComponents, getElement, getElementByNumber, getElementMaterial, getElementNeighbors, getElementRestVolumes, getElements, getElementWidgetSize, getElementWidgetSizeMode, getField, getFields, getFrame, getFrameConstraint, getHardIncompMethod, getIncompCompliance, getIncompForces, getIncompressible, getIncompressibleRange, getJacobianType, getMassMatrixValues, getMaterialBundles, getMeshComp, getMeshComp, getMeshComps, getNodalPlotRange, getNodalPlotRangeX, getNode, getNodeByNumber, getNodeNeighbors, getNodes, getOneBasedNodeElementNumbering, getSelection, getShellElement, getShellElementByNumber, getShellElements, getShellSurfaceElement, getSoftIncompMethod, getSoftIncompMethodRange, getState, getSurfaceElement, getSurfaceMesh, getSurfaceMeshComp, getSurfaceMeshes, getSurfaceNode, getSurfaceVertex, getTetAspectRatios, getUseConsistentMass, handleComponentChanged, hasHexMesh, hasTetMesh, invalidateElementRotationData, invalidateRestData, invalidateStressAndStiffness, invalidateSurfaceMesh, isAbortOnInvertedElements, isAutoGeneratingSurface, isCompound, isDeformable, isDuplicatable, isFrameRelative, isFreeBody, isSurfaceEdge, isSurfaceMeshValid, isSurfaceNode, isVolumeValid, isWarnOnInvertedElements, markInvertedRestElements, mulInverseMass, numAllElements, numCutPlanes, numElements, numFields, numHexElements, numMeshComps, numQuadraticElements, numShellElements, numSurfaceMeshes, numTetElements, postscan, prerender, printANSYSElements, printANSYSNodes, recursivelyFinalizeAdvance, recursivelyInitialize, removeAuxMaterialBundle, removeConnector, removeCutPlane, removeElement, removeField, removeMaterialBundle, removeMeshComp, removeNode, removeShellElement, render, resetRestPosition, scaleDistance, scaleMass, scan, scanMesh, scanMesh, scanSurfaceMesh, scanSurfaceMesh, setAbortOnInvertedElements, setAutoGenerateSurface, setAxisLength, setBilateralForces, setCollidable, setColorMap, setColorMapMode, setComputeStrainEnergy, setDirectorRenderLen, setElementWidgetSize, setElementWidgetSizeMode, setFrameRelative, setIncompCompliance, setIncompForces, setIncompressible, setMaterial, setOneBasedNodeElementNumbering, setSoftIncompMethod, setState, setSurfaceMesh, setSurfaceMeshComp, setUseConsistentMass, setWarnOnInvertedElements, subdivideHex, subdivideHexs, transformGeometry, transformGeometry, transformPose, updateBounds, updateConstraints, updateSlavePos, updateStress, updateStressAndStiffness, updateStressStrainRenderFlags, usingAttachedRelativeFrame, writeSurfaceMesh, writeSurfaceMesh, zeroForces
addFrictionConstraints, addMarker, addMarker, addMarker, addMarker, addMarker, addMarker, addUnilateralConstraints, applyForces, attachments, attachPoint, checkVelocityStability, clear, clearComputeNodalStressStrain, componentChanged, createDefaultMaterial, detachAllNodes, detachPoint, forcesNeedUpdating, getCharacteristicSize, getCollidables, getComputeNodalEnergyDensity, getComputeNodalStrain, getComputeNodalStress, getComputeStrainEnergy, getConstrainers, getDensity, getDensityMode, getEnergy, getForceEffectors, getFrictionForces, getFrictionState, getGravity, getGravityMode, getImplicitIterations, getImplicitPrecision, getKineticEnergy, getMass, getMassDamping, getMaterial, getNodeMass, getNumInverted, getParticleDamping, getRestVolume, getSlaveObjectComponents, getStiffnessDamping, getStrainEnergy, getStressPlotRange, getStressPlotRangeMode, getStressPlotRanging, getStressPlotRangingMode, getSurfaceRendering, getSurfaceRenderingMode, getToleranceType, getUnilateralForces, getUnilateralInfo, getUnilateralSizes, getUnilateralState, getVolume, hasState, markers, maxFrictionConstraintSets, needsNodalStress, numNodes, printNodeMasses, propertyChanged, removeMarker, resetAutoStressPlotRange, setBounds, setComputeNodalEnergyDensity, setComputeNodalStrain, setComputeNodalStress, setComputeNodalStressStrain, setDensity, setDensityMode, setFrictionForces, setFrictionState, setGravity, setGravity, setGravityMode, setImplicitIterations, setImplicitPrecision, setLinearMaterial, setMassDamping, setMaxStepSize, setParticleDamping, setStiffnessDamping, setStressPlotRange, setStressPlotRangeMode, setStressPlotRanging, setStressPlotRangingMode, setSurfaceRendering, setSurfaceRenderingMode, setToleranceType, setUnilateralForces, setUnilateralState, updateRestVolume, updateSlaveVel, updateVolume, zeroExternalForces
addActivePosImpulse, addAttachmentJacobian, addAttachmentSolveBlocks, addGeneralSolveBlocks, addPosJacobian, addVelJacobian, advance, advanceAuxState, applyAttachmentForces, buildMassMatrix, buildSolveMatrix, closePrintStateFile, collectInitialForces, createState, createVelocityJacobian, getActiveDampingMatrix, getActiveDynamicComponents, getActiveForces, getActiveMass, getActiveMassMatrix, getActivePosDerivative, getActivePosState, getActivePosStateSize, getActiveStiffnessMatrix, getActiveVelState, getActiveVelState, getActiveVelStateSize, getAttachmentConstraints, getAttachmentDerivatives, getAuxAdvanceState, getAuxVarDerivative, getAuxVarState, getAuxVarStateSize, getBilateralConstraints, getBilateralConstraintSizes, getBilateralForces, getBilateralInfo, getDefaultMatrixSolver, getDefaultStabilization, getDefaultUseImplicitFriction, getDynamicComponents, getDynamicDOFs, getDynamicsEnabled, getForces, getFrictionConstraints, getFrictionForces, getFrictionState, getInitialState, getIntegrator, getInverseMassMatrix, getMassMatrix, getMatrixSolver, getMatrixSolverRange, getNumBilateralForces, getNumUnilateralForces, getParametricForces, getParametricPosState, getParametricPosStateSize, getParametricPosTarget, getParametricVelState, getParametricVelStateSize, getParametricVelTarget, getPenetrationLimit, getPrintState, getProfiling, getSolveMatrixType, getSolver, getStabilization, getState, getStructureVersion, getUnilateralConstraints, getUnilateralConstraintSizes, getUnilateralForces, getUnilateralInfo, getUnilateralState, getUpdateForcesAtStepEnd, getUpdateForcesAtStepEndMode, getUseImplicitFriction, initialize, isBilateralStructureConstant, numActiveComponents, numAttachedComponents, numParametricComponents, openPrintStateFile, placeDynamicComponent, preadvance, printActiveMass, printActiveMass, printActiveStiffness, printActiveStiffness, recursivelyPrepareAdvance, reduceVelocityJacobian, reopenPrintStateFile, setActiveForces, setActivePosState, setActiveVelState, setAuxAdvanceState, setAuxVarState, setBilateralForces, setDefaultMatrixSolver, setDefaultStabilization, setDefaultUseImplicitFriction, setDynamicsEnabled, setForces, setFrictionForces, setFrictionState, setIntegrator, setMatrixSolver, setParametricForces, setParametricPosState, setParametricVelState, setPenetrationLimit, setPrintState, setPrintState, setProfiling, setStabilization, setState, setUnilateralForces, setUnilateralState, setUpdateForcesAtStepEnd, setUpdateForcesAtStepEndMode, setUseImplicitFriction, topMechSystem, updateAttachmentPos, updateAttachmentVel, updateConstraints, updateForces, updatePosState, updateVelState, writeBilateralConstraintMatrix, writeBilateralConstraintMatrix, writeMassMatrix, writeMassMatrix, writePrintStateHeader, writeStiffnessMatrix, writeStiffnessMatrix
createRenderProps, getRenderHints, getRenderProps, isSelectable, numSelectionQueriesNeeded, setRenderProps
copy, getDefaultMaxStepSize, getMaxStepSize, hasParameterizedType, setDefaultMaxStepSize
add, add, addAll, addComponents, addFixed, addNumbered, clone, contains, contains, containsAll, ensureCapacity, findComponent, get, get, getChildren, getNavpanelDisplay, getNumberLimit, getOneBasedNumbering, getParameterType, getShortName, hasChildren, indexOf, invalidateNumbers, isEditable, isEmpty, iterator, nextComponentNumber, numComponents, remove, remove, removeAll, removeAll, removeComponents, resetNumbersToIndices, retainAll, set, setEditable, setNavpanelDisplay, setNumbered, setOneBasedNumbering, setShortName, size, toArray, toArray, updateNameMap
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transformPriority
advanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, hasState, numAuxVars, requiresAdvance, setAuxVarState
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
isWritable, write
getMaxStepSize
getName
public FemModelDeformer()
public FemModelDeformer(java.lang.String name, RootModel root, int maxn)
public FemModelDeformer(java.lang.String name, MechModel mech, int maxn)
public void setForMechModel(java.lang.String name, MechModel mech, int maxn)
public void setForMechModel(java.lang.String name, MechModel mech, double wx, double wy, double wz, int nx, int ny, int nz)
public javax.swing.JMenuItem makeMenuItem(java.lang.String cmd, java.lang.String toolTip)
public ControlPanel createControlPanel()
public void undoDeformation()
public void applyDeformation()
public boolean getMenuItems(java.util.List<java.lang.Object> items)
ModelBase
list
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 HasMenuItems
getMenuItems
in class ModelBase
items
- 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)
ModelBase
ModelBase.getMenuItems(java.util.List<java.lang.Object>)
.actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class ModelBase
public boolean hierarchyContainsReferences()
ModelBase
In particular, this means that one does not need to search outside the hierarchy when looking for dependencies.
hierarchyContainsReferences
in interface CompositeComponent
hierarchyContainsReferences
in class ModelBase
public FemGeometryTransformer getTransformer()