Class G2DDrawingTools
java.lang.Object
org.scilab.forge.scirenderer.implementation.g2d.G2DDrawingTools
- All Implemented Interfaces:
DrawingTools
JoGl implementation of the DrawingTools.
- Author:
- Calixte DENIZET
-
Method Summary
Modifier and TypeMethodDescriptionvoidClear the canvas with the given color.voidClear the canvas with the given color.voidClear the depth buffer.voidAsk the given renderer to perform a draw.voidDraw the given geometry with default appearance.voiddraw(Geometry geometry, Appearance appearance) Draw the given geometry.voidDraw the texture on XY plane in current coordinate.voiddraw(Texture texture, AnchorPosition anchor, ElementsBuffer positions) Draw the given texture at all given position.voiddraw(Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle) Draw the given texture at all given position with the given rotation angle.voiddraw(Texture texture, AnchorPosition anchor, Vector3d position) Draw the given texture at given position.voiddraw(Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle) Draw the given texture at given position with the given rotation angle.Return the canvas where draw is done.Return the clipping manager.Return the light manager.Return the transformation manager.
-
Method Details
-
getMotor3D
-
getCanvas
Description copied from interface:DrawingToolsReturn the canvas where draw is done.- Specified by:
getCanvasin interfaceDrawingTools- Returns:
- the canvas where draw is done.
-
getTransformationManager
Description copied from interface:DrawingToolsReturn the transformation manager.- Specified by:
getTransformationManagerin interfaceDrawingTools- Returns:
- the transformation manager.
-
getLightManager
Description copied from interface:DrawingToolsReturn the light manager.- Specified by:
getLightManagerin interfaceDrawingTools- Returns:
- the light manager.
-
getClippingManager
Description copied from interface:DrawingToolsReturn the clipping manager.- Specified by:
getClippingManagerin interfaceDrawingTools- Returns:
- the clipping manager.
-
clear
Description copied from interface:DrawingToolsClear the canvas with the given color.- Specified by:
clearin interfaceDrawingTools- Parameters:
color- the color used to clear the canvas.
-
clear
Description copied from interface:DrawingToolsClear the canvas with the given color.- Specified by:
clearin interfaceDrawingTools- Parameters:
color- the color used to clear the canvas.
-
clearDepthBuffer
public void clearDepthBuffer()Description copied from interface:DrawingToolsClear the depth buffer.- Specified by:
clearDepthBufferin interfaceDrawingTools
-
draw
Description copied from interface:DrawingToolsAsk the given renderer to perform a draw.- Specified by:
drawin interfaceDrawingTools- Parameters:
renderer- the given renderer.
-
draw
Description copied from interface:DrawingToolsDraw the given geometry with default appearance.- Specified by:
drawin interfaceDrawingTools- Parameters:
geometry- the geometry to draw.- Throws:
SciRendererException- if the draw is not possible.
-
draw
Description copied from interface:DrawingToolsDraw the given geometry.- Specified by:
drawin interfaceDrawingTools- Parameters:
geometry- the geometry to draw.appearance- the appearance to use.- Throws:
SciRendererException- if the draw is not possible.
-
draw
Description copied from interface:DrawingToolsDraw the texture on XY plane in current coordinate. The texture is drawn on the rectangle [(0,0)-(texture width,texture height)].- Specified by:
drawin interfaceDrawingTools- Parameters:
texture- the texture to drawn.- Throws:
SciRendererException- if the texture is not drawable.
-
draw
Description copied from interface:DrawingToolsDraw the given texture at all given position.- Specified by:
drawin interfaceDrawingTools- Parameters:
texture- the texture to draw.anchor- the texture anchor position.positions- the positions where the texture will be drawn.
-
draw
public void draw(Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle) Description copied from interface:DrawingToolsDraw the given texture at all given position with the given rotation angle.- Specified by:
drawin interfaceDrawingTools- Parameters:
texture- the texture to draw.anchor- the texture anchor position.positions- the positions where the texture will be drawn.rotationAngle- the rotation angle.
-
draw
Description copied from interface:DrawingToolsDraw the given texture at given position.- Specified by:
drawin interfaceDrawingTools- Parameters:
texture- the texture to draw.anchor- the texture anchor position.position- the position where the texture will be drawn.
-
draw
Description copied from interface:DrawingToolsDraw the given texture at given position with the given rotation angle.- Specified by:
drawin interfaceDrawingTools- Parameters:
texture- the texture to draw.anchor- the texture anchor position.position- the position where the texture will be drawn.rotationAngle- the rotation angle.
-