Class BasePositionInterpolator

java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseInterpolatorNode
org.web3d.vrml.renderer.common.nodes.interpolator.BasePositionInterpolator
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLChildNodeType, VRMLInterpolatorNodeType, VRMLNodeType, VRMLWorldRootChildNodeType
Direct Known Subclasses:
NRPositionInterpolator, OGLPositionInterpolator

public abstract class BasePositionInterpolator extends BaseInterpolatorNode
Abstract implementation of a position interpolator so that specific renderer instances can derive from it.

Interpolator nodes are designed for linear keyframed animation. Interpolators are driven by an input key ranging [0..1] and produce corresponding piecewise-linear output functions.

As interpolators all have the same number and named fields, we perform all of the setup here in this class. The handling of the basic fields are performed where you see the overridden methods, however routing and sets are not looked after.

If the key and keyValue fields are not the same length then we take the lesser of the two and only assign that many vertices to the interpolator to handle.

Version:
$Revision: 1.17 $
Author:
Justin Couch