com.sun.j3d.loaders.lw3d
Class SwitchPathInterpolator

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Behavior
                  extended by javax.media.j3d.Interpolator
                      extended by com.sun.j3d.loaders.lw3d.FloatValueInterpolator
                          extended by com.sun.j3d.loaders.lw3d.SwitchPathInterpolator

 class SwitchPathInterpolator
extends FloatValueInterpolator

This class was used in conjunction with SequenceReader to create Tloop functionality inside of Lightwave files. This behavior handles the switching between objects defined in separate lines of a sequence file. That is, each line in a sequence file has the name of an object (or an object sequence, if the name ends in "000") and details the start and end frames that that object should be active. This class determines which object/s defined in the file should be active at any given time during the animation.


Field Summary
(package private)  int childCount
           
(package private)  int currentChild
           
(package private)  int firstSwitchIndex
           
(package private)  int lastSwitchIndex
           
(package private)  Switch target
           
 
Fields inherited from class com.sun.j3d.loaders.lw3d.FloatValueInterpolator
currentInterpolationRatio, currentKnotIndex, currentValue, values
 
Fields inherited from class javax.media.j3d.Interpolator
defaultWakeupCriterion
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
SwitchPathInterpolator(Alpha alpha, float[] knots, Switch target)
          Constructs a new SwitchPathInterpolator object.
 
Method Summary
 void processStimulus(java.util.Enumeration criteria)
          This method sets the correct child for the Switch node according to alpha
 
Methods inherited from class com.sun.j3d.loaders.lw3d.FloatValueInterpolator
computePathInterpolation, getValue, setValue
 
Methods inherited from class javax.media.j3d.Interpolator
getAlpha, initialize, setAlpha
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

Switch target

firstSwitchIndex

int firstSwitchIndex

lastSwitchIndex

int lastSwitchIndex

currentChild

int currentChild

childCount

int childCount
Constructor Detail

SwitchPathInterpolator

SwitchPathInterpolator(Alpha alpha,
                       float[] knots,
                       Switch target)
Constructs a new SwitchPathInterpolator object.

Parameters:
alpha - the alpha object for this interpolator
knots - an array of knot values that specify a spline
Method Detail

processStimulus

public void processStimulus(java.util.Enumeration criteria)
This method sets the correct child for the Switch node according to alpha

Specified by:
processStimulus in class Behavior
Parameters:
criteria - enumeration of criteria that have triggered this wakeup


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.