com.sun.j3d.loaders.lw3d
Class LwsBackground
java.lang.Object
com.sun.j3d.loaders.lw3d.TextfileParser
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.
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 |
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 |
solidBackdrop
int solidBackdrop
color
Color3f color
zenithColor
Color3f zenithColor
skyColor
Color3f skyColor
groundColor
Color3f groundColor
nadirColor
Color3f nadirColor
backgroundObject
Background backgroundObject
LwsBackground
LwsBackground(java.io.StreamTokenizer st,
int debugVals)
throws ParsingErrorException
- Constructor: parses stream and retrieves all Background-related data
- Throws:
ParsingErrorException
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.