Class Motor3D
java.lang.Object
org.scilab.forge.scirenderer.implementation.g2d.motor.Motor3D
- Author:
- Calixte DENIZET
-
Constructor Summary
ConstructorsConstructorDescriptionMotor3D(G2DCanvas canvas, Graphics2D g2d, Dimension dim) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the depth buffervoiddraw()Draw the scene in the Graphics2Dvoiddraw(DrawingTools drawingTools, Geometry geometry, Appearance appearance) Add the geometry to the scenevoiddraw(DrawingTools drawingTools, Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle) voiddraw(DrawingTools drawingTools, Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle) voiddrawTexture(DrawingTools drawingTools, BufferedImage image, Texture texture) booleanis2DView()voidReset this motorvoidsetAntialiased(boolean aa) voidsetClippingPlanes(List<ClippingPlane> clippingPlanes) voidSet the face culling modevoidsetGraphics(Graphics2D g2d) voidsetTransformation(Transformation transf, Transformation single) Set the current transformation
-
Constructor Details
-
Motor3D
Default constructor- Parameters:
g2d- a Graphics2D object where to drawdim- the graphic dimensions
-
-
Method Details
-
setGraphics
-
setAntialiased
public void setAntialiased(boolean aa) -
is2DView
public boolean is2DView() -
setClippingPlanes
-
setFaceCullingMode
Set the face culling mode- Parameters:
mode- the mode to set
-
setTransformation
Set the current transformation- Parameters:
transf- the transformation to set
-
getCurrentTransformation
-
getCurrentSingleTransformation
-
reset
-
clearDepth
public void clearDepth()Clear the depth buffer -
draw
public void draw()Draw the scene in the Graphics2D -
drawTexture
-
draw
Add the geometry to the scene- Parameters:
drawingTools- the DrawingToolsgeometry- the geometry to drawappearance- 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)
-