Aviatrix3D
2.1.0

org.j3d.aviatrix3d.output.graphics
Class DebugRenderingProcessor

java.lang.Object
  extended by org.j3d.aviatrix3d.output.graphics.BaseRenderingProcessor
      extended by org.j3d.aviatrix3d.output.graphics.DebugRenderingProcessor
All Implemented Interfaces:
RenderingProcessor

public class DebugRenderingProcessor
extends BaseRenderingProcessor

Handles the rendering for a single output device - be it on-screen or off.

The code expects that everything is set up before each call of the display() callback. It does not handle any recursive rendering requests as that is assumed to have been sorted out before calling this renderer.

Version:
$Revision: 3.41 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.j3d.aviatrix3d.output.graphics.BaseRenderingProcessor
addedBuffers, addedProcessors, alphaCutoff, alwaysLocalClear, availableClips, availableLights, childBuffers, clearColor, clipIdMap, currentShaderProgramId, currentViewport, environmentList, errorReporter, eyePoint, initComplete, INVALID_SHADER, lastClipIdx, lastLightIdx, lightIdMap, localContext, numRenderables, operationList, otherDataRequests, ownerDevice, ownerRenderable, parentContext, removedBuffers, renderableList, resetColor, singleThreaded, surfaceMatrix, terminate, updatedBuffers, useTwoPassTransparent
 
Constructor Summary
DebugRenderingProcessor(javax.media.opengl.GLContext parentCtx, GraphicsOutputDevice owner)
          Construct handler for rendering objects to the main screen.
 
Method Summary
 void display(GraphicsProfilingData profilingData)
          Called by the drawable to perform rendering by the client.
 int getTraceCount()
          Get how many traces were left in the system
protected  void processRequestData(javax.media.opengl.GL gl)
          Process the shader and delete requests for this scene now.
 boolean render(GraphicsProfilingData profilingData)
          Draw to the drawable now.
 void traceNextFrames(int count)
          For the next count rendered frames, output the GL state to the standard output.
 
Methods inherited from class org.j3d.aviatrix3d.output.graphics.BaseRenderingProcessor
addChildBuffer, addSurfaceInfoListener, disposeSingleThreadResources, enableSingleThreaded, enableTwoPassTransparentRendering, getAlphaTestCutoff, getCenterEyeInSurface, getPixelLocationInSurface, getSurfaceToVWorld, halt, init, isTwoPassTransparentEnabled, postLayerEnvironmentDraw, postMPPassEnvironmentDraw, preLayerEnvironmentDraw, preMPPassEnvironmentDraw, prepareData, reinitialize, removeChildBuffer, removeSurfaceInfoListener, renderViewpoint, setAlphaTestCutoff, setClearColor, setColorClearNeeded, setDrawableObjects, setErrorReporter, setOwnerBuffer, setupMultipassViewport, setupViewport, swapBuffers, terminateCleanup, updateChildBuffer, updateContextChange, updateProjectionMatrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugRenderingProcessor

public DebugRenderingProcessor(javax.media.opengl.GLContext parentCtx,
                               GraphicsOutputDevice owner)
Construct handler for rendering objects to the main screen. Assumes this is the main renderer, for debugging output purposes.

Parameters:
parentCtx - The parent GL context to the surface that holds this processor.
owner - The owning device of this processor
Method Detail

render

public boolean render(GraphicsProfilingData profilingData)
Draw to the drawable now. This causes the drawable's context to be made current and the GL commands are issued. Derived classes should not override this method, instead they should use the display() or init() methods as needed.

Specified by:
render in interface RenderingProcessor
Overrides:
render in class BaseRenderingProcessor
Parameters:
profilingData - The timing and load data
Returns:
false if the rendering should not continue

display

public void display(GraphicsProfilingData profilingData)
Called by the drawable to perform rendering by the client.

Specified by:
display in class BaseRenderingProcessor
Parameters:
profilingData - The timing and load data

processRequestData

protected void processRequestData(javax.media.opengl.GL gl)
Process the shader and delete requests for this scene now. Should normally be called at the start of the frame to ensure IDs are deleted up front before being reallocated elsewhere.

Overrides:
processRequestData in class BaseRenderingProcessor
Parameters:
gl - The GL context to process the requests with

traceNextFrames

public void traceNextFrames(int count)
For the next count rendered frames, output the GL state to the standard output. If it is currently dumping, the number will be reset to this value.

Parameters:
count - The number of frames to output the debug state.

getTraceCount

public int getTraceCount()
Get how many traces were left in the system

Returns:
A non-negative number

Aviatrix3D
2.1.0

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