Class SAIOrientationInterpolator
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.interpolation.SAIOrientationInterpolator
- All Implemented Interfaces:
OrientationInterpolator
,X3DChildNode
,X3DInterpolatorNode
,X3DNode
A concrete implementation of the OrientationInterpolator node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIOrientationInterpolator
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getKey
(float[] val) Return the key value in the argument float[]void
getKeyValue
(float[] val) Return the keyValue value in the argument float[]int
Return the number of MFFloat items in the key field.int
Return the number of MFRotation items in the keyValue field.void
getValue
(float[] val) Return the value value in the argument float[]void
setFraction
(float val) Set the fraction field.void
setKey
(float[] val) Set the key field.void
setKeyValue
(float[] val) Set the keyValue 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
-
SAIOrientationInterpolator
public SAIOrientationInterpolator(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
node
-nodeFactory
-fieldFactory
-queue
-
-
-
Method Details
-
getNumKey
public int getNumKey()Return the number of MFFloat items in the key field.- Specified by:
getNumKey
in interfaceX3DInterpolatorNode
- Returns:
- the number of MFFloat items in the key field.
-
getKey
public void getKey(float[] val) Description copied from interface:X3DInterpolatorNode
Return the key value in the argument float[]- Specified by:
getKey
in interfaceX3DInterpolatorNode
- Parameters:
val
- The float[] to initialize.
-
setKey
public void setKey(float[] val) Description copied from interface:X3DInterpolatorNode
Set the key field.- Specified by:
setKey
in interfaceX3DInterpolatorNode
- Parameters:
val
- The float[] to set.
-
getNumKeyValue
public int getNumKeyValue()Description copied from interface:OrientationInterpolator
Return the number of MFRotation items in the keyValue field.- Specified by:
getNumKeyValue
in interfaceOrientationInterpolator
- Returns:
- the number of MFRotation items in the keyValue field.
-
getKeyValue
public void getKeyValue(float[] val) Description copied from interface:OrientationInterpolator
Return the keyValue value in the argument float[]- Specified by:
getKeyValue
in interfaceOrientationInterpolator
- Parameters:
val
- The float[] to initialize.
-
setKeyValue
public void setKeyValue(float[] val) Description copied from interface:OrientationInterpolator
Set the keyValue field.- Specified by:
setKeyValue
in interfaceOrientationInterpolator
- Parameters:
val
- The float[] to set.
-
setFraction
public void setFraction(float val) Description copied from interface:X3DInterpolatorNode
Set the fraction field.- Specified by:
setFraction
in interfaceX3DInterpolatorNode
- Parameters:
val
- The float to set.
-
getValue
public void getValue(float[] val) Description copied from interface:OrientationInterpolator
Return the value value in the argument float[]- Specified by:
getValue
in interfaceOrientationInterpolator
- Parameters:
val
- The float[] to initialize.
-