M3GToolkit 0.5.0

com.java4ever.m3g
Class Light

java.lang.Object
  extended bycom.java4ever.m3g.M3GObject
      extended bycom.java4ever.m3g.Object3D
          extended bycom.java4ever.m3g.Transformable
              extended bycom.java4ever.m3g.Node
                  extended bycom.java4ever.m3g.Light

public class Light
extends Node


Field Summary
static int AMBIENT
           
static int DIRECTIONAL
           
static int OMNI
           
static int SPOT
           
 
Fields inherited from class com.java4ever.m3g.Node
NONE, ORIGIN, X_AXIS, Y_AXIS, Z_AXIS
 
Fields inherited from class com.java4ever.m3g.M3GObject
ANIMATION_CONTROLLER, ANIMATION_TRACK, APPEARANCE, BACKGROUND, CAMERA, COMPOSITING_MODE, EXTERNAL_REFERENCE, FOG, GROUP, HEADER, IMAGE2D, KEYFRAME_SEQUENCE, LIGHT, MATERIAL, MESH, MORPHING_MESH, POLYGON_MODE, SKINNED_MESH, SPRITE3D, TEXTURE2D, TRIANGLE_STRIP_ARRAY, VERTEX_ARRAY, VERTEX_BUFFER, WORLD
 
Constructor Summary
Light()
           
 
Method Summary
 int getColor()
           
 float getConstantAttenuation()
           
 float getIntensity()
           
 float getLinearAttenuation()
           
 int getMode()
           
 int getObjectType()
           
 float getQuadraticAttenuation()
           
 float getSpotAngle()
           
 float getSpotExponent()
           
protected  void read(M3GInputStream is, java.util.ArrayList table)
           
 void setAttenuation(float constant, float linear, float quadratic)
           
 void setColor(int RGB)
           
 void setIntensity(float intensity)
           
 void setMode(int mode)
           
 void setSpotAngle(float angle)
           
 void setSpotExponent(float exponent)
           
protected  void write(M3GOutputStream os, java.util.ArrayList table)
           
 
Methods inherited from class com.java4ever.m3g.Node
align, buildReferenceTable, getAlphaFactor, getParent, getScope, getTransformTo, isPickingEnabled, isRenderingEnabled, setAlignment, setAlphaFactor, setPickingEnable, setRenderingEnable, setScope
 
Methods inherited from class com.java4ever.m3g.Transformable
getCompositeTransform, getOrientation, getScale, getTransform, getTranslation, postRotate, preRotate, scale, setOrientation, setScale, setTransform, setTranslation, translate
 
Methods inherited from class com.java4ever.m3g.Object3D
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class com.java4ever.m3g.M3GObject
getObjectAtIndex, isRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AMBIENT

public static final int AMBIENT
See Also:
Constant Field Values

DIRECTIONAL

public static final int DIRECTIONAL
See Also:
Constant Field Values

OMNI

public static final int OMNI
See Also:
Constant Field Values

SPOT

public static final int SPOT
See Also:
Constant Field Values
Constructor Detail

Light

public Light()
Method Detail

setMode

public void setMode(int mode)

getMode

public int getMode()

setIntensity

public void setIntensity(float intensity)

getIntensity

public float getIntensity()

setColor

public void setColor(int RGB)

getColor

public int getColor()

setSpotAngle

public void setSpotAngle(float angle)

getSpotAngle

public float getSpotAngle()

setSpotExponent

public void setSpotExponent(float exponent)

getSpotExponent

public float getSpotExponent()

setAttenuation

public void setAttenuation(float constant,
                           float linear,
                           float quadratic)

getConstantAttenuation

public float getConstantAttenuation()

getLinearAttenuation

public float getLinearAttenuation()

getQuadraticAttenuation

public float getQuadraticAttenuation()

getObjectType

public int getObjectType()
Specified by:
getObjectType in class M3GObject

read

protected void read(M3GInputStream is,
                    java.util.ArrayList table)
             throws java.io.IOException
Overrides:
read in class Node
Throws:
java.io.IOException

write

protected void write(M3GOutputStream os,
                     java.util.ArrayList table)
              throws java.io.IOException
Overrides:
write in class Node
Throws:
java.io.IOException

M3GToolkit 0.5.0

Copyright 2005 java4ever.com. All Rights Reserved.