Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.swt.draw2d
Class SimpleDraw2DSurface

java.lang.Object
  extended by org.j3d.aviatrix3d.output.graphics.BaseSurface
      extended by org.j3d.renderer.aviatrix3d.swt.draw2d.BaseDraw2DSurface
          extended by org.j3d.renderer.aviatrix3d.swt.draw2d.SimpleDraw2DSurface
All Implemented Interfaces:
GraphicsOutputDevice, OutputDevice

public class SimpleDraw2DSurface
extends BaseDraw2DSurface

Implementation of the most basic drawable surface using Draw2D figure.

Version:
$Revision: 1.4 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.j3d.renderer.aviatrix3d.swt.draw2d.BaseDraw2DSurface
glFigure, 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
SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device)
          Construct a surface that requires the given set of capabilities.
SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device, javax.media.opengl.GLCapabilities caps)
          Construct a surface that requires the given set of capabilities.
SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device, javax.media.opengl.GLCapabilities caps, BaseSurface sharedWith)
          Construct a surface shares it's GL context with the given surface.
SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device, javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser)
          Construct a surface that requires the given set of capabilities.
SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device, javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser, BaseSurface sharedWith)
          Construct a surface shares it's GL context with the given surface.
 
Method Summary
 
Methods inherited from class org.j3d.renderer.aviatrix3d.swt.draw2d.BaseDraw2DSurface
addGraphicsResizeListener, draw, enableSingleThreaded, getSurfaceObject, removeGraphicsResizeListener, setErrorReporter, swap
 
Methods inherited from class org.j3d.aviatrix3d.output.graphics.BaseSurface
addSurfaceInfoListener, checkForExtension, completeCanvasInitialisation, createRenderingProcessor, dispose, disposeSingleThreadResources, draw, enableTwoPassTransparentRendering, getAlphaTestCutoff, getCenterEyeInSurface, getGLContext, getPixelLocationInSurface, getSharedGLContext, getStereoEyeSeparation, getStereoRenderingPolicy, getSurfaceToVWorld, init, initCanvas, isDisposed, isQuadStereoAvailable, isShared, isStereoAvailable, isTwoPassTransparentEnabled, removeSurfaceInfoListener, setAlphaTestCutoff, setClearColor, setColorClearNeeded, setDrawableObjects, setStereoEyeSeparation, setStereoRenderingPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDraw2DSurface

public SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device)
Construct a surface that requires the given set of capabilities. This surface acts as a standalone canvas.

Parameters:
device - The screen device context that holds the parent component. Must not be null

SimpleDraw2DSurface

public SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device,
                           javax.media.opengl.GLCapabilities caps)
Construct a surface that requires the given set of capabilities. This surface acts as a standalone canvas.

Parameters:
device - The screen device context that holds the parent component. Must not be null
caps - A set of required capabilities for this canvas.

SimpleDraw2DSurface

public SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device,
                           javax.media.opengl.GLCapabilities caps,
                           javax.media.opengl.GLCapabilitiesChooser chooser)
Construct a surface that requires the given set of capabilities. This surface acts as a standalone canvas.

Parameters:
device - The screen device context that holds the parent component. Must not be null
caps - A set of required capabilities for this canvas.
chooser - Custom algorithm for selecting one of the available GLCapabilities for the component;

SimpleDraw2DSurface

public SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device,
                           javax.media.opengl.GLCapabilities caps,
                           BaseSurface sharedWith)
Construct a surface shares it's GL context with the given surface. This is useful for constructing multiple view displays of the same scene graph, but from different viewing directions, such as in a CAD application.

If the sharedWith parameter is null, then this is just treated as an ordinary non-shared frame. The return flag will be set appropriately.

Parameters:
device - The screen device context that holds the parent component. Must not be null
caps - A set of required capabilities for this canvas.
sharedWith - The surface that you'd like this surface to share the GL context with, if possible. May be null.

SimpleDraw2DSurface

public SimpleDraw2DSurface(org.eclipse.swt.widgets.Display device,
                           javax.media.opengl.GLCapabilities caps,
                           javax.media.opengl.GLCapabilitiesChooser chooser,
                           BaseSurface sharedWith)
Construct a surface shares it's GL context with the given surface. This is useful for constructing multiple view displays of the same scene graph, but from different viewing directions, such as in a CAD application.

If the sharedWith parameter is null, then this is just treated as an ordinary non-shared frame. The return flag will be set appropriately.

Parameters:
device - The screen device context that holds the parent component. Must not be null
caps - A set of required capabilities for this canvas.
chooser - Custom algorithm for selecting one of the available GLCapabilities for the component;
sharedWith - The surface that you'd like this surface to share the GL context with, if possible. May be null.

Aviatrix3D
2.1.0

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