com.sun.j3d.loaders.lw3d
Class LwsLight

java.lang.Object
  extended by com.sun.j3d.loaders.lw3d.TextfileParser
      extended by 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.


Field Summary
(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
           
 
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
 
Method Summary
(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()
           
 
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

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
Constructor Detail

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
Method Detail

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.