public abstract class DynamicComponentBase
extends artisynth.core.modelbase.RenderableComponentBase
implements artisynth.core.mechmodels.DynamicComponent
| Modifier and Type | Field and Description |
|---|---|
protected artisynth.core.mechmodels.DynamicAttachment |
myAttachment |
protected java.util.LinkedList<artisynth.core.mechmodels.AttachingComponent> |
myAttachmentRequests |
protected java.util.ArrayList<artisynth.core.mechmodels.Constrainer> |
myConstrainers |
protected boolean |
myDynamicP |
protected java.util.LinkedList<artisynth.core.mechmodels.DynamicAttachment> |
myMasterAttachments |
protected int |
mySolveIdx |
ANCESTOR_SELECTED, DEFAULT_NAVPANEL_VISIBILITY, enforceUniqueCompositeNames, enforceUniqueNames, FIXED, FREE_FLAG_MASK, freeFlags, MARKED, myFlags, myName, myNumber, myParent, NAVPANEL_ALWAYS, NAVPANEL_HIDDEN, NON_WRITABLE, NULL_OBJ, SCANNING, SELECTED, useCompactPathNames| Constructor and Description |
|---|
DynamicComponentBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachmentRequest(artisynth.core.mechmodels.AttachingComponent ac) |
void |
addConstrainer(artisynth.core.mechmodels.Constrainer c) |
void |
addMasterAttachment(artisynth.core.mechmodels.DynamicAttachment a) |
abstract void |
addSolveBlock(maspack.matrix.SparseNumberedBlockMatrix S) |
void |
addTransformableDependencies(artisynth.core.modelbase.TransformGeometryContext context,
int flags) |
void |
connectToHierarchy(artisynth.core.modelbase.CompositeComponent comp) |
DynamicComponentBase |
copy(int flags,
java.util.Map<artisynth.core.modelbase.ModelComponent,artisynth.core.modelbase.ModelComponent> copyMap) |
void |
disconnectFromHierarchy(artisynth.core.modelbase.CompositeComponent comp) |
artisynth.core.mechmodels.DynamicAttachment |
getAttachment() |
java.util.List<artisynth.core.mechmodels.Constrainer> |
getConstrainers() |
void |
getInverseMass(maspack.matrix.Matrix Minv,
maspack.matrix.Matrix M) |
java.util.LinkedList<artisynth.core.mechmodels.DynamicAttachment> |
getMasterAttachments() |
int |
getSolveIndex() |
boolean |
hasState() |
boolean |
isActive() |
boolean |
isAttached() |
boolean |
isControllable() |
boolean |
isDynamic() |
boolean |
isParametric() |
boolean |
removeAttachmentRequest(artisynth.core.mechmodels.AttachingComponent ac) |
boolean |
removeConstrainer(artisynth.core.mechmodels.Constrainer c) |
void |
removeMasterAttachment(artisynth.core.mechmodels.DynamicAttachment a) |
void |
setAttached(artisynth.core.mechmodels.DynamicAttachment attachment) |
protected void |
setDynamic(boolean dynamic)
Sets the
dynamic property for this component. |
void |
setSolveIndex(int idx) |
void |
transformGeometry(maspack.matrix.AffineTransform3dBase X) |
void |
transformGeometry(maspack.geometry.GeometryTransformer gtr,
artisynth.core.modelbase.TransformGeometryContext context,
int flags) |
createRenderProps, defaultRenderProps, defaultRenderPropsAreNull, getAllPropertyInfo, getRenderHints, getRenderProps, getSelection, isSelectable, isVisible, numSelectionQueriesNeeded, prerender, render, setDefaultValues, setRenderProps, setVisible, updateBounds, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, dowrite, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, postscanAttributeName, postscanItem, postscanReference, postscanReferences, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, scanAndStoreReference, scanAndStoreReferences, scanAttributeName, scanItem, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, write, writeItemsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddForce, addPosImpulse, applyExternalForces, applyGravity, createMassBlock, getEffectiveMass, getEffectiveMass, getEffectiveMassForces, getForce, getMass, getMass, getPosDerivative, getPosState, getPosStateSize, getState, getVelState, getVelStateSize, hasForce, isMassConstant, mulInverseEffectiveMass, resetEffectiveMass, setForce, setPosState, setRandomForce, setRandomPosState, setRandomVelState, setState, setVelState, velocityLimitExceeded, zeroExternalForces, zeroForcesadvanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, numAuxVars, requiresAdvance, setAuxVarStategetHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesprotected artisynth.core.mechmodels.DynamicAttachment myAttachment
protected java.util.LinkedList<artisynth.core.mechmodels.DynamicAttachment> myMasterAttachments
protected java.util.LinkedList<artisynth.core.mechmodels.AttachingComponent> myAttachmentRequests
protected java.util.ArrayList<artisynth.core.mechmodels.Constrainer> myConstrainers
protected boolean myDynamicP
protected int mySolveIdx
public artisynth.core.mechmodels.DynamicAttachment getAttachment()
getAttachment in interface artisynth.core.mechmodels.DynamicAgentprotected void setDynamic(boolean dynamic)
dynamic property for this component. If the property
value is true, the component's position/velocity state will
evolve in time in response to forces. Typically, this method is made
publicly available only for components which contain mass, since force
response is ill-defined for components which don't.dynamic - setting for the dynamic propertypublic boolean isDynamic()
isDynamic in interface artisynth.core.mechmodels.DynamicAgentpublic void setAttached(artisynth.core.mechmodels.DynamicAttachment attachment)
setAttached in interface artisynth.core.mechmodels.DynamicAgentpublic boolean isActive()
isActive in interface artisynth.core.mechmodels.DynamicAgentpublic boolean isAttached()
isAttached in interface artisynth.core.mechmodels.DynamicAgentpublic boolean isParametric()
isParametric in interface artisynth.core.mechmodels.DynamicAgentpublic boolean isControllable()
isControllable in interface artisynth.core.mechmodels.DynamicAgentpublic int getSolveIndex()
getSolveIndex in interface artisynth.core.mechmodels.DynamicAgentpublic void setSolveIndex(int idx)
setSolveIndex in interface artisynth.core.mechmodels.DynamicAgentpublic abstract void addSolveBlock(maspack.matrix.SparseNumberedBlockMatrix S)
addSolveBlock in interface artisynth.core.mechmodels.DynamicAgentpublic void getInverseMass(maspack.matrix.Matrix Minv,
maspack.matrix.Matrix M)
getInverseMass in interface artisynth.core.mechmodels.DynamicAgentpublic void addMasterAttachment(artisynth.core.mechmodels.DynamicAttachment a)
addMasterAttachment in interface artisynth.core.mechmodels.DynamicAgentpublic void removeMasterAttachment(artisynth.core.mechmodels.DynamicAttachment a)
removeMasterAttachment in interface artisynth.core.mechmodels.DynamicAgentpublic java.util.LinkedList<artisynth.core.mechmodels.DynamicAttachment> getMasterAttachments()
getMasterAttachments in interface artisynth.core.mechmodels.DynamicAgentpublic java.util.List<artisynth.core.mechmodels.Constrainer> getConstrainers()
getConstrainers in interface artisynth.core.mechmodels.DynamicAgentpublic void addConstrainer(artisynth.core.mechmodels.Constrainer c)
addConstrainer in interface artisynth.core.mechmodels.DynamicAgentpublic boolean removeConstrainer(artisynth.core.mechmodels.Constrainer c)
removeConstrainer in interface artisynth.core.mechmodels.DynamicAgentpublic DynamicComponentBase copy(int flags, java.util.Map<artisynth.core.modelbase.ModelComponent,artisynth.core.modelbase.ModelComponent> copyMap)
copy in class artisynth.core.modelbase.RenderableComponentBasepublic boolean hasState()
hasState in interface artisynth.core.modelbase.HasNumericStatehasState in interface artisynth.core.modelbase.ModelComponenthasState in class artisynth.core.modelbase.ModelComponentBasepublic void transformGeometry(maspack.matrix.AffineTransform3dBase X)
transformGeometry in interface artisynth.core.modelbase.TransformableGeometrypublic void addTransformableDependencies(artisynth.core.modelbase.TransformGeometryContext context,
int flags)
addTransformableDependencies in interface artisynth.core.modelbase.TransformableGeometrypublic void transformGeometry(maspack.geometry.GeometryTransformer gtr,
artisynth.core.modelbase.TransformGeometryContext context,
int flags)
transformGeometry in interface artisynth.core.modelbase.TransformableGeometrypublic void addAttachmentRequest(artisynth.core.mechmodels.AttachingComponent ac)
addAttachmentRequest in interface artisynth.core.mechmodels.DynamicComponentpublic boolean removeAttachmentRequest(artisynth.core.mechmodels.AttachingComponent ac)
removeAttachmentRequest in interface artisynth.core.mechmodels.DynamicComponentpublic void connectToHierarchy(artisynth.core.modelbase.CompositeComponent comp)
connectToHierarchy in interface artisynth.core.modelbase.ModelComponentconnectToHierarchy in class artisynth.core.modelbase.ModelComponentBasepublic void disconnectFromHierarchy(artisynth.core.modelbase.CompositeComponent comp)
disconnectFromHierarchy in interface artisynth.core.modelbase.ModelComponentdisconnectFromHierarchy in class artisynth.core.modelbase.ModelComponentBase