|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.output.graphics.BaseSurface org.j3d.aviatrix3d.output.graphics.BaseAWTSurface org.j3d.aviatrix3d.output.graphics.DebugAWTSurface
public class DebugAWTSurface
Implementation of drawable surface with the key mapping defined to allow the GL trace to be debugged for a single frame.
To dump a set of GL trace, the 'd' key is mapped to dump the next frame.
This implementation of GraphicsOutputDevice renders to a normal GLCanvas instance and provides pBuffer support as needed. Stereo support is not provided and all associated methods always indicate negative returns on query about support.
Field Summary |
---|
Fields inherited from class org.j3d.aviatrix3d.output.graphics.BaseAWTSurface |
---|
lightweight, resizer |
Fields inherited from class org.j3d.aviatrix3d.output.graphics.BaseSurface |
---|
alphaCutoff, canCreatePBuffers, canvas, canvasContext, canvasDescriptor, canvasRenderer, errorReporter, FAILED_CONTEXT_MSG, initComplete, numRenderables, renderableList, rendererMap, sharedSurface, singleThreaded, surfaceMonitor, terminate, useTwoPassTransparent |
Fields inherited from interface org.j3d.aviatrix3d.pipeline.graphics.GraphicsOutputDevice |
---|
ALTERNATE_FRAME_STEREO, NO_STEREO, QUAD_BUFFER_STEREO, TWO_CANVAS_STEREO |
Constructor Summary | |
---|---|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps)
Construct a surface that requires the given set of capabilities. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
BaseSurface sharedSurface)
Construct a surface shares it's GL context with the given surface. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
BaseSurface sharedSurface,
boolean lightweight)
Construct a surface shares it's GL context with the given surface. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
boolean lightweight)
Construct a surface that requires the given set of capabilities. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
javax.media.opengl.GLCapabilitiesChooser chooser)
Construct a surface that requires the given set of capabilities. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
javax.media.opengl.GLCapabilitiesChooser chooser,
BaseSurface sharedSurface)
Construct a surface shares it's GL context with the given surface. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
javax.media.opengl.GLCapabilitiesChooser chooser,
BaseSurface sharedSurface,
boolean lightweight)
Construct a surface shares it's GL context with the given surface. |
|
DebugAWTSurface(javax.media.opengl.GLCapabilities caps,
javax.media.opengl.GLCapabilitiesChooser chooser,
boolean lightweight)
Construct a surface that requires the given set of capabilities. |
Method Summary | |
---|---|
protected boolean |
createLightweightContext()
Attempt to create a new lightweight canvas renderer now. |
protected RenderingProcessor |
createRenderingProcessor(javax.media.opengl.GLContext context)
Overridden to provide instances of the debug rendering processor for off screen textures. |
boolean |
draw(ProfilingData profilingData)
Instruct the surface to draw the collected set of nodes now. |
java.lang.Object |
getSurfaceObject()
Get the underlying object that this surface is rendered to. |
void |
keyPressed(java.awt.event.KeyEvent evt)
Notification of a key press event. |
void |
keyReleased(java.awt.event.KeyEvent evt)
Notification of a key release event. |
void |
keyTyped(java.awt.event.KeyEvent evt)
Notification of a key type (press and release) event. |
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.BaseAWTSurface |
---|
addGraphicsResizeListener, removeGraphicsResizeListener, setDrawableObjects, setErrorReporter, swap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DebugAWTSurface(javax.media.opengl.GLCapabilities caps)
caps
- A set of required capabilities for this canvas.public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser)
caps
- A set of required capabilities for this canvas.chooser
- Custom algorithm for selecting one of the available
GLCapabilities for the component;public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, boolean lightweight)
caps
- A set of required capabilities for this canvas.lightweight
- If true, uses a GLJPanel (lightweight) JComponent,
otherwise a GLCanvas. Note that setting this to true could negatively
impact performance.public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser, boolean lightweight)
caps
- A set of required capabilities for this canvas.chooser
- Custom algorithm for selecting one of the available
GLCapabilities for the component;lightweight
- If true, uses a GLJPanel (lightweight) JComponent,
otherwise a GLCanvas. Note that setting this to true could negatively
impact performance.public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, BaseSurface sharedSurface)
If the sharedSurface parameter is null, then this is just treated as an ordinary non-shared frame. The return flag will be set appropriately.
caps
- A set of required capabilities for this canvas.sharedSurface
- The surface that you'd like this surface to share
the GL context with, if possible. May be null.public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser, BaseSurface sharedSurface)
If the sharedSurface parameter is null, then this is just treated as an ordinary non-shared frame. The return flag will be set appropriately.
caps
- A set of required capabilities for this canvas.chooser
- Custom algorithm for selecting one of the available
GLCapabilities for the component;sharedSurface
- The surface that you'd like this surface to share
the GL context with, if possible. May be null.public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, BaseSurface sharedSurface, boolean lightweight)
If the sharedSurface parameter is null, then this is just treated as an ordinary non-shared frame. The return flag will be set appropriately.
caps
- A set of required capabilities for this canvas.sharedSurface
- The surface that you'd like this surface to share
the GL context with, if possible. May be null.lightweight
- If true, uses a GLJPanel (lightweight) JComponent,
otherwise a GLCanvas. Note that setting this to true could negatively
impact performance.public DebugAWTSurface(javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser, BaseSurface sharedSurface, boolean lightweight)
If the sharedSurface parameter is null, then this is just treated as an ordinary non-shared frame. The return flag will be set appropriately.
caps
- A set of required capabilities for this canvas.chooser
- Custom algorithm for selecting one of the available
GLCapabilities for the component;sharedSurface
- The surface that you'd like this surface to share
the GL context with, if possible. May be null.lightweight
- If true, uses a GLJPanel (lightweight) JComponent,
otherwise a GLCanvas. Note that setting this to true could negatively
impact performance.Method Detail |
---|
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
evt
- The key event that caused this method to be calledpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
evt
- The key event that caused this method to be calledpublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
evt
- The key event that caused this method to be calledpublic java.lang.Object getSurfaceObject()
getSurfaceObject
in interface OutputDevice
protected boolean createLightweightContext()
createLightweightContext
in class BaseAWTSurface
public boolean draw(ProfilingData profilingData)
The return value indicates success or failure in the ability to render this frame. Typically it will indicate failure if the underlying surface has been disposed of, either directly through the calling of the method on this interface, or through an internal check mechanism. If failure is indicated, then check to see if the surface has been disposed of and discontinue rendering if it has.
draw
in interface OutputDevice
draw
in class BaseAWTSurface
profilingData
- The timing and load data
protected RenderingProcessor createRenderingProcessor(javax.media.opengl.GLContext context)
createRenderingProcessor
in class BaseSurface
context
- The GLContext instance to wrap for this processor
public void traceNextFrames(int count)
count
- The number of frames to output the debug state.
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |