|
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.renderer.aviatrix3d.swt.output.BaseSWTSurface
public class BaseSWTSurface
Extended base implementation of the basic drawable surface, but adding in some SWT-specific features.
SWT is an independent windowing toolkit developed by IBM as part of the Eclipse project. It doesn't use AWT at all. Note that to run this code we assume that you already have at least SWT installed on your system, and probably even all of Eclipse.
Field Summary | |
---|---|
protected org.j3d.renderer.aviatrix3d.swt.output.SWTResizeHandler |
resizer
Handler for dealing with the AWT to our graphics resize handler |
protected GLCanvas |
swtCanvas
The SWT version of the OpenGL canvas |
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 | |
---|---|
BaseSWTSurface(BaseSurface sharedWith)
Construct a surface that requires the given set of capabilities. |
Method Summary | |
---|---|
void |
addGraphicsResizeListener(GraphicsResizeListener l)
Add a resize listener instance to this surface. |
java.lang.Object |
getSurfaceObject()
Get the underlying object that this surface is rendered to. |
void |
removeGraphicsResizeListener(GraphicsResizeListener l)
Remove a resize listener from this surface. |
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 |
Field Detail |
---|
protected org.j3d.renderer.aviatrix3d.swt.output.SWTResizeHandler resizer
protected GLCanvas swtCanvas
Constructor Detail |
---|
public BaseSWTSurface(BaseSurface sharedWith)
sharedWith
- The surface that you'd like this surface to share
the GL context with, if possible. May be null.Method Detail |
---|
public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter
in interface OutputDevice
setErrorReporter
in class BaseSurface
reporter
- The instance to use or nullpublic void addGraphicsResizeListener(GraphicsResizeListener l)
l
- The new listener instance to addpublic void removeGraphicsResizeListener(GraphicsResizeListener l)
l
- The listener instance to removepublic java.lang.Object getSurfaceObject()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |