Class BasePositionInterpolator2D

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

public abstract class BasePositionInterpolator2D extends BaseInterpolatorNode
Abstract implementation of a position interpolator 2D 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.8 $
Author:
Justin Couch