org.scilab.forge.scirenderer.implementation.g2d.motor
Class Motor3D

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.g2d.motor.Motor3D

public class Motor3D
extends java.lang.Object

Author:
Calixte DENIZET

Constructor Summary
Motor3D(java.awt.Graphics2D g2d, java.awt.Dimension dim)
          Default constructor
 
Method Summary
 void clearDepth()
          Clear the depth buffer
 void draw()
          Draw the scene in the Graphics2D
 void draw(DrawingTools drawingTools, Geometry geometry, Appearance appearance)
          Add the geometry to the scene
 void draw(DrawingTools drawingTools, Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle)
           
 void draw(DrawingTools drawingTools, Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle)
           
 void drawTexture(DrawingTools drawingTools, java.awt.image.BufferedImage image, Texture texture)
           
 Transformation getCurrentSingleTransformation()
           
 Transformation getCurrentTransformation()
           
 void reset(java.awt.Color color)
          Reset this motor
 void setClippingPlanes(java.util.List<ClippingPlane> clippingPlanes)
           
 void setFaceCullingMode(Geometry.FaceCullingMode mode)
          Set the face culling mode
 void setTransformation(Transformation transf, Transformation single)
          Set the current transformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Motor3D

public Motor3D(java.awt.Graphics2D g2d,
               java.awt.Dimension dim)
Default constructor

Parameters:
g2d - a Graphics2D object where to draw
dim - the graphic dimensions
Method Detail

setClippingPlanes

public void setClippingPlanes(java.util.List<ClippingPlane> clippingPlanes)

setFaceCullingMode

public void setFaceCullingMode(Geometry.FaceCullingMode mode)
Set the face culling mode

Parameters:
mode - the mode to set

setTransformation

public void setTransformation(Transformation transf,
                              Transformation single)
Set the current transformation

Parameters:
transf - the transformation to set

getCurrentTransformation

public Transformation getCurrentTransformation()

getCurrentSingleTransformation

public Transformation getCurrentSingleTransformation()

reset

public void reset(java.awt.Color color)
Reset this motor

Parameters:
color - the filling color

clearDepth

public void clearDepth()
Clear the depth buffer


draw

public void draw()
Draw the scene in the Graphics2D


drawTexture

public void drawTexture(DrawingTools drawingTools,
                        java.awt.image.BufferedImage image,
                        Texture texture)

draw

public void draw(DrawingTools drawingTools,
                 Geometry geometry,
                 Appearance appearance)
Add the geometry to the scene

Parameters:
drawingTools - the DrawingTools
geometry - the geometry to draw
appearance - the appearance to use

draw

public void draw(DrawingTools drawingTools,
                 Texture texture,
                 AnchorPosition anchor,
                 ElementsBuffer positions,
                 double rotationAngle)

draw

public void draw(DrawingTools drawingTools,
                 Texture texture,
                 AnchorPosition anchor,
                 Vector3d position,
                 double rotationAngle)