Aviatrix3D
2.0 Dev

org.j3d.aviatrix3d
Class Leaf

java.lang.Object
  extended byorg.j3d.aviatrix3d.SceneGraphObject
      extended byorg.j3d.aviatrix3d.Node
          extended byorg.j3d.aviatrix3d.Leaf
Direct Known Subclasses:
Background, ClipPlane, Fog, Light, Shape3D, Sound, Viewpoint

public abstract class Leaf
extends Node

A Leaf class is the base class for all scene graph objects that have no children but provide something that may be renderable in the scene graph.

Version:
$Revision: 1.5 $
Author:
Alan Hudson

Field Summary
 
Fields inherited from class org.j3d.aviatrix3d.Node
bounds, implicitBounds, INVALID_BOUNDS, parent
 
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG
 
Constructor Summary
Leaf()
           
 
Method Summary
 Renderable getRenderable(int bufferId)
          Get the Renderable instance needed to process this object for the given buffer ID.
 
Methods inherited from class org.j3d.aviatrix3d.Node
boundsChanged, checkForCyclicParent, getBounds, getParent, markBoundsDirty, recomputeBounds, removeParent, setBounds, setLive, setParent, updateBounds, updateParentBounds
 
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject
checkForCyclicChild, dataChanged, getUserData, isLive, setUpdateHandler, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Leaf

public Leaf()
Method Detail

getRenderable

public Renderable getRenderable(int bufferId)
Get the Renderable instance needed to process this object for the given buffer ID. The renderable instance should encapsulate all the data needed to render this object in a thread-safe way. The default implementation of this method returns null, indicating that this does not provide anything useful to the pipeline to render. Classes that wish to be rendered, should override this method and provide an appropriate return value.

Note: This should never be called by end-user code. It is publically accessible for code that is used by the rendering pipeline implementation, such as culling and sorting stages.

Parameters:
bufferId - The ID of the buffer for the renderable to encapsulate
Returns:
The renderable object, or null if nothing to render

Aviatrix3D
2.0 Dev

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2005 j3d.org