public abstract class DynamicComponentBase extends RenderableComponentBase implements DynamicComponent
ModelComponent.NavpanelVisibility
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, myProps, NULL_OBJ, useCompactPathNames
TRANSLUCENT, TWO_DIMENSIONAL
Constructor and Description |
---|
DynamicComponentBase() |
Modifier and Type | Method and Description |
---|---|
void |
addMasterAttachment(DynamicAttachment a)
Add a DynamicAttachment to the list of master attachments associated
with this component.
|
abstract void |
addSolveBlock(SparseNumberedBlockMatrix S) |
ModelComponent |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap) |
DynamicAttachment |
getAttachment()
Returns the slave attachment associated with this component, if any.
|
void |
getInverseMass(Matrix Minv,
Matrix M)
Inverts a mass for this component.
|
java.util.LinkedList<DynamicAttachment> |
getMasterAttachments()
Returns a list of the attachments for which this component is a master, or
null if there are no such attachments.
|
int |
getSolveIndex() |
boolean |
hasState()
Returns true if this component has state.
|
boolean |
isActive()
Returns true if this component is active.
|
boolean |
isAttached()
Returns true if this component is attached.
|
boolean |
isControllable()
Returns true is this component is active, or it is attached to one
or more other components which ultimately are attached to at least
one active component.
|
boolean |
isDynamic()
Returns true if this component is dynamic.
|
boolean |
isParametric()
Returns true if the state of this component is determined parametrically;
i.e., it is neither dynamic nor attached.
|
void |
removeMasterAttachment(DynamicAttachment a)
Removes a DynamicAttachment from the list of master attachments associated
with this component.
|
void |
setAttached(DynamicAttachment attachment)
Attach this component to another via a DynamicAttachment object.
|
void |
setSolveIndex(int idx) |
createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, render, setRenderProps, updateBounds, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getAllPropertyInfo, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPosImpulse, applyExternalForces, applyGravity, checkFlag, clearFlag, createMassBlock, getEffectiveMass, getEffectiveMassForces, getForce, getMass, getMass, getPosDerivative, getPosState, getPosStateSize, getVelState, getVelStateSize, isMassConstant, mulInverseEffectiveMass, resetEffectiveMass, setFlag, setForce, setPosState, setVelState, velocityLimitExceeded, zeroExternalForces, zeroForces
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
isWritable, write
addPosJacobian, addSolveBlocks, addVelJacobian, applyForces, getJacobianType
public DynamicAttachment getAttachment()
DynamicComponent
getAttachment
in interface DynamicComponent
public boolean isDynamic()
DynamicComponent
isDynamic
in interface DynamicComponent
public void setAttached(DynamicAttachment attachment)
DynamicComponent
setAttached
in interface DynamicComponent
attachment
- Specifies the attachment relationship between
this component and its master(s)public boolean isActive()
DynamicComponent
isActive
in interface DynamicComponent
public boolean isAttached()
DynamicComponent
isAttached
in interface DynamicComponent
public boolean isParametric()
DynamicComponent
isParametric
in interface DynamicComponent
public boolean isControllable()
DynamicComponent
isControllable
in interface DynamicComponent
public int getSolveIndex()
getSolveIndex
in interface DynamicComponent
public void setSolveIndex(int idx)
setSolveIndex
in interface DynamicComponent
public abstract void addSolveBlock(SparseNumberedBlockMatrix S)
addSolveBlock
in interface DynamicComponent
public void getInverseMass(Matrix Minv, Matrix M)
DynamicComponent
getInverseMass
in interface DynamicComponent
Minv
- matrix to return the inverse mass inM
- matrix containing the mass to be invertedpublic void addMasterAttachment(DynamicAttachment a)
DynamicComponent
addMasterAttachment
in interface DynamicComponent
a
- master attachment to addpublic void removeMasterAttachment(DynamicAttachment a)
DynamicComponent
removeMasterAttachment
in interface DynamicComponent
a
- master attachment to removepublic java.util.LinkedList<DynamicAttachment> getMasterAttachments()
DynamicComponent
getMasterAttachments
in interface DynamicComponent
public ModelComponent copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
copy
in class RenderableComponentBase
public boolean hasState()
hasState
in interface ModelComponent
hasState
in class ModelComponentBase