javax.media.j3d
Class SceneGraphObjectRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
NodeComponentRetained, NodeRetained

abstract class SceneGraphObjectRetained
extends IndexedObject
implements java.lang.Cloneable

SceneGraphObjectRetained is a superclass, which has things that are common to all retained scene graph component objects.


Field Summary
(package private) static int DONT_MERGE
           
(package private)  boolean inBackgroundGroup
           
(package private)  boolean inSetLive
           
(package private) static int MERGE
           
(package private) static int MERGE_DONE
           
(package private)  int mergeFlag
           
(package private)  boolean onUpdateList
           
(package private)  SceneGraphObject source
           
 
Fields inherited from class javax.media.j3d.IndexedObject
listIdx
 
Constructor Summary
SceneGraphObjectRetained()
           
 
Method Summary
(package private)  void clearLive()
          Makes the internal node not live
(package private)  void clearLive(VirtualUniverse univ, int index, boolean sharedGroup, HashKey[] keys)
          Makes the internal node not live
protected  java.lang.Object clone()
           
(package private)  void compile(CompileState compState)
          This is the default compile() method, which just marks the sgo as compiled.
(package private)  void doSetLive(boolean inBackgroundGroup)
          Makes the internal node live.
(package private)  void doSetLive(SetLiveState s)
          Makes the internal node live.
(package private)  SceneGraphObject getSource()
          Returns the cached source object that created this retained mode object.
(package private)  VirtualUniverse getVirtualUniverse()
           
(package private)  void handleFrequencyChange(int bit)
           
(package private)  boolean isInSetLive()
           
(package private)  boolean isStatic()
          true if component can't be read or written after compile or setlive()
(package private)  void markAsLive()
           
(package private)  void merge(CompileState compState)
           
(package private)  void mergeTransform(TransformGroupRetained xform)
           
(package private)  void setCompiled()
          This marks this object as compiled.
(package private)  void setLive(boolean inBackgroundGroup)
           
(package private)  void setLive(SetLiveState s)
           
(package private)  void setSource(SceneGraphObject source)
          Caches the source object that created this retained mode object.
(package private)  void traverse(boolean sameLevel, int level)
           
 
Methods inherited from class javax.media.j3d.IndexedObject
getIdxUsed, incIdxUsed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

SceneGraphObject source

inBackgroundGroup

boolean inBackgroundGroup

onUpdateList

boolean onUpdateList

inSetLive

boolean inSetLive

DONT_MERGE

static final int DONT_MERGE
See Also:
Constant Field Values

MERGE

static final int MERGE
See Also:
Constant Field Values

MERGE_DONE

static final int MERGE_DONE
See Also:
Constant Field Values

mergeFlag

int mergeFlag
Constructor Detail

SceneGraphObjectRetained

SceneGraphObjectRetained()
Method Detail

setSource

void setSource(SceneGraphObject source)
Caches the source object that created this retained mode object.

Parameters:
source - the object which created this retained mode object.

getSource

SceneGraphObject getSource()
Returns the cached source object that created this retained mode object.

Returns:
the object which created this retained mode object.

markAsLive

void markAsLive()

setLive

void setLive(boolean inBackgroundGroup)

isInSetLive

boolean isInSetLive()

doSetLive

void doSetLive(boolean inBackgroundGroup)
Makes the internal node live.


setLive

void setLive(SetLiveState s)

doSetLive

void doSetLive(SetLiveState s)
Makes the internal node live.


clearLive

void clearLive(VirtualUniverse univ,
               int index,
               boolean sharedGroup,
               HashKey[] keys)
Makes the internal node not live


clearLive

void clearLive()
Makes the internal node not live


setCompiled

void setCompiled()
This marks this object as compiled.


compile

void compile(CompileState compState)
This is the default compile() method, which just marks the sgo as compiled.


merge

void merge(CompileState compState)

mergeTransform

void mergeTransform(TransformGroupRetained xform)

traverse

void traverse(boolean sameLevel,
              int level)

isStatic

boolean isStatic()
true if component can't be read or written after compile or setlive()


clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object

handleFrequencyChange

void handleFrequencyChange(int bit)

getVirtualUniverse

VirtualUniverse getVirtualUniverse()
Specified by:
getVirtualUniverse in class IndexedObject


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