com.sun.j3d.loaders.lw3d
Class LwsEnvelope
java.lang.Object
com.sun.j3d.loaders.lw3d.TextfileParser
com.sun.j3d.loaders.lw3d.LwsEnvelope
- Direct Known Subclasses:
- LwsEnvelopeLightIntensity
class LwsEnvelope
- extends TextfileParser
This class is a superclass for any implementation of envelopes; the
only subclass currently is LwsEnvelopeLightIntensity. LwsEnvelope
parses the data in a Scene file and extracts the envelope data.
Fields inherited from class com.sun.j3d.loaders.lw3d.TextfileParser |
currentLevel, debugPrinter, EXCEPTION, LINE_TRACE, lineSeparatorChar, MISC, NONE, NUMBER, TIME, TRACE, VALUES, WORD |
Constructor Summary |
LwsEnvelope(java.io.StreamTokenizer st,
int frames,
float time)
Constructor: calls getEnvelope() to parse the stream for the
envelope data |
Methods inherited from class com.sun.j3d.loaders.lw3d.TextfileParser |
checkString, checkType, debugOutput, debugOutputLn, getAndCheckString, getName, getNumber, getString, isCurrentToken, skip, skipUntilString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
java.lang.String name
frames
LwsEnvelopeFrame[] frames
numFrames
int numFrames
numChannels
int numChannels
loop
boolean loop
totalTime
float totalTime
totalFrames
int totalFrames
behaviors
Behavior behaviors
LwsEnvelope
LwsEnvelope(java.io.StreamTokenizer st,
int frames,
float time)
- Constructor: calls getEnvelope() to parse the stream for the
envelope data
getEnvelope
void getEnvelope(java.io.StreamTokenizer st)
throws IncorrectFormatException,
ParsingErrorException
- Parses the stream to retrieve all envelope data. Creates
LwsEnvelopeFrame objects for each keyframe of the envelope
(these frames differ slightly from LwsFrame objects because
envelopes contain slightly different data)
- Throws:
IncorrectFormatException
ParsingErrorException
createJava3dBehaviors
void createJava3dBehaviors(TransformGroup target)
- This superclass does nothing here - if the loader understands
how to deal with a particular type of envelope, it will use
a subclass of LwsEnvelope that will override this method
getBehaviors
Behavior getBehaviors()
getFirstFrame
LwsEnvelopeFrame getFirstFrame()
printVals
void printVals()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.