|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.implementation.jogl.JoGLDrawingTools
public class JoGLDrawingTools
JoGl implementation of the DrawingTools.
| Method Summary | |
|---|---|
void |
bind(Texture texture)
|
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. |
JoGLCanvas |
getCanvas()
Return the canvas where draw is done. |
ClippingManager |
getClippingManager()
Return the clipping manager. |
javax.media.opengl.GL |
getGl()
Return the OpenGl context. |
JoGLCapacity |
getGLCapacity()
Return the OpenGl capacity of this canvas. |
LightManager |
getLightManager()
Return the light manager. |
TransformationManager |
getTransformationManager()
Return the transformation manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public JoGLCanvas getCanvas()
DrawingTools
getCanvas in interface DrawingToolspublic javax.media.opengl.GL getGl()
public JoGLCapacity getGLCapacity()
public TransformationManager getTransformationManager()
DrawingTools
getTransformationManager in interface DrawingToolspublic LightManager getLightManager()
DrawingTools
getLightManager in interface DrawingToolspublic ClippingManager getClippingManager()
DrawingTools
getClippingManager in interface DrawingToolspublic void clear(Color color)
DrawingTools
clear in interface DrawingToolscolor - the color used to clear the canvas.public void clear(java.awt.Color color)
DrawingTools
clear in interface DrawingToolscolor - the color used to clear the canvas.public void clearDepthBuffer()
DrawingTools
clearDepthBuffer in interface DrawingToolspublic void draw(Renderer renderer)
DrawingTools
draw in interface DrawingToolsrenderer - the given renderer.
public void draw(Geometry geometry)
throws SciRendererException
DrawingTools
draw in interface DrawingToolsgeometry - the geometry to draw.
SciRendererException - if the draw is not possible.
public void draw(Geometry geometry,
Appearance appearance)
throws SciRendererException
DrawingTools
draw in interface DrawingToolsgeometry - the geometry to draw.appearance - the appearance to use.
SciRendererException - if the draw is not possible.
public void draw(Texture texture)
throws SciRendererException
DrawingTools
draw in interface DrawingToolstexture - the texture to drawn.
SciRendererException - if the texture is not drawable.
public void draw(Sprite sprite,
SpriteAnchorPosition anchor,
ElementsBuffer positions)
DrawingTools
draw in interface DrawingToolssprite - the sprite to draw.anchor - the sprite anchor position.positions - the positions where the sprite will be drawn.
public void draw(Sprite sprite,
SpriteAnchorPosition anchor,
ElementsBuffer positions,
double rotationAngle)
DrawingTools
draw in interface DrawingToolssprite - the sprite to draw.anchor - the sprite anchor position.positions - the positions where the sprite will be drawn.rotationAngle - the rotation angle.
public void draw(Sprite sprite,
SpriteAnchorPosition anchor,
Vector3d position)
DrawingTools
draw in interface DrawingToolssprite - the sprite to draw.anchor - the sprite anchor position.position - the position where the sprite will be drawn.
public void draw(Sprite sprite,
SpriteAnchorPosition anchor,
Vector3d position,
double rotationAngle)
DrawingTools
draw in interface DrawingToolssprite - the sprite to draw.anchor - the sprite anchor position.position - the position where the sprite will be drawn.rotationAngle - the rotation angle.
public void bind(Texture texture)
throws SciRendererException
SciRendererException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||