public class OpenSimCustomJoint extends JointBase
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static Renderer.AxisDrawStyle |
DEFAULT_DRAW_ROT_AXES |
static Renderer.AxisDrawStyle |
DEFAULT_DRAW_TRANS_AXES |
static PropertyList |
myProps |
DEFAULT_SHAFT_LENGTH, DEFAULT_SHAFT_RADIUSdebug, useOldDerivativeMethodenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATINGTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
OpenSimCustomJoint() |
OpenSimCustomJoint(CustomJoint cj) |
OpenSimCustomJoint(RigidBody bodyA,
RigidBody bodyB,
RigidTransform3d XJointWorld,
TransformAxis[] axes,
Coordinate[] coords) |
OpenSimCustomJoint(RigidBody bodyA,
RigidTransform3d XFA,
RigidBody bodyB,
RigidTransform3d XDB,
TransformAxis[] axes,
Coordinate[] coords) |
OpenSimCustomJoint(RigidBody bodyA,
RigidTransform3d XFA,
RigidTransform3d XDW,
TransformAxis[] axes,
Coordinate[] coords) |
OpenSimCustomJoint(SpatialTransform trans,
java.util.ArrayList<Coordinate> coords) |
OpenSimCustomJoint(SpatialTransform trans,
CoordinateSet coords) |
OpenSimCustomJoint(TransformAxis[] axes,
Coordinate[] coords) |
| Modifier and Type | Method and Description |
|---|---|
PropertyInfoList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Wrench |
getCoordinateWrenchG(int idx) |
OpenSimCustomCoupling |
getCoupling()
Returns the coupling used by this connector.
|
Renderer.AxisDrawStyle |
getDrawRotAxes() |
Renderer.AxisDrawStyle |
getDrawTransAxes() |
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
void |
setDrawRotAxes(Renderer.AxisDrawStyle style) |
void |
setDrawTransAxes(Renderer.AxisDrawStyle style) |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
double |
updateConstraints(double t,
int flags)
Updates the current set of constraints, and returns the maximum
penetration
> 0 associated with all of them. |
addCoordinateMobilities, addCoordinateSolveBlocks, addCoordinateVelJacobian, applyCoordinateForce, coordinatesToTCD, getCoordinate, getCoordinateDeg, getCoordinateIndex, getCoordinateMotionType, getCoordinateName, getCoordinateRange, getCoordinateRangeDeg, getCoordinates, getCoordinateSpeed, getCoordinateValue, getCoordinateValueDeg, getMaxCoordinate, getMaxCoordinateDeg, getMinCoordinate, getMinCoordinateDeg, getPosition, getRangeLimitCompliance, getRangeLimitDamping, getRangeLimitForce, getShaftLength, getShaftRadius, getStoredCoordinates, getStoredTCD, getStoredTCD, isCoordinateLocked, numCoordinates, setCoordinate, setCoordinateDeg, setCoordinateLocked, setCoordinateName, setCoordinateRange, setCoordinateRangeDeg, setCoordinates, setRangeLimitCompliance, setShaftLength, setShaftRadiusaddBilateralConstraints, addBilateralConstraints, addFrictionConstraints, addMasterBlocks, addTransformableDependencies, addUnilateralConstraints, addUnilateralConstraints, computeConstraintMatrixA, computeConstraintMatrixB, connectToHierarchy, copy, disconnectFromHierarchy, findAttachedBodies, findConnectedBodies, getActivation, getAxisLength, getBilateralForceInA, getBilateralForceInA, getBilateralForceInB, getBilateralForceInB, getBilateralForceInC, getBilateralForceInC, getBilateralForces, getBilateralInfo, getBilateralSizes, getBodyA, getBodyB, getCompliance, getConstrainedComponents, getConstraint, getConstraintFlags, getConstraintForce, getCopyReferences, getCurrentTCD, getCurrentTCW, getCurrentTCW, getCurrentTDW, getCurrentTDW, getDamping, getDrawFrameC, getDrawFrameD, getFrameAttachmentA, getFrameAttachmentB, getFrictionForces, getFrictionState, getHardReferences, getLinearCompliance, getOtherBody, getPenetrationTol, getPenetrationTolMode, getPose, getRenderFrame, getRotaryCompliance, getRotaryLimitTol, getRotaryLimitTolMode, getState, getStateVersion, getTransformDGeometryOnly, getTransformPositionOnly, getUnilateralForceInA, getUnilateralForceInA, getUnilateralForceInB, getUnilateralForceInB, getUnilateralForceInC, getUnilateralForceInC, getUnilateralForces, getUnilateralInfo, getUnilateralSizes, getUnilateralState, hasState, isActive, isConnectedToBodies, isDuplicatable, isEnabled, isNotAttached, maxFrictionConstraintSets, numBilateralConstraints, numConstraints, numEngagedUnilateralConstraints, numUnilateralConstraints, printConnectedBodies, printConstraintInfo, scaleDistance, scaleMass, setAlwaysAdjustBodyA, setAxisLength, setBilateralForces, setBodies, setBodies, setBodies, setBodies, setBodyA, setBodyA, setBodyB, setBodyB, setCompliance, setCurrentTCW, setCurrentTDW, setDamping, setDrawFrameC, setDrawFrameD, setEnabled, setFrictionForces, setFrictionState, setLinearCompliance, setPenetrationTol, setPenetrationTolMode, setRotaryCompliance, setRotaryLimitTol, setRotaryLimitTolMode, setState, setTransformDGeometryOnly, setTransformPositionOnly, setUnilateralForces, setUnilateralState, transformGeometry, transformGeometry, updateAttachments, withinLoop, zeroForcescreateRenderProps, defaultRenderPropsAreNull, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getChildren, getGrandParent, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformPriorityadvanceState, getAuxVarDerivative, getAuxVarState, numAuxVars, requiresAdvance, setAuxVarStategetName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static Renderer.AxisDrawStyle DEFAULT_DRAW_ROT_AXES
public static Renderer.AxisDrawStyle DEFAULT_DRAW_TRANS_AXES
public static PropertyList myProps
public OpenSimCustomJoint()
public OpenSimCustomJoint(CustomJoint cj)
public OpenSimCustomJoint(SpatialTransform trans, CoordinateSet coords)
public OpenSimCustomJoint(SpatialTransform trans, java.util.ArrayList<Coordinate> coords)
public OpenSimCustomJoint(TransformAxis[] axes, Coordinate[] coords)
public OpenSimCustomJoint(RigidBody bodyA, RigidTransform3d XFA, RigidTransform3d XDW, TransformAxis[] axes, Coordinate[] coords)
public OpenSimCustomJoint(RigidBody bodyA, RigidTransform3d XFA, RigidBody bodyB, RigidTransform3d XDB, TransformAxis[] axes, Coordinate[] coords)
public OpenSimCustomJoint(RigidBody bodyA, RigidBody bodyB, RigidTransform3d XJointWorld, TransformAxis[] axes, Coordinate[] coords)
public PropertyInfoList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class JointBasepublic Renderer.AxisDrawStyle getDrawRotAxes()
public void setDrawRotAxes(Renderer.AxisDrawStyle style)
public Renderer.AxisDrawStyle getDrawTransAxes()
public void setDrawTransAxes(Renderer.AxisDrawStyle style)
public void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderableupdateBounds in interface IsRenderableupdateBounds in class BodyConnectorpmin - minimum pointpmax - maximum pointpublic void prerender(RenderList list)
IsRenderablelist.addIfVisible (obj);
for each of the objects in question.prerender in interface IsRenderableprerender in class BodyConnectorlist - list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerender in class BodyConnectorrenderer - 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 OpenSimCustomCoupling getCoupling()
BodyConnectorgetCoupling in class BodyConnectorpublic Wrench getCoordinateWrenchG(int idx)
public double updateConstraints(double t,
int flags)
BodyConnector> 0 associated with all of them. If no constraints are
presently active, returns -1.updateConstraints in interface ConstrainerupdateConstraints in class BodyConnector