Class DefaultGeometry
java.lang.Object
org.scilab.forge.scirenderer.shapes.geometry.DefaultGeometry
- All Implemented Interfaces:
Geometry
Default implementation of a Geometry.
- Author:
- Pierre Lando
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.scilab.forge.scirenderer.shapes.geometry.Geometry
Geometry.FaceCullingMode, Geometry.FillDrawingMode, Geometry.LineDrawingMode
-
Field Summary
Fields inherited from interface org.scilab.forge.scirenderer.shapes.geometry.Geometry
DEFAULT_FACE_CULLING_MODE, DEFAULT_FILL_DRAWING_MODE, DEFAULT_LINE_DRAWING_MODE, DEFAULT_POLYGON_OFFSET_MODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ElementsBuffer
Return the colors.final Geometry.FaceCullingMode
Face-culling mode getter.final Geometry.FillDrawingMode
Fill drawing mode getter.final IndicesBuffer
Return the indices if any.final Geometry.LineDrawingMode
Line drawing mode getter.final ElementsBuffer
Return the normals.final boolean
Polygon offset mode getter.final ElementsBuffer
Texture coordinates getter.final ElementsBuffer
Return the vertices.final IndicesBuffer
Return the wire indices.final void
setColors
(ElementsBuffer colors) Colors setter.final void
setFaceCullingMode
(Geometry.FaceCullingMode faceCullingMode) Face culling mode setter.final void
setFillDrawingMode
(Geometry.FillDrawingMode fillDrawingMode) Fill drawing mode setter.final void
setIndices
(IndicesBuffer indicesBuffer) Indices setter.final void
setLineDrawingMode
(Geometry.LineDrawingMode lineDrawingMode) Line drawing mode setter.final void
setNormals
(ElementsBuffer normals) Normals setter.final void
setPolygonOffsetMode
(boolean polygonOffsetMode) Polygon offset mode setter.final void
setTextureCoordinates
(ElementsBuffer textureCoordinates) Texture coordinates setter.final void
setVertices
(ElementsBuffer vertices) Vertices setter.final void
setWireIndices
(IndicesBuffer wireIndices) Wire indices setter.
-
Constructor Details
-
DefaultGeometry
public DefaultGeometry()Default constructor.
-
-
Method Details
-
getFaceCullingMode
Description copied from interface:Geometry
Face-culling mode getter.- Specified by:
getFaceCullingMode
in interfaceGeometry
- Returns:
- the face culling mode.
-
getFillDrawingMode
Description copied from interface:Geometry
Fill drawing mode getter.- Specified by:
getFillDrawingMode
in interfaceGeometry
- Returns:
- the fill-drawing mode for this object.
-
getLineDrawingMode
Description copied from interface:Geometry
Line drawing mode getter.- Specified by:
getLineDrawingMode
in interfaceGeometry
- Returns:
- the line drawing mode.
-
getPolygonOffsetMode
public final boolean getPolygonOffsetMode()Description copied from interface:Geometry
Polygon offset mode getter.- Specified by:
getPolygonOffsetMode
in interfaceGeometry
- Returns:
- the polygon offset mode.
-
getVertices
Description copied from interface:Geometry
Return the vertices.- Specified by:
getVertices
in interfaceGeometry
- Returns:
- the vertices.
-
getIndices
Description copied from interface:Geometry
Return the indices if any. Ifnull
is returned, indices should be treated as consecutive number.- Specified by:
getIndices
in interfaceGeometry
- Returns:
- the indices.
-
getWireIndices
Description copied from interface:Geometry
Return the wire indices. Ifnull
is returned, no edges are drawn.- Specified by:
getWireIndices
in interfaceGeometry
- Returns:
- the edges indices.
-
getColors
Description copied from interface:Geometry
Return the colors. -
getTextureCoordinates
Description copied from interface:Geometry
Texture coordinates getter.- Specified by:
getTextureCoordinates
in interfaceGeometry
- Returns:
- the texture coordinate.
-
getNormals
Description copied from interface:Geometry
Return the normals.- Specified by:
getNormals
in interfaceGeometry
- Returns:
- the normals.
-
setFaceCullingMode
Face culling mode setter.- Parameters:
faceCullingMode
- the new face culling mode.
-
setFillDrawingMode
Fill drawing mode setter.- Parameters:
fillDrawingMode
- the new fill drawing mode.
-
setLineDrawingMode
Line drawing mode setter.- Parameters:
lineDrawingMode
- the new line drawing mode.
-
setPolygonOffsetMode
public final void setPolygonOffsetMode(boolean polygonOffsetMode) Polygon offset mode setter.- Parameters:
polygonOffsetMode
- the new polygon offset mode.
-
setTextureCoordinates
Texture coordinates setter.- Parameters:
textureCoordinates
- the new texture coordinate data.
-
setVertices
Vertices setter.- Parameters:
vertices
- the new vertices data.
-
setNormals
Normals setter.- Parameters:
normals
- the new normals data.
-
setColors
Colors setter.- Parameters:
colors
- the new colors data.
-
setWireIndices
Wire indices setter.- Parameters:
wireIndices
- the new wire indices data.
-
setIndices
Indices setter.- Parameters:
indicesBuffer
- the new indices data.
-