Class G2DCanvas
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.g2d.G2DCanvas
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy canvas : release Semaphore and associated threadsvoiddisableDraw()voiddraw()voidenableDraw()intgetAntiAliasingLevel()Anti-aliasing level getter.G2DBuffersManagergetBuffersManager()Return the buffers manager of this canvas.java.awt.DimensiongetDimension()Return the canvas dimension.DrawingToolsgetDrawingTools()intgetHeight()Return the canvas height.DrawergetMainDrawer()Return the canvas main drawer.Motor3DgetMotor3D()Return the OpenGl context.PickingManagergetPickingManager()Return the picking manager.G2DRendererManagergetRendererManager()Return the renderer manager.G2DTextureManagergetTextureManager()Texture manger getter.intgetWidth()Return the canvas width.voidredraw()Ask the canvas to perform asynchronous drawing.voidredrawAndWait()Ask the canvas to perform asynchronous drawing.voidsetAntiAliasingLevel(int antiAliasingLevel)Anti-aliasing level setter.voidsetGraphics(java.awt.Graphics2D g2d, int width, int height)voidsetMainDrawer(Drawer mainDrawer)Set this canvas main drawer.voidwaitImage()Wait until a drawing has been performed
-
-
-
Method Detail
-
getDrawingTools
public DrawingTools getDrawingTools()
-
setGraphics
public void setGraphics(java.awt.Graphics2D g2d, int width, int height)
-
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 G2DRendererManager getRendererManager()
Description copied from interface:CanvasReturn the renderer manager.- Specified by:
getRendererManagerin interfaceCanvas- Returns:
- the renderer manager.
-
getBuffersManager
public G2DBuffersManager 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 G2DTextureManager 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.
-
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.
-
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
-
disableDraw
public void disableDraw()
-
enableDraw
public void enableDraw()
-
draw
public void draw()
-
getMotor3D
public Motor3D getMotor3D()
Return the OpenGl context.- Returns:
- the OpenGl context.
-
-