javax.media.j3d
Class AttributeBin

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

 class AttributeBin
extends java.lang.Object
implements ObjectUpdate

The AttributeBin manages a collection of TextureBin objects. All objects in the AttributeBin share the same RenderingAttributes


Field Summary
(package private)  java.util.ArrayList addShaderBins
          List of shaderBins to be added next frame
(package private)  AppearanceRetained app
           
(package private)  RenderingAttributesRetained definingRenderingAttributes
          The RenderingAttributes for this AttributeBin
(package private)  EnvironmentSet environmentSet
          The EnvirionmentSet that this AttributeBin resides
(package private)  boolean ignoreVertexColors
           
(package private)  AttributeBin next
          The references to the next and previous AttributeBins in the list.
(package private)  int numEditingShaderBins
           
(package private) static int ON_CHANGED_FREQUENT_UPDATE_LIST
           
(package private) static int ON_OBJ_UPDATE_LIST
           
(package private)  int onUpdateList
           
(package private)  AttributeBin prev
           
(package private)  RenderBin renderBin
          The RenderBin for this object
(package private)  RenderingAttributesRetained renderingAttrs
           
(package private)  ShaderBin shaderBinList
          The list of ShaderBins in this AttributeBin
(package private)  boolean soleUser
          If the RenderingAttribute component of the appearance will be changed frequently, then confine it to a separate bin
 
Constructor Summary
AttributeBin(AppearanceRetained app, RenderingAttributesRetained renderingAttributes, RenderBin rBin)
           
 
Method Summary
(package private)  void addShaderBin(ShaderBin sb, RenderBin rb, ShaderAppearanceRetained sApp)
          Adds the given shaderBin to this AttributeBin.
(package private)  void decrActiveShaderBin()
           
(package private)  boolean equals(RenderingAttributesRetained renderingAttributes, RenderAtom ra)
          This tests if the given attributes match this AttributeBin
(package private)  void incrActiveShaderBin()
           
(package private)  void removeShaderBin(ShaderBin sb)
          Removes the given shaderBin from this AttributeBin.
(package private)  void render(Canvas3D cv)
          Renders this AttributeBin
(package private)  void reset(AppearanceRetained app, RenderingAttributesRetained renderingAttributes, RenderBin rBin)
           
(package private)  void updateAttributes(Canvas3D cv)
           
(package private)  void updateFromShaderBin(RenderAtom ra)
           
(package private)  void updateNodeComponent()
           
 void updateObject()
          The actual update function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definingRenderingAttributes

RenderingAttributesRetained definingRenderingAttributes
The RenderingAttributes for this AttributeBin


renderBin

RenderBin renderBin
The RenderBin for this object


environmentSet

EnvironmentSet environmentSet
The EnvirionmentSet that this AttributeBin resides


next

AttributeBin next
The references to the next and previous AttributeBins in the list.


prev

AttributeBin prev

shaderBinList

ShaderBin shaderBinList
The list of ShaderBins in this AttributeBin


addShaderBins

java.util.ArrayList addShaderBins
List of shaderBins to be added next frame


soleUser

boolean soleUser
If the RenderingAttribute component of the appearance will be changed frequently, then confine it to a separate bin


app

AppearanceRetained app

onUpdateList

int onUpdateList

ON_OBJ_UPDATE_LIST

static int ON_OBJ_UPDATE_LIST

ON_CHANGED_FREQUENT_UPDATE_LIST

static int ON_CHANGED_FREQUENT_UPDATE_LIST

ignoreVertexColors

boolean ignoreVertexColors

renderingAttrs

RenderingAttributesRetained renderingAttrs

numEditingShaderBins

int numEditingShaderBins
Constructor Detail

AttributeBin

AttributeBin(AppearanceRetained app,
             RenderingAttributesRetained renderingAttributes,
             RenderBin rBin)
Method Detail

reset

void reset(AppearanceRetained app,
           RenderingAttributesRetained renderingAttributes,
           RenderBin rBin)

equals

boolean equals(RenderingAttributesRetained renderingAttributes,
               RenderAtom ra)
This tests if the given attributes match this AttributeBin


updateObject

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

Specified by:
updateObject in interface ObjectUpdate

addShaderBin

void addShaderBin(ShaderBin sb,
                  RenderBin rb,
                  ShaderAppearanceRetained sApp)
Adds the given shaderBin to this AttributeBin.


removeShaderBin

void removeShaderBin(ShaderBin sb)
Removes the given shaderBin from this AttributeBin.


render

void render(Canvas3D cv)
Renders this AttributeBin


updateAttributes

void updateAttributes(Canvas3D cv)

updateNodeComponent

void updateNodeComponent()

incrActiveShaderBin

void incrActiveShaderBin()

decrActiveShaderBin

void decrActiveShaderBin()

updateFromShaderBin

void updateFromShaderBin(RenderAtom ra)


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