com.sun.j3d.loaders.lw3d
Class LightIntensityPathInterpolator

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.LightIntensityPathInterpolator

 class LightIntensityPathInterpolator
extends FloatValueInterpolator

This Interpolator object modifies the intensity of a Light object according to the keyframes in a light intensity envelope


Field Summary
(package private)  LwLightObject theLight
           
 
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
LightIntensityPathInterpolator(Alpha alpha, float[] knots, float[] values, java.lang.Object target)
           
 
Method Summary
 void processStimulus(java.util.Enumeration criteria)
          This method is invoked by the behavior scheduler every frame.
 
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

theLight

LwLightObject theLight
Constructor Detail

LightIntensityPathInterpolator

LightIntensityPathInterpolator(Alpha alpha,
                               float[] knots,
                               float[] values,
                               java.lang.Object target)
Method Detail

processStimulus

public void processStimulus(java.util.Enumeration criteria)
This method is invoked by the behavior scheduler every frame. It maps the alpha value that corresponds to the current time into the appropriate light intensity for that time as obtained by interpolating between the light intensity values for each knot point that were passed to this class.

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.