com.sun.j3d.loaders.lw3d
Class LwsBackground

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

 class LwsBackground
extends TextfileParser

This class creates a Background object (solid color only, no geometry) according to some of the data stored in a Scene file. Note: Lightwave defines much more complex backgrounds that the loader currently handles. It should be possible to se Background Geometry to handle most of these cases, if there's time and will to work on the problem.


Field Summary
(package private)  Background backgroundObject
           
(package private)  Color3f color
           
(package private)  Color3f groundColor
           
(package private)  Color3f nadirColor
           
(package private)  Color3f skyColor
           
(package private)  int solidBackdrop
           
(package private)  Color3f zenithColor
           
 
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
LwsBackground(java.io.StreamTokenizer st, int debugVals)
          Constructor: parses stream and retrieves all Background-related data
 
Method Summary
(package private)  void createJava3dObject()
          Creates Java3d objects from the background data.
(package private)  Background 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

solidBackdrop

int solidBackdrop

color

Color3f color

zenithColor

Color3f zenithColor

skyColor

Color3f skyColor

groundColor

Color3f groundColor

nadirColor

Color3f nadirColor

backgroundObject

Background backgroundObject
Constructor Detail

LwsBackground

LwsBackground(java.io.StreamTokenizer st,
              int debugVals)
        throws ParsingErrorException
Constructor: parses stream and retrieves all Background-related data

Throws:
ParsingErrorException
Method Detail

createJava3dObject

void createJava3dObject()
Creates Java3d objects from the background data. Note that there are plenty of lw3d background attributes that the loader currently ignores. Some of these may best be handled by creating background geometry rather than a solid background color


getObjectNode

Background getObjectNode()

printVals

void printVals()


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