org.xith3d.scenegraph
Class NodeComponent

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject
Direct Known Subclasses:
Appearance, ColoringAttributes, DepthComponent, Geometry, GLSLParameters, LineAttributes, Material, PointAttributes, PolygonAttributes, RenderingAttributes, ShaderProgram, ShaderProgramContext, TexCoordGeneration, Texture, TextureAttributes, TextureImage, TextureUnit, TransparencyAttributes

public abstract class NodeComponent
extends SceneGraphObject

NodeComponent is the base class for all node component objects in scene graph Node objects.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
NodeComponent(boolean isGlobalOptionsRelevant)
          Constructs a new NodeComponent object.
 
Method Summary
abstract  NodeComponent cloneNodeComponent(boolean forceDuplicate)
           
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
           
 void freeOpenGLResources(Canvas3D canvas)
          This method frees OpenGL resources (names) for all this NodeComponent and all child-components.
abstract  void freeOpenGLResources(CanvasPeer canvasPeer)
          This method frees OpenGL resources (names) for all this NodeComponent and all child-components.
 boolean getDuplicateOnCloneTree()
           
 ScenegraphModificationsListener getModListener()
           
 boolean isChanged()
           
 boolean isChanged2()
           
protected  void setChanged(boolean changed)
           
 void setDuplicateOnCloneTree(boolean b)
          controls whether a NodeComponent object is dupicated or referenced on a call to cloneTree. by default this flag is set to false.
 void setModListener(ScenegraphModificationsListener modListener)
           
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeComponent

public NodeComponent(boolean isGlobalOptionsRelevant)
Constructs a new NodeComponent object.

Method Detail

setModListener

public void setModListener(ScenegraphModificationsListener modListener)

getModListener

public final ScenegraphModificationsListener getModListener()

setChanged

protected void setChanged(boolean changed)

isChanged

public boolean isChanged()

isChanged2

public boolean isChanged2()

setDuplicateOnCloneTree

public final void setDuplicateOnCloneTree(boolean b)
controls whether a NodeComponent object is dupicated or referenced on a call to cloneTree. by default this flag is set to false. This means that the NodeComponent object will not be duplicated on a call to cloneTree, newly creted leaf nodes will refer to the original NodComponent object instead.

If the cloneTree method is called with forceDuplicate parameter set to true the duplicationOnCloneTree flag is ignored and the entire scene graph is duplicated.


getDuplicateOnCloneTree

public final boolean getDuplicateOnCloneTree()
Returns:
the state of the duplicateOnCloneTree flag.

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)
Parameters:
original -
forceDuplicate -

cloneNodeComponent

public abstract NodeComponent cloneNodeComponent(boolean forceDuplicate)

freeOpenGLResources

public abstract void freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components.

Parameters:
canvasPeer -

freeOpenGLResources

public final void freeOpenGLResources(Canvas3D canvas)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components.

Parameters:
canvas -