artisynth.core.mechmodels
Class MarkerPlanarConnector

java.lang.Object
  extended by artisynth.core.modelbase.ModelComponentBase
      extended by artisynth.core.modelbase.RenderableComponentBase
          extended by artisynth.core.mechmodels.RigidBodyConnector
              extended by artisynth.core.mechmodels.PlanarConnector
                  extended by artisynth.core.mechmodels.MarkerPlanarConnector
All Implemented Interfaces:
Constrainer, HasAuxState, RigidBodyConstrainer, CopyableComponent, HasCoordinateFrame, ModelComponent, RenderableComponent, ScalableUnits, TransformableGeometry, java.lang.Cloneable, HasProperties, HierarchyNode, GLRenderable, GLSelectable, HasRenderProps, Renderable, Scannable

public class MarkerPlanarConnector
extends PlanarConnector


Nested Class Summary
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent
ModelComponent.NavpanelVisibility
 
Nested classes/interfaces inherited from interface artisynth.core.mechmodels.HasAuxState
HasAuxState.StateContext
 
Field Summary
 
Fields inherited from class artisynth.core.mechmodels.PlanarConnector
myProps
 
Fields inherited from class artisynth.core.modelbase.ModelComponentBase
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
 
Fields inherited from interface artisynth.core.modelbase.CopyableComponent
COPY_REFERENCES
 
Fields inherited from interface artisynth.core.util.TransformableGeometry
ARTICULATED, SIMULATING
 
Fields inherited from interface maspack.render.GLRenderable
TRANSLUCENT, TWO_DIMENSIONAL
 
Constructor Summary
MarkerPlanarConnector()
           
MarkerPlanarConnector(FrameMarker mkr, RigidBody bodyB, RigidTransform3d XPB)
           
MarkerPlanarConnector(FrameMarker mkr, RigidTransform3d XPW)
           
 
Method Summary
 int getBilateralConstraints(java.util.ArrayList<RigidBodyConstraint> bilaterals)
          Gets the bilateral constraints associated with this constrainer.
 FrameMarker getFrameMarker()
           
 double getUnilateralConstraints(java.util.ArrayList<RigidBodyConstraint> unilaterals, boolean setEngaged)
          Gets the unilateral constraints associated with this constrainer.
 void setFrameMarker(FrameMarker mkr)
           
 void setUnilateral(boolean unilateral)
           
 
Methods inherited from class artisynth.core.mechmodels.PlanarConnector
copy, createRenderProps, getAllPropertyInfo, getPlanarActivation, getPlaneSize, isUnilateral, prerender, render, scaleDistance, set, set, setDefaultValues, setPlaneSize, updateBounds
 
Methods inherited from class artisynth.core.mechmodels.RigidBodyConnector
addBilateralConstraints, addFrictionConstraints, addFrictionConstraints, addUnilateralConstraints, advanceAuxState, connectToHierarchy, disconnectFromHierarchy, getActivation, getAuxState, getBilateralBlockA, getBilateralBlockB, getBilateralForceInA, getBilateralForceInA, getBilateralImpulses, getBilateralInfo, getBilateralSizes, getBodyA, getBodyB, getBreakAccel, getBreakSpeed, getCompliance, getContactDistance, getCopyReferences, getCurrentXDB, getCurrentXDW, getCurrentXFA, getCurrentXFW, getDamping, getHardReferences, getInitialAuxState, getLinearCompliance, getPenetrationTol, getPenetrationTolMode, getPose, getRotaryCompliance, getUnilateralBlockA, getUnilateralBlockB, getUnilateralForceInA, getUnilateralForceInA, getUnilateralImpulses, getUnilateralInfo, getUnilateralSizes, getXCA, getXCB, getXDB, getXFA, hasState, hasUnilateralConstraints, isActive, isDuplicatable, isEnabled, maxFrictionConstraintSets, numBilateralConstraints, numBodies, numUnilateralConstraints, scaleMass, setAuxState, setBilateralImpulses, setBodies, setBreakAccel, setBreakSpeed, setCompliance, setContactDistance, setDamping, setEnabled, setLinearCompliance, setPenetrationTol, setPenetrationTolMode, setRotaryCompliance, setUnilateralImpulses, setXDB, setXFA, skipAuxState, transformGeometry, transformGeometry, updateBodyStates, updateConstraints, updateForBodyPositionChange, updateUnilateralConstraints, zeroImpulses
 
Methods inherited from class artisynth.core.modelbase.RenderableComponentBase
getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderProps, updateRenderProps
 
Methods inherited from class artisynth.core.modelbase.ModelComponentBase
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getChildren, getGrandParent, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface artisynth.core.modelbase.CopyableComponent
getCopyReferences, isDuplicatable
 
Methods inherited from interface artisynth.core.modelbase.ModelComponent
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
 
Methods inherited from interface maspack.properties.HasProperties
getProperty
 
Methods inherited from interface maspack.properties.HierarchyNode
getChildren, hasChildren
 
Methods inherited from interface maspack.util.Scannable
isWritable, write
 

Constructor Detail

MarkerPlanarConnector

public MarkerPlanarConnector(FrameMarker mkr,
                             RigidBody bodyB,
                             RigidTransform3d XPB)

MarkerPlanarConnector

public MarkerPlanarConnector(FrameMarker mkr,
                             RigidTransform3d XPW)

MarkerPlanarConnector

public MarkerPlanarConnector()
Method Detail

setFrameMarker

public void setFrameMarker(FrameMarker mkr)

getFrameMarker

public FrameMarker getFrameMarker()

getBilateralConstraints

public int getBilateralConstraints(java.util.ArrayList<RigidBodyConstraint> bilaterals)
Description copied from interface: RigidBodyConstrainer
Gets the bilateral constraints associated with this constrainer. They are supplied by the constrainer and appended to an array list.

Specified by:
getBilateralConstraints in interface RigidBodyConstrainer
Overrides:
getBilateralConstraints in class RigidBodyConnector
Parameters:
bilaterals - array list into which the constrainer places the constraints

getUnilateralConstraints

public double getUnilateralConstraints(java.util.ArrayList<RigidBodyConstraint> unilaterals,
                                       boolean setEngaged)
Description copied from interface: RigidBodyConstrainer
Gets the unilateral constraints associated with this constrainer. They are supplied by the constrainer and appended to an array list.

Specified by:
getUnilateralConstraints in interface RigidBodyConstrainer
Overrides:
getUnilateralConstraints in class RigidBodyConnector
Parameters:
unilaterals - array list into which the constrainer places the constraints
setEngaged - if true, recompute the set of unilateral constraints. If false, the set of unilateral constraints will stay the same.
Returns:
maximum penetration of the unilateral constraints

setUnilateral

public void setUnilateral(boolean unilateral)
Overrides:
setUnilateral in class PlanarConnector