public class G2DDrawingTools extends java.lang.Object implements DrawingTools
| Modifier and Type | Method and Description |
|---|---|
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(Texture texture)
Draw the texture on XY plane in current coordinate.
|
void |
draw(Texture texture,
AnchorPosition anchor,
ElementsBuffer positions)
Draw the given texture at all given position.
|
void |
draw(Texture texture,
AnchorPosition anchor,
ElementsBuffer positions,
double rotationAngle)
Draw the given texture at all given position with the given rotation angle.
|
void |
draw(Texture texture,
AnchorPosition anchor,
Vector3d position)
Draw the given texture at given position.
|
void |
draw(Texture texture,
AnchorPosition anchor,
Vector3d position,
double rotationAngle)
Draw the given texture at given position with the given rotation angle.
|
G2DCanvas |
getCanvas()
Return the canvas where draw is done.
|
G2DClippingManager |
getClippingManager()
Return the clipping manager.
|
LightManager |
getLightManager()
Return the light manager.
|
Motor3D |
getMotor3D() |
TransformationManager |
getTransformationManager()
Return the transformation manager.
|
public Motor3D getMotor3D()
public G2DCanvas getCanvas()
DrawingToolsgetCanvas in interface DrawingToolspublic TransformationManager getTransformationManager()
DrawingToolsgetTransformationManager in interface DrawingToolspublic LightManager getLightManager()
DrawingToolsgetLightManager in interface DrawingToolspublic G2DClippingManager getClippingManager()
DrawingToolsgetClippingManager in interface DrawingToolspublic void clear(Color color)
DrawingToolsclear in interface DrawingToolscolor - the color used to clear the canvas.public void clear(java.awt.Color color)
DrawingToolsclear in interface DrawingToolscolor - the color used to clear the canvas.public void clearDepthBuffer()
DrawingToolsclearDepthBuffer in interface DrawingToolspublic void draw(Renderer renderer)
DrawingToolsdraw in interface DrawingToolsrenderer - the given renderer.public void draw(Geometry geometry) throws SciRendererException
DrawingToolsdraw in interface DrawingToolsgeometry - the geometry to draw.SciRendererException - if the draw is not possible.public void draw(Geometry geometry, Appearance appearance) throws SciRendererException
DrawingToolsdraw 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
DrawingToolsdraw in interface DrawingToolstexture - the texture to drawn.SciRendererException - if the texture is not drawable.public void draw(Texture texture, AnchorPosition anchor, ElementsBuffer positions)
DrawingToolsdraw in interface DrawingToolstexture - the texture to draw.anchor - the texture anchor position.positions - the positions where the texture will be drawn.public void draw(Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle)
DrawingToolsdraw in interface DrawingToolstexture - the texture to draw.anchor - the texture anchor position.positions - the positions where the texture will be drawn.rotationAngle - the rotation angle.public void draw(Texture texture, AnchorPosition anchor, Vector3d position)
DrawingToolsdraw in interface DrawingToolstexture - the texture to draw.anchor - the texture anchor position.position - the position where the texture will be drawn.public void draw(Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle)
DrawingToolsdraw in interface DrawingToolstexture - the texture to draw.anchor - the texture anchor position.position - the position where the texture will be drawn.rotationAngle - the rotation angle.