Aviatrix3D
2.1.0

org.j3d.aviatrix3d.pipeline.audio
Class AudioCullToSingleSortListener

java.lang.Object
  extended by org.j3d.aviatrix3d.pipeline.audio.AudioCullToSingleSortListener
All Implemented Interfaces:
CulledAudioReceiver

public class AudioCullToSingleSortListener
extends java.lang.Object
implements CulledAudioReceiver

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

Version:
$Revision: 2.2 $
Author:
Alan Hudson

Constructor Summary
AudioCullToSingleSortListener()
          Create a new default instance of this class with nothing set.
 
Method Summary
 void culledOutput(RenderableRequestData otherData, AudioEnvironmentData data, AudioCullOutputDetails[] nodes, int numNodes)
          Sort the listing of nodes in the given array.
 void setSorter(AudioSortStage 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

AudioCullToSingleSortListener

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

Method Detail

culledOutput

public void culledOutput(RenderableRequestData otherData,
                         AudioEnvironmentData data,
                         AudioCullOutputDetails[] nodes,
                         int numNodes)
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 CulledAudioReceiver
Parameters:
otherData - data to be processed before the rendering
data - External rendering environment information
nodes - List of processed nodes based on the scene they came from
numNodes - Number of nodes in each scene

setSorter

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