Aviatrix3D
2.1.0

org.j3d.aviatrix3d.pipeline.graphics
Class CullToSingleSortListener

java.lang.Object
  extended by org.j3d.aviatrix3d.pipeline.graphics.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: 3.5 $
Author:
Justin Couch

Constructor Summary
CullToSingleSortListener()
          Create a new default instance of this class with nothing set.
 
Method Summary
 void culledOutput(GraphicsRequestData otherData, GraphicsProfilingData profilingData, ViewportCollection[][] layers, int[] numLayers, int numScenes, OffscreenBufferRenderable[][] sceneParents)
          Here's the sorted output list of nodes per layer.
 void setSorter(GraphicsSortStage 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(GraphicsRequestData otherData,
                         GraphicsProfilingData profilingData,
                         ViewportCollection[][] layers,
                         int[] numLayers,
                         int numScenes,
                         OffscreenBufferRenderable[][] sceneParents)
Here's the sorted output list of nodes per layer. Each instance of ViewportCollection represents the contents of a complete layer. Note, this does not consider multipass texture sources right now.

For the 2D array of layers, it contains the list of final subscenes to send to the final stage, with the second dimension describing the layers, in rendering order. The first item will always be the main scene that gets rendered to the canvas.

For the 2D array sceneParent, it allows for mapping the output of internal scenes to the holding texture node. Index 0 is the direct owner of the scene contents. Index 1 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:
otherData - The optional renderable data to process this next frame
profilingData - The timing and load data
layers - The list of layers that need to be further processed
numLayers - The number of valid layers in each scene to process
numScenes - The number of valid scenes to process
sceneParents - Parent node that holds the subscene in the main scene graph

setSorter

public void setSorter(GraphicsSortStage 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

Aviatrix3D
2.1.0

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