public class OpenSimCustomJoint extends JointBase
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_RADIUS
debug, useOldDerivativeMethod
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATING
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
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) |
int |
getCoordIndex(java.lang.String name) |
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. |
addCoordinateSolveBlocks, addCoordinateVelJacobian, applyCoordinateForce, coordinatesToTCD, getCoordinate, getCoordinateDeg, getCoordinateIndex, getCoordinateMotionType, getCoordinateName, getCoordinateRange, getCoordinateRangeDeg, getCoordinates, getCoordinateSpeed, getCoordinateValue, getMaxCoordinate, getMaxCoordinateDeg, getMinCoordinate, getMinCoordinateDeg, getPosition, getShaftLength, getShaftRadius, getStoredCoordinates, getStoredTCD, getStoredTCD, isCoordinateLocked, numCoordinates, setCoordinate, setCoordinateDeg, setCoordinateLocked, setCoordinateName, setCoordinateRange, setCoordinateRangeDeg, setCoordinates, setShaftLength, setShaftRadius
addBilateralConstraints, addFrictionConstraints, addMasterBlocks, addTransformableDependencies, addUnilateralConstraints, computeConstraintMatrixA, computeConstraintMatrixB, connectToHierarchy, copy, disconnectFromHierarchy, findAttachedBodies, 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, 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, setCompliance, setCurrentTCW, setCurrentTDW, setDamping, setDrawFrameC, setDrawFrameD, setEnabled, setFrictionForces, setFrictionState, setLinearCompliance, setPenetrationTol, setPenetrationTolMode, setRotaryCompliance, setRotaryLimitTol, setRotaryLimitTolMode, setState, setTransformDGeometryOnly, setTransformPositionOnly, setUnilateralForces, setUnilateralState, transformGeometry, transformGeometry, updateAttachments, zeroForces
createRenderProps, defaultRenderPropsAreNull, getRenderHints, getRenderProps, getSelection, isSelectable, isVisible, numSelectionQueriesNeeded, setRenderProps, setVisible, updateRenderProps
checkFlag, 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, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transformPriority
advanceState, getAuxVarDerivative, getAuxVarState, numAuxVars, requiresAdvance, setAuxVarState
getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
public static Renderer.AxisDrawStyle DEFAULT_DRAW_ROT_AXES
public static Renderer.AxisDrawStyle DEFAULT_DRAW_TRANS_AXES
public static PropertyList myProps
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()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class JointBase
public 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)
IsRenderable
updateBounds
in interface IsRenderable
updateBounds
in class BodyConnector
pmin
- minimum pointpmax
- maximum pointpublic void prerender(RenderList list)
IsRenderable
list.addIfVisible (obj);
for each of the objects in question.prerender
in interface IsRenderable
prerender
in class BodyConnector
list
- list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class BodyConnector
renderer
- 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()
BodyConnector
getCoupling
in class BodyConnector
public 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 Constrainer
updateConstraints
in class BodyConnector
public int getCoordIndex(java.lang.String name)