iicm.vrml.pw
Class OrientationInterpolator

java.lang.Object
  extended by iicm.vrml.pw.Node
      extended by iicm.vrml.pw.Interpolator
          extended by iicm.vrml.pw.OrientationInterpolator
All Implemented Interfaces:
GotEventCallback

public class OrientationInterpolator
extends Interpolator


Field Summary
 MFFloat key
           
 MFRotation keyValue
           
 SFFloat set_fraction
           
 SFRotation value_changed
           
private  float[] values
           
 
Fields inherited from class iicm.vrml.pw.Node
DEF_KEYWORD, EXTERNPROTO_KEYWORD, fieldIScontent, newISname, newISnum, objname, PROTO_KEYWORD, ROUTE_KEYWORD, SCRIPT_KEYWORD, subfields, USE_KEYWORD, userdata
 
Constructor Summary
OrientationInterpolator()
           
 
Method Summary
(package private)  Field interpolate()
          derived class will call interpolateFloatvalues with appropriate arguments.
(package private)  void linearInterpolation(float frac, float key1, float key2, float[] val, int offs, float[] value, int valsperkey)
          linear interpolation of valsperkey values. fraction frac lies between key1 and key2.
 java.lang.String nodeName()
          the node's name
 void traverse(Traverser t)
          must call appropriate method of Traverser for node traversal
 
Methods inherited from class iicm.vrml.pw.Interpolator
gotEventCB, interpolateFloatvalues
 
Methods inherited from class iicm.vrml.pw.Node
addField, addRoute, atCurrLine, createInstanceFromName, deleteRoute, getEvent, readFields, readNode, readNodeBody, readNodeBody, tab, traverseNode, writeNode, writeSubfield, writeSubfields, writeX3dISfields, writeX3dNode, writeX3dNode, writeX3dNode, writeX3dSubfield, writeX3dSubfields, writeX3dSubfields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public MFFloat key

keyValue

public MFRotation keyValue

set_fraction

public SFFloat set_fraction

value_changed

public SFRotation value_changed

values

private float[] values
Constructor Detail

OrientationInterpolator

OrientationInterpolator()
Method Detail

nodeName

public java.lang.String nodeName()
Description copied from class: Node
the node's name

Specified by:
nodeName in class Node

traverse

public void traverse(Traverser t)
Description copied from class: Node
must call appropriate method of Traverser for node traversal

Specified by:
traverse in class Node

linearInterpolation

void linearInterpolation(float frac,
                         float key1,
                         float key2,
                         float[] val,
                         int offs,
                         float[] value,
                         int valsperkey)
linear interpolation of valsperkey values. fraction frac lies between key1 and key2. out: valsperkey interpolated values starting from index offs * valsperkey.

Overrides:
linearInterpolation in class Interpolator

interpolate

Field interpolate()
Description copied from class: Interpolator
derived class will call interpolateFloatvalues with appropriate arguments.

Specified by:
interpolate in class Interpolator
Returns:
field to which event should be sent (values changed) or null, if there are no event receivers.