public class RevoluteJoint extends JointBase implements CopyableComponent
ModelComponent.NavpanelVisibilityHasAuxState.StateContext| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesCOPY_REFERENCESTG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATINGTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
RevoluteJoint() |
RevoluteJoint(ConnectableBody bodyA,
ConnectableBody bodyB,
RigidTransform3d TCW) |
RevoluteJoint(ConnectableBody bodyA,
RigidTransform3d TCW) |
RevoluteJoint(RigidBody bodyA,
RigidTransform3d TCA,
RigidBody bodyB,
RigidTransform3d XDB) |
RevoluteJoint(RigidBody bodyA,
RigidTransform3d TCA,
RigidTransform3d TDW) |
| Modifier and Type | Method and Description |
|---|---|
ModelComponent |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap)
Create a copy of this component.
|
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getTheta() |
DoubleInterval |
getThetaRange() |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
boolean |
scanItem(ReaderTokenizer rtok,
java.util.Deque<ScanToken> tokens) |
void |
setDefaultValues()
Sets the attributes of this component to their default values.
|
void |
setMaxTheta(double max) |
void |
setMinTheta(double min) |
void |
setTheta(double theta) |
void |
setThetaRange(double min,
double max) |
void |
setThetaRange(DoubleInterval range) |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
getAxisLength, getDrawFrame, getDrawFrameC, getDrawFrameD, getPosition, getRenderFrame, prerender, scaleDistance, setAxisLength, setDrawFrame, setDrawFrameC, setDrawFrameDaddBilateralConstraints, addFrictionConstraints, addMasterBlocks, addTransformableDependencies, addUnilateralConstraints, advanceAuxState, connectToHierarchy, disconnectFromHierarchy, findAttachedBodies, getActivation, getAuxState, getBilateralConstraints, getBilateralForceInA, getBilateralForceInA, getBilateralImpulses, getBilateralInfo, getBilateralSizes, getBodyA, getBodyB, getBreakAccel, getBreakSpeed, getCompliance, getConstrainedComponents, getContactDistance, getCopyReferences, getCurrentTCW, getCurrentTCW, getCurrentTDW, getCurrentTDW, getCurrentTXW, getDamping, getHardReferences, getInitialAuxState, getLinearCompliance, getOtherBody, getPenetrationTol, getPenetrationTolMode, getPose, getRotaryCompliance, getUnilateralConstraints, getUnilateralForceInA, getUnilateralForceInA, getUnilateralImpulses, getUnilateralInfo, getUnilateralSizes, hasState, hasTranslation, hasUnilateralConstraints, isActive, isDuplicatable, isEnabled, maxFrictionConstraintSets, numBilateralConstraints, numBodies, numUnilateralConstraints, printConstraintInfo, scaleMass, setAuxState, setBilateralImpulses, setBodies, setBodies, setBodies, setBodies, setBreakAccel, setBreakSpeed, setCompliance, setContactDistance, setCurrentTCW, setCurrentTDW, setDamping, setEnabled, setLinearCompliance, setPenetrationTol, setPenetrationTolMode, setRotaryCompliance, setUnilateralImpulses, skipAuxState, transformGeometry, transformGeometry, updateBodyStates, updateConstraints, updateForBodyPositionChange, updateUnilateralConstraints, zeroImpulsesgetRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderProps, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getChildren, getGrandParent, 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, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCopyReferences, isDuplicatableconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writepublic static PropertyList myProps
public RevoluteJoint()
public RevoluteJoint(RigidBody bodyA, RigidTransform3d TCA, RigidBody bodyB, RigidTransform3d XDB)
public RevoluteJoint(RigidBody bodyA, RigidTransform3d TCA, RigidTransform3d TDW)
public RevoluteJoint(ConnectableBody bodyA, RigidTransform3d TCW)
public RevoluteJoint(ConnectableBody bodyA, ConnectableBody bodyB, RigidTransform3d TCW)
public double getTheta()
public void setTheta(double theta)
public DoubleInterval getThetaRange()
public void setThetaRange(DoubleInterval range)
public void setThetaRange(double min,
double max)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class JointBasepublic void setDefaultValues()
ModelComponentBasesetDefaultValues in class JointBasepublic RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropscreateRenderProps in class JointBasepublic void setMaxTheta(double max)
public void setMinTheta(double min)
public void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderableupdateBounds in interface IsRenderableupdateBounds in class JointBasepmin - minimum pointpmax - maximum pointpublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerender in class JointBaserenderer - provides the functionality used to perform the rendering.flags - flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT and
Renderer.SORT_FACES.public boolean scanItem(ReaderTokenizer rtok, java.util.Deque<ScanToken> tokens) throws java.io.IOException
java.io.IOExceptionpublic ModelComponent 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 JointBaseflags - flags to control the copyingcopyMap - map to possible existing instances of referenced
components