edu.washington.NVisF.animator
Class SwitchMovie

java.lang.Object
  |
  +--edu.washington.NVisF.animator.SwitchMovie

public class SwitchMovie
extends java.lang.Object

Constructs a movie from a set of frames (that is, ObjectGroups and a supplied Alpha object. This class uses a Switch object to switch between the BranchGroups retrieved from the ObjectGroups. In fact, the current algorithm puts 10 BranchGroups to a Switch, and uses one main Switch to flip between the other Switches. There are a number of potential algorithms for setting up a Java3D movie, and I am continuing to explore the performance of each. This class is closely related to the SwitchMovieBehavior class that actually runs the movie, and the two should be modified together.


Constructor Summary
SwitchMovie()
           
 
Method Summary
 void makeMovie(ObjectGroup[] frames, Alpha alpha)
          Attaches the supplied movie frames to the Switch objects and sets up the SwitchMovieBehavior object.
 void registerMovie(PlotEnvironment pe)
          attaches the stored movie to the supplied PlotEnvironment.
 void start()
          start showing the movie.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchMovie

public SwitchMovie()
Method Detail

makeMovie

public void makeMovie(ObjectGroup[] frames,
                      Alpha alpha)
Attaches the supplied movie frames to the Switch objects and sets up the SwitchMovieBehavior object. The movie is stored within this class for later use.

registerMovie

public void registerMovie(PlotEnvironment pe)
attaches the stored movie to the supplied PlotEnvironment. This method should only be called after a call to makeMovie(edu.washington.NVisF.plotter.ObjectGroup[], javax.media.j3d.Alpha). The movie will not be visible until a later call to start().

start

public void start()
start showing the movie. This method should only be called after calling registerMovie(edu.washington.NVisF.viewer.PlotEnvironment).