org.scilab.forge.scirenderer.implementation.jogl.drawer
Class JoGLShapeDrawer

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.jogl.drawer.JoGLShapeDrawer

public final class JoGLShapeDrawer
extends java.lang.Object

Utility class for drawing shapes.

Author:
Pierre Lando

Method Summary
 void draw(JoGLDrawingTools drawingTools, Geometry geometry, Appearance appearance)
          Draw a given geometry with given appearance.
static JoGLShapeDrawer getDrawer()
          Singleton getter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDrawer

public static JoGLShapeDrawer getDrawer()
Singleton getter.

Returns:
the unique JoGLShapeDrawer.

draw

public void draw(JoGLDrawingTools drawingTools,
                 Geometry geometry,
                 Appearance appearance)
          throws SciRendererException
Draw a given geometry with given appearance.

Parameters:
drawingTools - the drawing tools.
geometry - the geometry.
appearance - the appearance.
Throws:
SciRendererException - if the draw is not possible.