com.sun.j3d.loaders.lw3d
Class SequenceReader

java.lang.Object
  extended by com.sun.j3d.loaders.lw3d.SequenceReader

 class SequenceReader
extends java.lang.Object

This class was created to read a special file format devised for JavaOne '98 that allowed Tloop functionality inside of Lightwave. It would be best to find a more standard solution, including using some plug-in for lw3d that I've heard of that allows artists to automatically save out the geometry for a file at every frame.


Field Summary
(package private)  java.util.Vector behaviorVector
           
(package private)  TransformGroup objectTransform
           
(package private)  java.util.Vector sequenceLines
           
(package private)  int totalFrames
           
(package private)  float totalTime
           
 
Constructor Summary
SequenceReader(java.lang.String filename, float time, int frames)
          Constructor: parses a sequence file and creates a new SequenceLine object to read in every line of the file
 
Method Summary
(package private)  void createJava3dObjects(int debugVals, int loadBehaviors)
          Creates Java3D objects from the data defined in the sequence file.
(package private)  java.util.Vector getObjectBehaviors()
           
(package private)  TransformGroup getObjectNode()
           
(package private)  void printLines()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sequenceLines

java.util.Vector sequenceLines

totalTime

float totalTime

totalFrames

int totalFrames

objectTransform

TransformGroup objectTransform

behaviorVector

java.util.Vector behaviorVector
Constructor Detail

SequenceReader

SequenceReader(java.lang.String filename,
               float time,
               int frames)
         throws ParsingErrorException
Constructor: parses a sequence file and creates a new SequenceLine object to read in every line of the file

Throws:
ParsingErrorException
Method Detail

createJava3dObjects

void createJava3dObjects(int debugVals,
                         int loadBehaviors)
                   throws java.io.FileNotFoundException
Creates Java3D objects from the data defined in the sequence file. Calls each sequenceLine object to create its own j3d objects, then puts all of those objects in a single Switch node. Finally, it creates a SwitchPathInterpolator object which handles switching between each object/s defined by each line

Throws:
java.io.FileNotFoundException

getObjectNode

TransformGroup getObjectNode()

getObjectBehaviors

java.util.Vector getObjectBehaviors()

printLines

void printLines()


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