com.sun.j3d.loaders.lw3d
Class SequenceReader
java.lang.Object
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.
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sequenceLines
java.util.Vector sequenceLines
totalTime
float totalTime
totalFrames
int totalFrames
objectTransform
TransformGroup objectTransform
behaviorVector
java.util.Vector behaviorVector
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
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.