Package org.scilab.forge.scirenderer
Interface Canvas
-
- All Known Implementing Classes:
G2DCanvas,JoGLCanvas
public interface Canvas- Author:
- Pierre Lando
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroy canvas : release Semaphore and associated threadsintgetAntiAliasingLevel()Anti-aliasing level getter.BuffersManagergetBuffersManager()Return the buffers manager of this canvas.java.awt.DimensiongetDimension()Return the canvas dimension.intgetHeight()Return the canvas height.DrawergetMainDrawer()Return the canvas main drawer.PickingManagergetPickingManager()Return the picking manager.RendererManagergetRendererManager()Return the renderer manager.TextureManagergetTextureManager()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.voidsetMainDrawer(Drawer mainDrawer)Set this canvas main drawer.voidwaitImage()Wait until a drawing has been performed
-
-
-
Method Detail
-
setMainDrawer
void setMainDrawer(Drawer mainDrawer)
Set this canvas main drawer.- Parameters:
mainDrawer- the new canvas main drawer.
-
getMainDrawer
Drawer getMainDrawer()
Return the canvas main drawer.- Returns:
- the canvas main drawer.
-
getRendererManager
RendererManager getRendererManager()
Return the renderer manager.- Returns:
- the renderer manager.
-
getBuffersManager
BuffersManager getBuffersManager()
Return the buffers manager of this canvas.- Returns:
- the buffers manager of this canvas.
-
getPickingManager
PickingManager getPickingManager()
Return the picking manager.- Returns:
- the picking manager.
-
getTextureManager
TextureManager getTextureManager()
Texture manger getter.- Returns:
- the texture manager.
-
getWidth
int getWidth()
Return the canvas width.- Returns:
- the canvas width.
-
getHeight
int getHeight()
Return the canvas height.- Returns:
- the canvas height.
-
getDimension
java.awt.Dimension getDimension()
Return the canvas dimension.- Returns:
- the canvas dimension.
-
getAntiAliasingLevel
int getAntiAliasingLevel()
Anti-aliasing level getter. - 0 for 1x - 1 for 2x - 2 for 4x - 3 for 8x - 4 for 16x- Returns:
- the anti-aliasing level.
-
setAntiAliasingLevel
void setAntiAliasingLevel(int antiAliasingLevel)
Anti-aliasing level setter. - 0 for 1x - 1 for 2x - 2 for 4x - 3 for 8x - 4 for 16x- Parameters:
antiAliasingLevel- the new level.
-
redraw
void redraw()
Ask the canvas to perform asynchronous drawing.
-
redrawAndWait
void redrawAndWait()
Ask the canvas to perform asynchronous drawing.
-
waitImage
void waitImage()
Wait until a drawing has been performed
-
destroy
void destroy()
Destroy canvas : release Semaphore and associated threads
-
-