Class SAIBallJoint
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAIBallJoint
- All Implemented Interfaces:
BallJoint
,X3DNode
,X3DRigidJointNode
A concrete implementation of the BallJoint node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIBallJoint
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAnchorPoint
(float[] val) Return the anchorPoint value in the argument float[]getBody1()
Return the body1 X3DNode value.void
getBody1AnchorPoint
(float[] val) Return the body1AnchorPoint value in the argument float[]getBody2()
Return the body2 X3DNode value.void
getBody2AnchorPoint
(float[] val) Return the body2AnchorPoint value in the argument float[]void
getForceOutput
(String[] val) Return the forceOutput value in the argument String[]int
Return the number of MFString items in the forceOutput field.void
setAnchorPoint
(float[] val) Set the anchorPoint field.void
Set the body1 field.void
Set the body2 field.void
setForceOutput
(String[] val) Set the forceOutput field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIBallJoint
public SAIBallJoint(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
Method Details
-
getNumForceOutput
public int getNumForceOutput()Return the number of MFString items in the forceOutput field.- Specified by:
getNumForceOutput
in interfaceX3DRigidJointNode
- Returns:
- the number of MFString items in the forceOutput field.
-
getForceOutput
Return the forceOutput value in the argument String[]- Specified by:
getForceOutput
in interfaceX3DRigidJointNode
- Parameters:
val
- The String[] to initialize.
-
setForceOutput
Set the forceOutput field.- Specified by:
setForceOutput
in interfaceX3DRigidJointNode
- Parameters:
val
- The String[] to set.
-
getBody1
Return the body1 X3DNode value.- Specified by:
getBody1
in interfaceX3DRigidJointNode
- Returns:
- The body1 X3DNode value.
-
setBody1
Set the body1 field.- Specified by:
setBody1
in interfaceX3DRigidJointNode
- Parameters:
val
- The X3DNode to set.
-
getBody2
Return the body2 X3DNode value.- Specified by:
getBody2
in interfaceX3DRigidJointNode
- Returns:
- The body2 X3DNode value.
-
setBody2
Set the body2 field.- Specified by:
setBody2
in interfaceX3DRigidJointNode
- Parameters:
val
- The X3DNode to set.
-
getAnchorPoint
public void getAnchorPoint(float[] val) Return the anchorPoint value in the argument float[]- Specified by:
getAnchorPoint
in interfaceBallJoint
- Parameters:
val
- The float[] to initialize.
-
setAnchorPoint
public void setAnchorPoint(float[] val) Set the anchorPoint field.- Specified by:
setAnchorPoint
in interfaceBallJoint
- Parameters:
val
- The float[] to set.
-
getBody1AnchorPoint
public void getBody1AnchorPoint(float[] val) Return the body1AnchorPoint value in the argument float[]- Specified by:
getBody1AnchorPoint
in interfaceBallJoint
- Parameters:
val
- The float[] to initialize.
-
getBody2AnchorPoint
public void getBody2AnchorPoint(float[] val) Return the body2AnchorPoint value in the argument float[]- Specified by:
getBody2AnchorPoint
in interfaceBallJoint
- Parameters:
val
- The float[] to initialize.
-