org.scilab.forge.scirenderer
Interface DrawingTools

All Known Implementing Classes:
JoGLDrawingTools

public interface DrawingTools

Author:
Pierre Lando

Method Summary
 void clear(Color color)
          Clear the canvas with the given color.
 void clear(java.awt.Color color)
          Clear the canvas with the given color.
 void clearDepthBuffer()
          Clear the depth buffer.
 void draw(Geometry geometry)
          Draw the given geometry with default appearance.
 void draw(Geometry geometry, Appearance appearance)
          Draw the given geometry.
 void draw(Renderer renderer)
          Ask the given renderer to perform a draw.
 void draw(Sprite sprite, SpriteAnchorPosition anchor, ElementsBuffer positions)
          Draw the given sprite at all given position.
 void draw(Sprite sprite, SpriteAnchorPosition anchor, ElementsBuffer positions, double rotationAngle)
          Draw the given sprite at all given position with the given rotation angle.
 void draw(Sprite sprite, SpriteAnchorPosition anchor, Vector3d position)
          Draw the given sprite at given position.
 void draw(Sprite sprite, SpriteAnchorPosition anchor, Vector3d position, double rotationAngle)
          Draw the given sprite at given position with the given rotation angle.
 void draw(Texture texture)
          Draw the texture on XY plane in current coordinate.
 Canvas getCanvas()
          Return the canvas where draw is done.
 ClippingManager getClippingManager()
          Return the clipping manager.
 LightManager getLightManager()
          Return the light manager.
 TransformationManager getTransformationManager()
          Return the transformation manager.
 

Method Detail

getCanvas

Canvas getCanvas()
Return the canvas where draw is done.

Returns:
the canvas where draw is done.

getTransformationManager

TransformationManager getTransformationManager()
Return the transformation manager.

Returns:
the transformation manager.

getLightManager

LightManager getLightManager()
Return the light manager.

Returns:
the light manager.

getClippingManager

ClippingManager getClippingManager()
Return the clipping manager.

Returns:
the clipping manager.

clear

void clear(Color color)
Clear the canvas with the given color.

Parameters:
color - the color used to clear the canvas.

clear

void clear(java.awt.Color color)
Clear the canvas with the given color.

Parameters:
color - the color used to clear the canvas.

clearDepthBuffer

void clearDepthBuffer()
Clear the depth buffer.


draw

void draw(Renderer renderer)
Ask the given renderer to perform a draw.

Parameters:
renderer - the given renderer.

draw

void draw(Geometry geometry)
          throws SciRendererException
Draw the given geometry with default appearance.

Parameters:
geometry - the geometry to draw.
Throws:
SciRendererException - if the draw is not possible.

draw

void draw(Geometry geometry,
          Appearance appearance)
          throws SciRendererException
Draw the given geometry.

Parameters:
geometry - the geometry to draw.
appearance - the appearance to use.
Throws:
SciRendererException - if the draw is not possible.

draw

void draw(Texture texture)
          throws SciRendererException
Draw the texture on XY plane in current coordinate. The texture is drawn on the rectangle [(0,0)-(texture width,texture height)].

Parameters:
texture - the texture to drawn.
Throws:
SciRendererException - if the texture is not drawable.

draw

void draw(Sprite sprite,
          SpriteAnchorPosition anchor,
          ElementsBuffer positions)
Draw the given sprite at all given position.

Parameters:
sprite - the sprite to draw.
anchor - the sprite anchor position.
positions - the positions where the sprite will be drawn.

draw

void draw(Sprite sprite,
          SpriteAnchorPosition anchor,
          ElementsBuffer positions,
          double rotationAngle)
Draw the given sprite at all given position with the given rotation angle.

Parameters:
sprite - the sprite to draw.
anchor - the sprite anchor position.
positions - the positions where the sprite will be drawn.
rotationAngle - the rotation angle.

draw

void draw(Sprite sprite,
          SpriteAnchorPosition anchor,
          Vector3d position)
Draw the given sprite at given position.

Parameters:
sprite - the sprite to draw.
anchor - the sprite anchor position.
position - the position where the sprite will be drawn.

draw

void draw(Sprite sprite,
          SpriteAnchorPosition anchor,
          Vector3d position,
          double rotationAngle)
Draw the given sprite at given position with the given rotation angle.

Parameters:
sprite - the sprite to draw.
anchor - the sprite anchor position.
position - the position where the sprite will be drawn.
rotationAngle - the rotation angle.