com.sun.j3d.loaders.lw3d
Class LwsFog

java.lang.Object
  extended by com.sun.j3d.loaders.lw3d.TextfileParser
      extended by com.sun.j3d.loaders.lw3d.LwsFog

 class LwsFog
extends TextfileParser

This class creates a Fog object from the data in a Scene file.


Field Summary
(package private)  int backdropFog
           
(package private)  Color3f color
           
(package private)  Fog fogObject
           
(package private)  float maxAmount
           
(package private)  float maxDist
           
(package private)  float minAmount
           
(package private)  float minDist
           
(package private)  int type
           
 
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
LwsFog(java.io.StreamTokenizer st, int debugVals)
          Constructor: parses stream and stores fog data
 
Method Summary
(package private)  void createJava3dObject()
          Creates Java3d Fog object given the fog parameters in the file.
(package private)  Fog getObjectNode()
           
(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

minDist

float minDist

maxDist

float maxDist

minAmount

float minAmount

maxAmount

float maxAmount

backdropFog

int backdropFog

color

Color3f color

type

int type

fogObject

Fog fogObject
Constructor Detail

LwsFog

LwsFog(java.io.StreamTokenizer st,
       int debugVals)
 throws ParsingErrorException
Constructor: parses stream and stores fog data

Throws:
ParsingErrorException
Method Detail

createJava3dObject

void createJava3dObject()
Creates Java3d Fog object given the fog parameters in the file. Note that various fog parameters in lw3d are not currently handled.


getObjectNode

Fog getObjectNode()

printVals

void printVals()


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