com.sun.j3d.loaders.lw3d
Class LwsEnvelope

java.lang.Object
  extended by com.sun.j3d.loaders.lw3d.TextfileParser
      extended by 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.


Field Summary
(package private)  Behavior behaviors
           
(package private)  LwsEnvelopeFrame[] frames
           
(package private)  boolean loop
           
(package private)  java.lang.String name
           
(package private)  int numChannels
           
(package private)  int numFrames
           
(package private)  int totalFrames
           
(package private)  float totalTime
           
 
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
 
Method Summary
(package private)  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
(package private)  Behavior getBehaviors()
           
(package private)  void getEnvelope(java.io.StreamTokenizer st)
          Parses the stream to retrieve all envelope data.
(package private)  LwsEnvelopeFrame getFirstFrame()
           
(package private)  void printVals()
           
 
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
 

Field Detail

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
Constructor Detail

LwsEnvelope

LwsEnvelope(java.io.StreamTokenizer st,
            int frames,
            float time)
Constructor: calls getEnvelope() to parse the stream for the envelope data

Method Detail

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.