class LwsLight extends TextfileParser implements LwsPrimitive
| Modifier and Type | Field and Description |
|---|---|
(package private) Point3f |
attenuation |
(package private) Color3f |
color |
(package private) static int |
DIRECTIONAL |
(package private) java.lang.String |
fileName |
(package private) LwsEnvelopeLightIntensity |
intensityEnvelope |
(package private) Light |
light |
(package private) LwLightObject |
lwLight |
(package private) LwsMotion |
motion |
(package private) java.util.Vector |
objectBehavior |
(package private) TransformGroup |
objectTransform |
(package private) java.lang.String |
objName |
(package private) int |
parent |
(package private) static int |
POINT |
(package private) static int |
SPOT |
(package private) float |
spotConeAngle |
(package private) int |
type |
currentLevel, debugPrinter, EXCEPTION, LINE_TRACE, lineSeparatorChar, MISC, NONE, NUMBER, TIME, TRACE, VALUES, WORD| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
createJava3dObject(int loadBehaviors)
Create Java3D objects from the data we got from the file
|
(package private) Light |
getLight() |
java.util.Vector |
getObjectBehaviors() |
TransformGroup |
getObjectNode() |
(package private) int |
getParent() |
(package private) void |
printVals() |
checkString, checkType, debugOutput, debugOutputLn, getAndCheckString, getName, getNumber, getString, isCurrentToken, skip, skipUntilStringjava.lang.String fileName
java.lang.String objName
LwsMotion motion
int parent
TransformGroup objectTransform
java.util.Vector objectBehavior
Color3f color
int type
Point3f attenuation
float spotConeAngle
LwLightObject lwLight
LwsEnvelopeLightIntensity intensityEnvelope
Light light
static final int DIRECTIONAL
static final int POINT
static final int SPOT
LwsLight(java.io.StreamTokenizer st,
int totalFrames,
float totalTime,
int debugVals)
throws ParsingErrorException
ParsingErrorExceptionint getParent()
void createJava3dObject(int loadBehaviors)
public TransformGroup getObjectNode()
getObjectNode in interface LwsPrimitiveLight getLight()
public java.util.Vector getObjectBehaviors()
getObjectBehaviors in interface LwsPrimitivevoid printVals()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.