Class SAISliderJoint
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAISliderJoint
- All Implemented Interfaces:
SliderJoint,X3DNode,X3DRigidJointNode
A concrete implementation of the SliderJoint node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode -
Constructor Summary
ConstructorsConstructorDescriptionSAISliderJoint(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAxis(float[] val) Return the axis value in the argument float[]getBody1()Return the body1 X3DNode value.getBody2()Return the body2 X3DNode value.voidgetForceOutput(String[] val) Return the forceOutput value in the argument String[]floatReturn the maxSeparation float value.floatReturn the minSeparation float value.intReturn the number of MFString items in the forceOutput field.floatReturn the separation float value.floatReturn the separationRate float value.floatReturn the stopBounce float value.floatReturn the stopErrorCorrection float value.voidsetAxis(float[] val) Set the axis field.voidSet the body1 field.voidSet the body2 field.voidsetForceOutput(String[] val) Set the forceOutput field.voidsetMaxSeparation(float val) Set the maxSeparation field.voidsetMinSeparation(float val) Set the minSeparation field.voidsetStopBounce(float val) Set the stopBounce field.voidsetStopErrorCorrection(float val) Set the stopErrorCorrection field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAISliderJoint
public SAISliderJoint(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf-
-
-
Method Details
-
getNumForceOutput
public int getNumForceOutput()Return the number of MFString items in the forceOutput field.- Specified by:
getNumForceOutputin interfaceX3DRigidJointNode- Returns:
- the number of MFString items in the forceOutput field.
-
getForceOutput
Return the forceOutput value in the argument String[]- Specified by:
getForceOutputin interfaceX3DRigidJointNode- Parameters:
val- The String[] to initialize.
-
setForceOutput
Set the forceOutput field.- Specified by:
setForceOutputin interfaceX3DRigidJointNode- Parameters:
val- The String[] to set.
-
getBody1
Return the body1 X3DNode value.- Specified by:
getBody1in interfaceX3DRigidJointNode- Returns:
- The body1 X3DNode value.
-
setBody1
Set the body1 field.- Specified by:
setBody1in interfaceX3DRigidJointNode- Parameters:
val- The X3DNode to set.
-
getBody2
Return the body2 X3DNode value.- Specified by:
getBody2in interfaceX3DRigidJointNode- Returns:
- The body2 X3DNode value.
-
setBody2
Set the body2 field.- Specified by:
setBody2in interfaceX3DRigidJointNode- Parameters:
val- The X3DNode to set.
-
getAxis
public void getAxis(float[] val) Return the axis value in the argument float[]- Specified by:
getAxisin interfaceSliderJoint- Parameters:
val- The float[] to initialize.
-
setAxis
public void setAxis(float[] val) Set the axis field.- Specified by:
setAxisin interfaceSliderJoint- Parameters:
val- The float[] to set.
-
getMinSeparation
public float getMinSeparation()Return the minSeparation float value.- Specified by:
getMinSeparationin interfaceSliderJoint- Returns:
- The minSeparation float value.
-
setMinSeparation
public void setMinSeparation(float val) Set the minSeparation field.- Specified by:
setMinSeparationin interfaceSliderJoint- Parameters:
val- The float to set.
-
getMaxSeparation
public float getMaxSeparation()Return the maxSeparation float value.- Specified by:
getMaxSeparationin interfaceSliderJoint- Returns:
- The maxSeparation float value.
-
setMaxSeparation
public void setMaxSeparation(float val) Set the maxSeparation field.- Specified by:
setMaxSeparationin interfaceSliderJoint- Parameters:
val- The float to set.
-
getSeparation
public float getSeparation()Return the separation float value.- Specified by:
getSeparationin interfaceSliderJoint- Returns:
- The separation float value.
-
getSeparationRate
public float getSeparationRate()Return the separationRate float value.- Specified by:
getSeparationRatein interfaceSliderJoint- Returns:
- The separationRate float value.
-
getStopBounce
public float getStopBounce()Return the stopBounce float value.- Specified by:
getStopBouncein interfaceSliderJoint- Returns:
- The stopBounce float value.
-
setStopBounce
public void setStopBounce(float val) Set the stopBounce field.- Specified by:
setStopBouncein interfaceSliderJoint- Parameters:
val- The float to set.
-
getStopErrorCorrection
public float getStopErrorCorrection()Return the stopErrorCorrection float value.- Specified by:
getStopErrorCorrectionin interfaceSliderJoint- Returns:
- The stopErrorCorrection float value.
-
setStopErrorCorrection
public void setStopErrorCorrection(float val) Set the stopErrorCorrection field.- Specified by:
setStopErrorCorrectionin interfaceSliderJoint- Parameters:
val- The float to set.
-