j3d.org Aviatrix3D

org.j3d.aviatrix3d.pipeline
Class CullToSingleSortListener

java.lang.Object
  extended byorg.j3d.aviatrix3d.pipeline.CullToSingleSortListener
All Implemented Interfaces:
CulledGeometryReceiver

public class CullToSingleSortListener
extends java.lang.Object
implements CulledGeometryReceiver

Adapter class that maps the output of a cull stage to a single sorter.

Version:
$Revision: 1.6 $
Author:
Justin Couch

Constructor Summary
CullToSingleSortListener()
          Create a new default instance of this class with nothing set.
 
Method Summary
 void culledOutput(RenderEnvironmentData[] data, CullOutputDetails[][] nodes, int[] numNodes, SceneGraphObject[][] sceneParents, int numScenes)
          Sort the listing of nodes in the given array.
 void setSorter(SortStage s)
          Set the sorter instance to be used as the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CullToSingleSortListener

public CullToSingleSortListener()
Create a new default instance of this class with nothing set.

Method Detail

culledOutput

public void culledOutput(RenderEnvironmentData[] data,
                         CullOutputDetails[][] nodes,
                         int[] numNodes,
                         SceneGraphObject[][] sceneParents,
                         int numScenes)
Sort the listing of nodes in the given array. Do not return until the sort has been completed. If the sceneParent is the main scene graph and not an offscreen texture, then that spot should be set to null in the list. Here's the sorted output list of nodes. For the 2D array of objects, contains the list of final subscenes to send to the final stage. First index is the direct owner of the scene contents. The second index is the scene parent of the scene included (needed for pBuffer GL context handling at render time). If this second one is null, then the parent is the main canvas that is being rendered to.

Specified by:
culledOutput in interface CulledGeometryReceiver
Parameters:
data - External rendering environment information
nodes - List of processed nodes based on the scene they came from
numNodes - Number of nodes in each scene
sceneParents - Parent nodes that hold the subscene in the main scene graph
numScenes - The number of valid scenes to process

setSorter

public void setSorter(SortStage s)
Set the sorter instance to be used as the target. Passing a value of null will clear the current registered instance.

Parameters:
s - The sorter instance to use or null

j3d.org Aviatrix3D

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