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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchMovie
public SwitchMovie()
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)
.