com.sun.j3d.loaders.lw3d
Class LwsLight
java.lang.Object
com.sun.j3d.loaders.lw3d.TextfileParser
com.sun.j3d.loaders.lw3d.LwsLight
- All Implemented Interfaces:
- LwsPrimitive
class LwsLight
- extends TextfileParser
- implements LwsPrimitive
This class creates a light object from the data in a Scene file. It
instantiates an LwsMotion object to create any associated
animations.
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 |
LwsLight(java.io.StreamTokenizer st,
int totalFrames,
float totalTime,
int debugVals)
Constructor: parses stream and creates data structures for all
light parameters currently handled by the loader |
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 |
fileName
java.lang.String fileName
objName
java.lang.String objName
motion
LwsMotion motion
parent
int parent
objectTransform
TransformGroup objectTransform
objectBehavior
java.util.Vector objectBehavior
color
Color3f color
type
int type
attenuation
Point3f attenuation
spotConeAngle
float spotConeAngle
lwLight
LwLightObject lwLight
intensityEnvelope
LwsEnvelopeLightIntensity intensityEnvelope
light
Light light
DIRECTIONAL
static final int DIRECTIONAL
- See Also:
- Constant Field Values
POINT
static final int POINT
- See Also:
- Constant Field Values
SPOT
static final int SPOT
- See Also:
- Constant Field Values
LwsLight
LwsLight(java.io.StreamTokenizer st,
int totalFrames,
float totalTime,
int debugVals)
throws ParsingErrorException
- Constructor: parses stream and creates data structures for all
light parameters currently handled by the loader
- Throws:
ParsingErrorException
getParent
int getParent()
createJava3dObject
void createJava3dObject(int loadBehaviors)
- Create Java3D objects from the data we got from the file
getObjectNode
public TransformGroup getObjectNode()
- Specified by:
getObjectNode
in interface LwsPrimitive
getLight
Light getLight()
getObjectBehaviors
public java.util.Vector getObjectBehaviors()
- Specified by:
getObjectBehaviors
in interface LwsPrimitive
printVals
void printVals()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.