javax.media.j3d
Class NodeComponentRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeComponentRetained
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
AppearanceRetained, AuralAttributesRetained, ColoringAttributesRetained, DepthComponentRetained, GeometryRetained, ImageComponentRetained, LineAttributesRetained, MaterialRetained, MediaContainerRetained, PointAttributesRetained, PolygonAttributesRetained, RenderingAttributesRetained, ShaderAttributeRetained, ShaderAttributeSetRetained, ShaderProgramRetained, ShaderRetained, TexCoordGenerationRetained, TextureAttributesRetained, TextureRetained, TextureUnitStateRetained, TransparencyAttributesRetained

 class NodeComponentRetained
extends SceneGraphObjectRetained

Retained version of NodeComponent


Field Summary
(package private)  int changedFrequent
           
(package private)  int compChanged
           
(package private)  boolean duplicateOnCloneTree
           
private  boolean inImmCtx
           
(package private)  NodeComponentRetained mirror
           
(package private)  int refCnt
           
(package private)  int refCount
           
(package private)  java.util.ArrayList users
           
 
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source
 
Fields inherited from class javax.media.j3d.IndexedObject
listIdx
 
Constructor Summary
NodeComponentRetained()
           
 
Method Summary
(package private)  void addAMirrorUser(Shape3DRetained ms)
           
(package private)  void addUser(NodeRetained node)
           
(package private)  void clearLive(int refCount)
           
protected  java.lang.Object clone()
           
(package private)  void copyMirrorUsers(NodeComponentRetained node)
           
(package private)  void createMirrorObject()
           
(package private)  void decRefCnt()
           
(package private)  void doSetLive(boolean inBackgroundGroup, int refCount)
           
(package private)  boolean getDuplicateOnCloneTree()
          Returns this node's duplicateOnCloneTree value.
(package private)  boolean getInImmCtx()
          This gets the immedate mode context flag
(package private)  void incRefCnt()
           
(package private)  void initMirrorObject()
           
(package private)  void notifyUsers()
           
(package private)  void removeAMirrorUser(Shape3DRetained ms)
           
(package private)  void removeMirrorUsers(NodeComponentRetained node)
           
(package private)  void removeUser(NodeRetained node)
           
protected  void set(NodeComponentRetained nc)
           
(package private)  void setDuplicateOnCloneTree(boolean duplicate)
          Sets this node's duplicateOnCloneTree value.
(package private)  void setFrequencyChangeMask(int bit, int mask)
           
(package private)  void setInImmCtx(boolean inCtx)
          This sets the immedate mode context flag
(package private)  void setLive(boolean inBackgroundGroup, int refCount)
           
(package private)  void updateMirrorObject(int component, java.lang.Object obj)
           
 
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse
 
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

duplicateOnCloneTree

boolean duplicateOnCloneTree

refCount

int refCount

refCnt

int refCnt

inImmCtx

private boolean inImmCtx

users

java.util.ArrayList users

mirror

NodeComponentRetained mirror

changedFrequent

int changedFrequent

compChanged

int compChanged
Constructor Detail

NodeComponentRetained

NodeComponentRetained()
Method Detail

doSetLive

void doSetLive(boolean inBackgroundGroup,
               int refCount)

setLive

void setLive(boolean inBackgroundGroup,
             int refCount)

clearLive

void clearLive(int refCount)

incRefCnt

void incRefCnt()

decRefCnt

void decRefCnt()

removeAMirrorUser

void removeAMirrorUser(Shape3DRetained ms)

addAMirrorUser

void addAMirrorUser(Shape3DRetained ms)

copyMirrorUsers

void copyMirrorUsers(NodeComponentRetained node)

removeMirrorUsers

void removeMirrorUsers(NodeComponentRetained node)

removeUser

void removeUser(NodeRetained node)

addUser

void addUser(NodeRetained node)

notifyUsers

void notifyUsers()

setInImmCtx

void setInImmCtx(boolean inCtx)
This sets the immedate mode context flag


getInImmCtx

boolean getInImmCtx()
This gets the immedate mode context flag


setDuplicateOnCloneTree

void setDuplicateOnCloneTree(boolean duplicate)
Sets this node's duplicateOnCloneTree value. The duplicateOnCloneTree value is used to determine if NodeComponent objects are to be duplicated or referenced during a cloneTree operation. A value of true means that this NodeComponent object should be duplicated, while a value of false indicates that this NodeComponent object's reference will be copied into the newly cloned object. This value can be overriden via the forceDuplicate parameter of the cloneTree method.

Parameters:
duplicate - the value to set.
See Also:
Node.cloneTree()

getDuplicateOnCloneTree

boolean getDuplicateOnCloneTree()
Returns this node's duplicateOnCloneTree value. The duplicateOnCloneTree value is used to determine if NodeComponent objects are to be duplicated or referenced during a cloneTree operation. A value of true means that this NodeComponent object should be duplicated, while a value of false indicates that this NodeComponent object's reference will be copied into the newly cloned object. This value can be overriden via the forceDuplicate parameter of the cloneTree method.

Returns:
the value of this node's duplicateOnCloneTree
See Also:
Node.cloneTree()

initMirrorObject

void initMirrorObject()

updateMirrorObject

void updateMirrorObject(int component,
                        java.lang.Object obj)

createMirrorObject

void createMirrorObject()

setFrequencyChangeMask

void setFrequencyChangeMask(int bit,
                            int mask)

clone

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

set

protected void set(NodeComponentRetained nc)


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