Class BaseStaticGroup

java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.group.BaseStaticGroup
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLBoundedNodeType, VRMLChildNodeType, VRMLNodeType, VRMLWorldRootChildNodeType
Direct Known Subclasses:
NRStaticGroup, OGLStaticGroup

public abstract class BaseStaticGroup extends AbstractNode implements VRMLBoundedNodeType
Common base implementation of a StaticGroup node.

Properties

The following properties are used by this class

  • org.web3d.vrml.nodes.staticgroup.dispose Boolean value describing whether the StaticGroup should dispose of the VRML node children. This is an efficiency measure that will allow an implementation to remove unneeded memory. However, it also means that they can no longer be traversed, so if your application is trying to traverse the scene graph, it will not be able to use the nodes later on. Useful for a runtime optimisation, no good if you are writing an editor.
  • org.web3d.vrml.nodes.staticgroup.compact Boolean value describing whether the StaticGroup should compact the VRML scene graph below this node or leave it in an expanded state. This is an efficiency measure that will allow an implementation to flatten the scene graph if desired. Useful for debugging but also means the runtime scene graph will probably be different from the original loaded from file.
The base implementation provided by this class does not do anything with these properties. Their values are only provided as a hook for higher level functionality. This is because most of the action would take place in the setupFinished() method and it would dispose/compact the children before the derived class had a chance to do anything with the children nodes. It is assumed that a derived class would know when and where it is safe to dispose of the children.
Version:
$Revision: 1.12 $
Author:
Justin Couch