javax.media.j3d
Class IndexedObject

java.lang.Object
  extended by javax.media.j3d.IndexedObject
Direct Known Subclasses:
RenderMolecule, SceneGraphObjectRetained

abstract class IndexedObject
extends java.lang.Object

Class used for IndexedUnorderedList


Field Summary
(package private)  int[][] listIdx
          A 2D array listIdx[3][len] is used.
 
Constructor Summary
IndexedObject()
           
 
Method Summary
(package private)  int getIdxUsed(VirtualUniverse u)
           
(package private) abstract  VirtualUniverse getVirtualUniverse()
           
(package private)  void incIdxUsed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listIdx

int[][] listIdx
A 2D array listIdx[3][len] is used. The entry listIdx[0][], listIdx[0][1] is used for each VirtualUniverse. The entry listIdx[2][0] is used for index to which one to use. This is used to handle the case the Node Object move from one VirtualUniverse A to another VirtualUniverse B. It is possible that another Structures in B may get the add message first before the Structures in A get the remove message to clear the entry. This cause MT problem. So a 2D array is used to resolve it.

Constructor Detail

IndexedObject

IndexedObject()
Method Detail

getVirtualUniverse

abstract VirtualUniverse getVirtualUniverse()

getIdxUsed

int getIdxUsed(VirtualUniverse u)

incIdxUsed

void incIdxUsed()


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