public class FrameAttachedFrame extends AttachedFrame
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilityCompositeComponent.NavpanelDisplay| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
dynamicVelInWorldCoords, myRenderFrameenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesCOPY_REFERENCES, REST_POSITIONTG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATINGTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
FrameAttachedFrame()
Creates a new FrameAttachedFrame with default (identity) pose and no
master frame assigned.
|
FrameAttachedFrame(Frame frame,
RigidTransform3d TFW)
Creates a new FrameAttachedFrame with the specified world pose and
attaches it to the given master frame.
|
FrameAttachedFrame(RigidTransform3d TFW)
Creates a new FrameAttachedFrame with the specified world pose and no
master frame assigned.
|
FrameAttachedFrame(java.lang.String name)
Creates a new FrameAttachedFrame with the specified name, default
(identity) pose, and no master frame assigned.
|
| Modifier and Type | Method and Description |
|---|---|
FrameAttachedFrame |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap)
Create a copy of this component.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
boolean |
getCopyReferences(java.util.List<ModelComponent> refs,
ModelComponent ancestor)
Collects external references which must also be copied in order to
duplicate this component.
|
Frame |
getFrame()
Returns the Frame to which this frame is attached, or
null if
no master frame has been set. |
RigidTransform3d |
getTFM()
Returns the transform from this frame to its master frame.
|
boolean |
isDuplicatable()
Returns true if this component can be duplicated.
|
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
setAttached(DynamicAttachment ax)
Attach this component to another via a DynamicAttachment object.
|
void |
setFrame(Frame frame)
Attaches this frame to the specified master frame.
|
void |
setTFM(RigidTransform3d TFM)
Sets the transform from this frame to its master frame and updates the
world pose accordingly.
|
void |
setTFW(RigidTransform3d TFW)
Sets the world pose of this frame by specifying the transform from this
frame to world coordinates.
|
void |
updateAttachment() |
void |
updateState() |
connectAttachment, connectToHierarchy, disconnectFromHierarchy, getAttachments, getHardReferencesadd, add1DConstraintBlocks, add2DConstraintBlocks, addAttachedFrame, addAttachedFrame, addAttachedFrameWorld, addEffectiveFrameMass, addEffectivePointMass, addExternalForce, addForce, addForce, addFrameForce, addMarker, addMarker, addMarker, addMarkerWorld, addPointForce, addPointForce, addPosImpulse, addPosJacobian, addRelativeVelocity, addScaledExternalForce, addSolveBlock, addSolveBlocks, addTargetJacobian, addToPointVelocity, addTransformableDependencies, addVelJacobian, applyExternalForces, applyForces, applyGravity, canAddMarker, clearAttachedFrames, clearMarkers, collectMasterComponents, componentChanged, computeAppliedWrench, computeForceOnMasters, computeFrameLocation, computeFramePosition, computeFramePosVel, computeFrameVelocity, computePointCoriolis, computePointLocation, computePointPosition, computePointPosVel, computePointVelocity, createFrameAttachment, createMarker, createMarker, createMassBlock, createPointAttachment, createRenderProps, findComponent, get, get, getAttachedFrames, getAxisDrawStyle, getAxisLength, getBodyForce, getBodyVelocity, getBodyVelState, getByNumber, getChildren, getEffectiveMass, getEffectiveMass, getEffectiveMassForces, getExternalForce, getForce, getForce, getForce, getFrameDamping, getFrameDampingMode, getFrameMarkers, getJacobianType, getMarkers, getMass, getMass, getMoment, getNavpanelDisplay, getNumberLimit, getOrientation, getOrientation, getPosDerivative, getPose, getPose, getPosition, getPosState, getPosStateSize, getRenderFrame, getRotaryDamping, getRotaryDampingMode, getRotation, getSelection, getState, getTargetActivity, getTargetOrientation, getTargetPos, getTargetPose, getTargetPosition, getTargetVel, getTargetVelocity, getTraceablePositionProperty, getTraceables, getTransForce, getVelocity, getVelocity, getVelState, getVelStateSize, getWorldVelState, hasChildren, hasForce, hierarchyContainsReferences, indexOf, isMassConstant, mulInverseEffectiveMass, numComponents, postscan, prerender, remove, removeAttachedFrame, removeMarker, render, resetEffectiveMass, resetTargets, scaleMass, scan, setAxisDrawStyle, setAxisLength, setBodyVelocity, setContactConstraint, setExternalForce, setForce, setForce, setFrameDamping, setFrameDampingMode, setNavpanelDisplay, setOrientation, setPose, setPosition, setPosState, setRandomForce, setRandomPosState, setRandomVelState, setRotaryDamping, setRotaryDampingMode, setRotation, setState, setState, setTargetActivity, setTargetOrientation, setTargetPos, setTargetPose, setTargetPosition, setTargetVel, setTargetVelocity, setVelocity, setVelocity, setVelState, transformGeometry, transformPose, updateAttachmentPosStates, updateBounds, updateNameMap, velocityLimitExceeded, zeroExternalForces, zeroForcesaddAttachmentRequest, addConstrainer, addMasterAttachment, getAttachment, getConstrainers, getInverseMass, getMasterAttachments, getSolveIndex, hasState, isActive, isAttached, isControllable, isDynamic, isParametric, removeAttachmentRequest, removeConstrainer, removeMasterAttachment, setSolveIndex, transformGeometrydefaultRenderPropsAreNull, getRenderHints, getRenderProps, isSelectable, isVisible, numSelectionQueriesNeeded, setRenderProps, setVisible, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getGrandParent, 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, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttachmentgetName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writeaddAttachmentRequest, removeAttachmentRequestaddConstrainer, addMasterAttachment, getAttachment, getConstrainers, getInverseMass, getMasterAttachments, getSolveIndex, isActive, isAttached, isControllable, isDynamic, isParametric, removeConstrainer, removeMasterAttachment, setSolveIndexadvanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, hasState, numAuxVars, requiresAdvance, setAuxVarStatetransformGeometry, transformPriorityisControllablerecursivelyFindpublic static PropertyList myProps
public FrameAttachedFrame()
public FrameAttachedFrame(java.lang.String name)
name - name of the framepublic FrameAttachedFrame(RigidTransform3d TFW)
TFW - transform from this frame to world coordinatespublic FrameAttachedFrame(Frame frame, RigidTransform3d TFW)
frame - master frame to attach toTFW - transform from this frame to world coordinatespublic PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class Framepublic void setAttached(DynamicAttachment ax)
DynamicComponentBasesetAttached in interface DynamicAgentsetAttached in class DynamicComponentBaseax - Specifies the attachment relationship between
this component and its master(s)public Frame getFrame()
null if
no master frame has been set.nullpublic void setFrame(Frame frame)
frame - master frame to attach topublic RigidTransform3d getTFM()
public void setTFM(RigidTransform3d TFM)
TFM - transform from this frame to the master framepublic void setTFW(RigidTransform3d TFW)
TFW - transform from this frame to world coordinatespublic void updateState()
updateState in class AttachedFramepublic void updateAttachment()
public void scaleDistance(double s)
ScalableUnitsscaleDistance in interface ScalableUnitsscaleDistance in class Frames - scaling factorpublic boolean isDuplicatable()
true if and only if CopyableComponent.getCopyReferences(java.util.List<artisynth.core.modelbase.ModelComponent>, artisynth.core.modelbase.ModelComponent) returns true.
This method is not currently used. It is intended to provide a faster
way of determining if a component can be duplicated, without having to
use CopyableComponent.getCopyReferences(java.util.List<artisynth.core.modelbase.ModelComponent>, artisynth.core.modelbase.ModelComponent) to build the list of copy references.
isDuplicatable in interface CopyableComponentisDuplicatable in class Frametrue if this component can be duplicated.public boolean getCopyReferences(java.util.List<ModelComponent> refs, ModelComponent ancestor)
true if and only if CopyableComponent.isDuplicatable() returns
true.getCopyReferences in interface CopyableComponentgetCopyReferences in class Framerefs - list to which references are appendedancestor - root node of the hierarchy from which references are to be excludedpublic FrameAttachedFrame copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
CopyableComponentCOPY_REFERENCES
is set in flags, then any component referenced
by this component should itself be set to a copy. This
should be done first checking copyMap for an
existing copy of the referenced component. If there is no existing
copy, then a copy should be created by calling copy
recursively and adding the new copy to copyMap.copy in interface CopyableComponentcopy in class Frameflags - flags to control the copyingcopyMap - map to possible existing instances of referenced
components