Package org.web3d.x3d.sai.hanim
Interface HAnimSegment
- All Superinterfaces:
X3DBoundedObject
,X3DChildNode
,X3DGroupingNode
,X3DNode
- All Known Implementing Classes:
SAIHAnimSegment
,SAIHAnimSegment
Defines the requirements of an X3D HAnimSegment node
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getCenterOfMass
(float[] val) Return the centerOfMass value in the argument float[]getCoord()
Return the coord X3DNode value.void
getDisplacers
(X3DNode[] val) Return the displacers value in the argument X3DNode[]float
getMass()
Return the mass float value.void
getMomentsOfInertia
(float[] val) Return the momentsOfInertia value in the argument float[]getName()
Return the name String value.int
Return the number of MFNode items in the displacers field.int
Return the number of MFFloat items in the momentsOfInertia field.void
setCenterOfMass
(float[] val) Set the centerOfMass field.void
Set the coord field.void
setCoord
(X3DProtoInstance val) Set the coord field.void
setDisplacers
(X3DNode[] val) Set the displacers field.void
setMass
(float val) Set the mass field.void
setMomentsOfInertia
(float[] val) Set the momentsOfInertia field.void
Set the name field.Methods inherited from interface org.web3d.x3d.sai.X3DBoundedObject
getBboxCenter, getBboxSize, setBboxCenter, setBboxSize
Methods inherited from interface org.web3d.x3d.sai.X3DGroupingNode
addChildren, getChildren, getNumChildren, removeChildren, setChildren
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Method Details
-
getCenterOfMass
void getCenterOfMass(float[] val) Return the centerOfMass value in the argument float[]- Parameters:
val
- The float[] to initialize.
-
setCenterOfMass
void setCenterOfMass(float[] val) Set the centerOfMass field.- Parameters:
val
- The float[] to set.
-
getCoord
-
setCoord
Set the coord field.- Parameters:
val
- The X3DCoordinateNode to set.
-
setCoord
Set the coord field.- Parameters:
val
- The X3DProtoInstance to set.
-
getNumDisplacers
int getNumDisplacers()Return the number of MFNode items in the displacers field.- Returns:
- the number of MFNode items in the displacers field.
-
getDisplacers
Return the displacers value in the argument X3DNode[]- Parameters:
val
- The X3DNode[] to initialize.
-
setDisplacers
-
getMass
float getMass()Return the mass float value.- Returns:
- The mass float value.
-
setMass
void setMass(float val) Set the mass field.- Parameters:
val
- The float to set.
-
getNumMomentsOfInertia
int getNumMomentsOfInertia()Return the number of MFFloat items in the momentsOfInertia field.- Returns:
- the number of MFFloat items in the momentsOfInertia field.
-
getMomentsOfInertia
void getMomentsOfInertia(float[] val) Return the momentsOfInertia value in the argument float[]- Parameters:
val
- The float[] to initialize.
-
setMomentsOfInertia
void setMomentsOfInertia(float[] val) Set the momentsOfInertia field.- Parameters:
val
- The float[] to set.
-
getName
-
setName
-