Aviatrix3D
2.1.0

org.j3d.aviatrix3d.pipeline.audio
Class NullAudioCullStage

java.lang.Object
  extended by org.j3d.aviatrix3d.pipeline.audio.NullAudioCullStage
All Implemented Interfaces:
AudioCullStage, CullStage

public class NullAudioCullStage
extends java.lang.Object
implements AudioCullStage

Handles the scenegraph maintenance and culling operations.

The culling phase generates a list of nodes to render.

Since this is a null culling stage, and thus no culling is performed, if the scene graph contains instances of Cullable, they are ignored and traversal stops at that point.

Note:

Layers are not implemented yet.

Version:
$Revision: 2.9 $
Author:
Alan Hudson

Constructor Summary
NullAudioCullStage()
          Create a basic instance of this class with the list initial internal setup for the given number of renderable surfaces.
 
Method Summary
 void cull(RenderableRequestData otherData, ProfilingData profilingData, LayerCullable[] layers, int numLayers)
          Update and cull the scenegraph defined by a set of layers.
 void halt()
          Force a halt of the current processing.
 void setCulledAudioReceiver(CulledAudioReceiver sgr)
          Register a reciever for the output of the sorter.
 void setErrorReporter(org.j3d.util.ErrorReporter reporter)
          Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullAudioCullStage

public NullAudioCullStage()
Create a basic instance of this class with the list initial internal setup for the given number of renderable surfaces. The size is just an initial esstimate, and is used for optimisation purposes to prevent frequent array reallocations internally. As such, the number does not have to be perfect, just good enough.

Method Detail

setCulledAudioReceiver

public void setCulledAudioReceiver(CulledAudioReceiver sgr)
Register a reciever for the output of the sorter. If the value is null, it will clear the currently set receiver.

Specified by:
setCulledAudioReceiver in interface AudioCullStage
Parameters:
sgr - The receiver instance to add or null

setErrorReporter

public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.

Specified by:
setErrorReporter in interface CullStage
Parameters:
reporter - The instance to use or null

cull

public void cull(RenderableRequestData otherData,
                 ProfilingData profilingData,
                 LayerCullable[] layers,
                 int numLayers)
Update and cull the scenegraph defined by a set of layers. This generates an ordered list of nodes to render. It will not return until the culling is complete.

Specified by:
cull in interface CullStage
Parameters:
otherData - data to be passed along unprocessed
profilingData - The timing and load data
layers - The collection of layers, in order, to render
numLayers - The number of valid layers to use

halt

public void halt()
Force a halt of the current processing. Any processing in progress should exit immediately. Used to abort the current scene processing due to application shutdown or complete scene replacement.

Specified by:
halt in interface CullStage

Aviatrix3D
2.1.0

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