Class JoGLCanvas
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvas
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy the GLPbuffervoiddisplay(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)voiddispose(com.jogamp.opengl.GLAutoDrawable drawable)intgetAntiAliasingLevel()Anti-aliasing level getter.JoGLBuffersManagergetBuffersManager()Return the buffers manager of this canvas.java.awt.DimensiongetDimension()Return the canvas dimension.com.jogamp.opengl.GL2getGl()Return the OpenGl context.intgetHeight()Return the canvas height.java.awt.image.BufferedImagegetImage()Get an image from the autoDrawableJoGLParametersgetJoGLParameters()Return the rendering parameters.DrawergetMainDrawer()Return the canvas main drawer.PickingManagergetPickingManager()Return the picking manager.JoGLRendererManagergetRendererManager()Return the renderer manager.JoGLTextureManagergetTextureManager()Texture manger getter.intgetWidth()Return the canvas width.voidinit(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)voidredraw()Ask the canvas to perform asynchronous drawing.voidredrawAndWait()Ask the canvas to perform asynchronous drawing.voidreshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable, int x, int y, int width, int height)voidsetAntiAliasingLevel(int antiAliasingLevel)Anti-aliasing level setter.voidsetDebugMode(boolean debug)voidsetMainDrawer(Drawer mainDrawer)Set this canvas main drawer.voidwaitImage()Wait until a drawing has been performed
-
-
-
Method Detail
-
setDebugMode
public void setDebugMode(boolean debug)
-
setMainDrawer
public void setMainDrawer(Drawer mainDrawer)
Description copied from interface:CanvasSet this canvas main drawer.- Specified by:
setMainDrawerin interfaceCanvas- Parameters:
mainDrawer- the new canvas main drawer.
-
getMainDrawer
public Drawer getMainDrawer()
Description copied from interface:CanvasReturn the canvas main drawer.- Specified by:
getMainDrawerin interfaceCanvas- Returns:
- the canvas main drawer.
-
getRendererManager
public JoGLRendererManager getRendererManager()
Description copied from interface:CanvasReturn the renderer manager.- Specified by:
getRendererManagerin interfaceCanvas- Returns:
- the renderer manager.
-
getBuffersManager
public JoGLBuffersManager getBuffersManager()
Description copied from interface:CanvasReturn the buffers manager of this canvas.- Specified by:
getBuffersManagerin interfaceCanvas- Returns:
- the buffers manager of this canvas.
-
getPickingManager
public PickingManager getPickingManager()
Description copied from interface:CanvasReturn the picking manager.- Specified by:
getPickingManagerin interfaceCanvas- Returns:
- the picking manager.
-
getTextureManager
public JoGLTextureManager getTextureManager()
Description copied from interface:CanvasTexture manger getter.- Specified by:
getTextureManagerin interfaceCanvas- Returns:
- the texture manager.
-
getWidth
public int getWidth()
Description copied from interface:CanvasReturn the canvas width.
-
getHeight
public int getHeight()
Description copied from interface:CanvasReturn the canvas height.
-
getDimension
public java.awt.Dimension getDimension()
Description copied from interface:CanvasReturn the canvas dimension.- Specified by:
getDimensionin interfaceCanvas- Returns:
- the canvas dimension.
-
redraw
public void redraw()
Description copied from interface:CanvasAsk the canvas to perform asynchronous drawing.
-
redrawAndWait
public void redrawAndWait()
Description copied from interface:CanvasAsk the canvas to perform asynchronous drawing.- Specified by:
redrawAndWaitin interfaceCanvas
-
waitImage
public void waitImage()
Description copied from interface:CanvasWait until a drawing has been performed
-
getAntiAliasingLevel
public int getAntiAliasingLevel()
Description copied from interface:CanvasAnti-aliasing level getter. - 0 for 1x - 1 for 2x - 2 for 4x - 3 for 8x - 4 for 16x- Specified by:
getAntiAliasingLevelin interfaceCanvas- Returns:
- the anti-aliasing level.
-
setAntiAliasingLevel
public void setAntiAliasingLevel(int antiAliasingLevel)
Description copied from interface:CanvasAnti-aliasing level setter. - 0 for 1x - 1 for 2x - 2 for 4x - 3 for 8x - 4 for 16x- Specified by:
setAntiAliasingLevelin interfaceCanvas- Parameters:
antiAliasingLevel- the new level.
-
getGl
public com.jogamp.opengl.GL2 getGl()
Return the OpenGl context.- Returns:
- the OpenGl context.
-
getJoGLParameters
public JoGLParameters getJoGLParameters()
Return the rendering parameters.- Returns:
- the rendering parameters.
-
getImage
public java.awt.image.BufferedImage getImage()
Get an image from the autoDrawable- Returns:
- an image
-
display
public void display(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
- Specified by:
displayin interfacecom.jogamp.opengl.GLEventListener
-
init
public void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
- Specified by:
initin interfacecom.jogamp.opengl.GLEventListener
-
reshape
public void reshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable, int x, int y, int width, int height)- Specified by:
reshapein interfacecom.jogamp.opengl.GLEventListener
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable drawable)
- Specified by:
disposein interfacecom.jogamp.opengl.GLEventListener
-
-