com.azalient.api.draw
Interface OpenGLWindow

All Superinterfaces:
ChangeListener, EventListener, WindowStateListener

public interface OpenGLWindow
extends WindowStateListener, ChangeListener

A "low-level" interface to the window (canvas) used to draw the OpenGL scene. Its main use is to provide "out-of-context" access to IDrawing and OpenGL handles.


Method Summary
 void blending(IShape.RenderBlending rb)
          Set the blending mode
 Component canvas()
          The drawing canvas component.
 IDrawing drawing()
          A handle to the drawing interface (renamed from idrawing() in Commuter 4.0)
 byte[] frameAsByteArray()
          Return the current screen state as an array of ARGB bytes.
 void gotoObject()
          Raise the "Find" window, which will search for an object and move the viewpoint to that object using IViewport.moveTo(com.azalient.api.a.position.IXyz)
 int height()
          The height of the drawing area, in pixels
 IDrawing idrawing()
          Deprecated. Use drawing()
 void notPrimarySelection(Object object)
          This object is no longer the primary selection of its type (primary link, primary node, etc )
 OpenGL openGL()
          A handle to the OpenGL interface
 OpenGLU openGLU()
          A handle to the OpenGL Utility interface (GLU)
 void primarySelection(Object object)
          Mark this object as being the primary selection of its type (primary link, primary node, etc )
 void redraw()
          Call this to force a screen redraw.
 void refresh()
          Call this to force a screen refresh
 void resize()
          Call this to force redraw/recalculation due to a change in window size
 void swap()
          Force swap of OpenGL buffers.
 int width()
          The width of the drawing area, in pixels
 int x()
          The X coordinate of the upper-left corner of the drawing pane, in screen coordinates
 int y()
          The Y coordinate of the upper-left corner of the drawing pane, in screen coordinates
 
Methods inherited from interface java.awt.event.WindowStateListener
windowStateChanged
 
Methods inherited from interface javax.swing.event.ChangeListener
stateChanged
 

Method Detail

swap

void swap()
Force swap of OpenGL buffers. This is public as an implementation effect, it is not intended for API use


redraw

void redraw()
Call this to force a screen redraw.

See Also:
refresh()

refresh

void refresh()
Call this to force a screen refresh


resize

void resize()
Call this to force redraw/recalculation due to a change in window size


openGL

OpenGL openGL()
A handle to the OpenGL interface


openGLU

OpenGLU openGLU()
A handle to the OpenGL Utility interface (GLU)


x

int x()
The X coordinate of the upper-left corner of the drawing pane, in screen coordinates


y

int y()
The Y coordinate of the upper-left corner of the drawing pane, in screen coordinates


width

int width()
The width of the drawing area, in pixels


height

int height()
The height of the drawing area, in pixels


frameAsByteArray

byte[] frameAsByteArray()
Return the current screen state as an array of ARGB bytes. This can be used for screen capture


idrawing

IDrawing idrawing()
Deprecated. Use drawing()

A handle to the drawing interface


drawing

IDrawing drawing()
A handle to the drawing interface (renamed from idrawing() in Commuter 4.0)


canvas

Component canvas()
The drawing canvas component.


gotoObject

void gotoObject()
Raise the "Find" window, which will search for an object and move the viewpoint to that object using IViewport.moveTo(com.azalient.api.a.position.IXyz)


primarySelection

void primarySelection(Object object)
Mark this object as being the primary selection of its type (primary link, primary node, etc )


notPrimarySelection

void notPrimarySelection(Object object)
This object is no longer the primary selection of its type (primary link, primary node, etc )


blending

void blending(IShape.RenderBlending rb)
Set the blending mode