Package org.xj3d.sai.external.node.hanim
Class SAIHAnimSegment
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.hanim.SAIHAnimSegment
- All Implemented Interfaces:
HAnimSegment
,X3DBoundedObject
,X3DChildNode
,X3DGroupingNode
,X3DNode
A concrete implementation of the HAnimSegment node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIHAnimSegment
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildren
(X3DNode[] val) Set the addChildren field.void
getBboxCenter
(float[] val) Return the bboxCenter value in the argument float[]void
getBboxSize
(float[] val) Return the bboxSize value in the argument float[]void
getCenterOfMass
(float[] val) Return the centerOfMass value in the argument float[]void
getChildren
(X3DNode[] val) Return the children value in the argument X3DNode[]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 children field.int
Return the number of MFNode items in the displacers field.int
Return the number of MFFloat items in the momentsOfInertia field.void
removeChildren
(X3DNode[] val) Set the removeChildren field.void
setBboxCenter
(float[] val) Set the bboxCenter field.void
setBboxSize
(float[] val) Set the bboxSize field.void
setCenterOfMass
(float[] val) Set the centerOfMass field.void
setChildren
(X3DNode[] val) Set the children 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 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
-
SAIHAnimSegment
public SAIHAnimSegment(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
Method Details
-
getNumChildren
public int getNumChildren()Return the number of MFNode items in the children field.- Specified by:
getNumChildren
in interfaceX3DGroupingNode
- Returns:
- the number of MFNode items in the children field.
-
getChildren
Return the children value in the argument X3DNode[]- Specified by:
getChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to initialize.
-
setChildren
Set the children field.- Specified by:
setChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
addChildren
Set the addChildren field.- Specified by:
addChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
removeChildren
Set the removeChildren field.- Specified by:
removeChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
getBboxCenter
public void getBboxCenter(float[] val) Return the bboxCenter value in the argument float[]- Specified by:
getBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxCenter
public void setBboxCenter(float[] val) Set the bboxCenter field.- Specified by:
setBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getBboxSize
public void getBboxSize(float[] val) Return the bboxSize value in the argument float[]- Specified by:
getBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxSize
public void setBboxSize(float[] val) Set the bboxSize field.- Specified by:
setBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getCenterOfMass
public void getCenterOfMass(float[] val) Return the centerOfMass value in the argument float[]- Specified by:
getCenterOfMass
in interfaceHAnimSegment
- Parameters:
val
- The float[] to initialize.
-
setCenterOfMass
public void setCenterOfMass(float[] val) Set the centerOfMass field.- Specified by:
setCenterOfMass
in interfaceHAnimSegment
- Parameters:
val
- The float[] to set.
-
getCoord
Return the coord X3DNode value.- Specified by:
getCoord
in interfaceHAnimSegment
- Returns:
- The coord X3DNode value.
-
setCoord
Set the coord field.- Specified by:
setCoord
in interfaceHAnimSegment
- Parameters:
val
- The X3DCoordinateNode to set.
-
setCoord
Set the coord field.- Specified by:
setCoord
in interfaceHAnimSegment
- Parameters:
val
- The X3DProtoInstance to set.
-
getNumDisplacers
public int getNumDisplacers()Return the number of MFNode items in the displacers field.- Specified by:
getNumDisplacers
in interfaceHAnimSegment
- Returns:
- the number of MFNode items in the displacers field.
-
getDisplacers
Return the displacers value in the argument X3DNode[]- Specified by:
getDisplacers
in interfaceHAnimSegment
- Parameters:
val
- The X3DNode[] to initialize.
-
setDisplacers
Set the displacers field.- Specified by:
setDisplacers
in interfaceHAnimSegment
- Parameters:
val
- The X3DNode[] to set.
-
getMass
public float getMass()Return the mass float value.- Specified by:
getMass
in interfaceHAnimSegment
- Returns:
- The mass float value.
-
setMass
public void setMass(float val) Set the mass field.- Specified by:
setMass
in interfaceHAnimSegment
- Parameters:
val
- The float to set.
-
getNumMomentsOfInertia
public int getNumMomentsOfInertia()Return the number of MFFloat items in the momentsOfInertia field.- Specified by:
getNumMomentsOfInertia
in interfaceHAnimSegment
- Returns:
- the number of MFFloat items in the momentsOfInertia field.
-
getMomentsOfInertia
public void getMomentsOfInertia(float[] val) Return the momentsOfInertia value in the argument float[]- Specified by:
getMomentsOfInertia
in interfaceHAnimSegment
- Parameters:
val
- The float[] to initialize.
-
setMomentsOfInertia
public void setMomentsOfInertia(float[] val) Set the momentsOfInertia field.- Specified by:
setMomentsOfInertia
in interfaceHAnimSegment
- Parameters:
val
- The float[] to set.
-
getName
Return the name String value.- Specified by:
getName
in interfaceHAnimSegment
- Returns:
- The name String value.
-
setName
Set the name field.- Specified by:
setName
in interfaceHAnimSegment
- Parameters:
val
- The String to set.
-