javax.media.j3d
Class EnvironmentSet

java.lang.Object
  extended by javax.media.j3d.EnvironmentSet
All Implemented Interfaces:
ObjectUpdate

 class EnvironmentSet
extends java.lang.Object
implements ObjectUpdate

The LightBin manages a collection of EnvironmentSet objects. The number of objects managed depends upon the number of Lights in each EnvironmentSet and the number of lights supported by the underlying rendering layer.


Field Summary
(package private)  java.util.ArrayList addAttributeBins
          List of attrributeBins to be added next Frame
(package private) static int AMBIENT_CHANGED
           
(package private)  java.util.ArrayList ambLights
          The arraylist of ambient lights in this env list
(package private)  AttributeBin attributeBinList
          The list of AttributeBins in this EnvironmentSet
(package private)  int canvasDirty
          Canvas Dirty Mask for
(package private)  long enableMask
          The bitmask of light slots that need to be enabled for this
(package private)  long enableMaskCache
          cached value of enable mask
(package private)  int enableMCMask
          enable mask for the model clip planes in this environment set
(package private)  int enableMCMaskCache
           
(package private)  FogRetained fog
          The fog for this EnvironmentSet
(package private) static int FOG_CHANGED
           
(package private)  LightBin lightBin
          The LightBin that this EnvironmentSet resides
(package private) static int LIGHTENABLE_CHANGED
           
(package private)  java.util.ArrayList lights
          The ArrayList of Lights in this EnvironmentSet
(package private)  int[] ltPos
          The position of the light in the lightbin that the lights in this environment set corresponds to
(package private)  ModelClipRetained modelClip
          The model clip for this EnvironmentSet
(package private) static int MODELCLIP_CHANGED
           
(package private)  EnvironmentSet next
          The references to the next and previous LightBins in the list.
(package private)  boolean onUpdateList
           
(package private)  EnvironmentSet prev
           
(package private)  RenderBin renderBin
          The RenderBin for this EnvirionmentSet
(package private)  Color3f sceneAmbient
          The cached scene ambient component for this EnvirionmentSet
 
Constructor Summary
EnvironmentSet(RenderAtom ra, LightRetained[] lightList, FogRetained fog, ModelClipRetained modelClip, RenderBin rb)
           
 
Method Summary
(package private)  void addAttributeBin(AttributeBin a, RenderBin rb)
          Adds the given AttributeBin to this EnvironmentSet.
(package private)  boolean equalLights(LightRetained[] lights)
          This tests if the qiven lights match this EnviornmentSet
(package private)  boolean equals(RenderAtom ra, LightRetained[] lights, FogRetained fog, ModelClipRetained modelClip)
          This tests if the qiven lights and fog match this EnviornmentSet
(package private)  void removeAttributeBin(AttributeBin a)
          Removes the given AttributeBin from this EnvironmentSet.
(package private)  void render(Canvas3D cv)
          Renders this EnvironmentSet
private  void reset(RenderAtom ra, LightRetained[] lightList, FogRetained fog, ModelClipRetained modelClip)
           
(package private)  void updateAttributes(Canvas3D cv)
           
 void updateObject()
          The actual update function.
(package private)  void updateSceneAmbient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIGHTENABLE_CHANGED

static final int LIGHTENABLE_CHANGED
See Also:
Constant Field Values

AMBIENT_CHANGED

static final int AMBIENT_CHANGED
See Also:
Constant Field Values

FOG_CHANGED

static final int FOG_CHANGED
See Also:
Constant Field Values

MODELCLIP_CHANGED

static final int MODELCLIP_CHANGED
See Also:
Constant Field Values

lights

java.util.ArrayList lights
The ArrayList of Lights in this EnvironmentSet


ltPos

int[] ltPos
The position of the light in the lightbin that the lights in this environment set corresponds to


ambLights

java.util.ArrayList ambLights
The arraylist of ambient lights in this env list


lightBin

LightBin lightBin
The LightBin that this EnvironmentSet resides


enableMask

long enableMask
The bitmask of light slots that need to be enabled for this


sceneAmbient

Color3f sceneAmbient
The cached scene ambient component for this EnvirionmentSet


renderBin

RenderBin renderBin
The RenderBin for this EnvirionmentSet


fog

FogRetained fog
The fog for this EnvironmentSet


modelClip

ModelClipRetained modelClip
The model clip for this EnvironmentSet


enableMCMask

int enableMCMask
enable mask for the model clip planes in this environment set


enableMCMaskCache

int enableMCMaskCache

next

EnvironmentSet next
The references to the next and previous LightBins in the list.


prev

EnvironmentSet prev

addAttributeBins

java.util.ArrayList addAttributeBins
List of attrributeBins to be added next Frame


canvasDirty

int canvasDirty
Canvas Dirty Mask for


enableMaskCache

long enableMaskCache
cached value of enable mask


onUpdateList

boolean onUpdateList

attributeBinList

AttributeBin attributeBinList
The list of AttributeBins in this EnvironmentSet

Constructor Detail

EnvironmentSet

EnvironmentSet(RenderAtom ra,
               LightRetained[] lightList,
               FogRetained fog,
               ModelClipRetained modelClip,
               RenderBin rb)
Method Detail

reset

private void reset(RenderAtom ra,
                   LightRetained[] lightList,
                   FogRetained fog,
                   ModelClipRetained modelClip)

equals

boolean equals(RenderAtom ra,
               LightRetained[] lights,
               FogRetained fog,
               ModelClipRetained modelClip)
This tests if the qiven lights and fog match this EnviornmentSet


equalLights

boolean equalLights(LightRetained[] lights)
This tests if the qiven lights match this EnviornmentSet


updateObject

public void updateObject()
Description copied from interface: ObjectUpdate
The actual update function.

Specified by:
updateObject in interface ObjectUpdate

addAttributeBin

void addAttributeBin(AttributeBin a,
                     RenderBin rb)
Adds the given AttributeBin to this EnvironmentSet.


removeAttributeBin

void removeAttributeBin(AttributeBin a)
Removes the given AttributeBin from this EnvironmentSet.


updateSceneAmbient

void updateSceneAmbient()

render

void render(Canvas3D cv)
Renders this EnvironmentSet


updateAttributes

void updateAttributes(Canvas3D cv)


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.