Class SAIPositionInterpolator
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.interpolation.SAIPositionInterpolator
- All Implemented Interfaces:
PositionInterpolator,X3DChildNode,X3DInterpolatorNode,X3DNode
A concrete implementation of the PositionInterpolator node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIPositionInterpolator(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidgetKey(float[] val) Return the key value in the argument float[]voidgetKeyValue(float[] val) Return the keyValue value in the argument float[]intReturn the number of MFFloat items in the key field.intReturn the number of MFVec3f items in the keyValue field.voidgetValue(float[] val) Return the value_changed value in the argument float[]voidsetFraction(float val) Set the set_fraction field.voidsetKey(float[] val) Set the key field.voidsetKeyValue(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, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIPositionInterpolator
public SAIPositionInterpolator(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue-
-
-
Method Details
-
getNumKey
public int getNumKey()Return the number of MFFloat items in the key field.- Specified by:
getNumKeyin interfaceX3DInterpolatorNode- Returns:
- the number of MFFloat items in the key field.
-
getKey
public void getKey(float[] val) Return the key value in the argument float[]- Specified by:
getKeyin interfaceX3DInterpolatorNode- Parameters:
val- The float[] to initialize.
-
setKey
public void setKey(float[] val) Set the key field.- Specified by:
setKeyin interfaceX3DInterpolatorNode- Parameters:
val- The float[] to set.
-
getNumKeyValue
public int getNumKeyValue()Return the number of MFVec3f items in the keyValue field.- Specified by:
getNumKeyValuein interfacePositionInterpolator- Returns:
- the number of MFVec3f items in the keyValue field.
-
getKeyValue
public void getKeyValue(float[] val) Return the keyValue value in the argument float[]- Specified by:
getKeyValuein interfacePositionInterpolator- Parameters:
val- The float[] to initialize.
-
setKeyValue
public void setKeyValue(float[] val) Set the keyValue field.- Specified by:
setKeyValuein interfacePositionInterpolator- Parameters:
val- The float[] to set.
-
setFraction
public void setFraction(float val) Set the set_fraction field.- Specified by:
setFractionin interfaceX3DInterpolatorNode- Parameters:
val- The float to set.
-
getValue
public void getValue(float[] val) Return the value_changed value in the argument float[]- Specified by:
getValuein interfacePositionInterpolator- Parameters:
val- The float[] to initialize.
-