com.jlindamood.MS3D
Class MilkAnimation

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended bycom.jlindamood.MS3D.MilkAnimation

public class MilkAnimation
extends javax.media.j3d.Behavior

This behavior controlls the animation of Milkshape3D files.

Author:
Jack Lindamood

Field Summary
 
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_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Method Summary
 long getDuration()
          Returns the animation files current duration between frames
 void initialize()
           
 void processStimulus(java.util.Enumeration enumeration)
           
 void setDuration(long duration)
          Changes the time (in Milliseconds) from one keyframe to the next
 void setFrames(int start, int end)
          Sets the starting and ending frames for the animation to those given
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public void initialize()

processStimulus

public void processStimulus(java.util.Enumeration enumeration)

setDuration

public void setDuration(long duration)
Changes the time (in Milliseconds) from one keyframe to the next

Parameters:
duration - new duration

getDuration

public long getDuration()
Returns the animation files current duration between frames

Returns:
the animation file's duration

setFrames

public void setFrames(int start,
                      int end)
Sets the starting and ending frames for the animation to those given

Parameters:
start - Starting frame
end - Ending frame