Class DefaultGeometry

  • All Implemented Interfaces:
    Geometry

    public class DefaultGeometry
    extends java.lang.Object
    implements Geometry
    Default implementation of a Geometry.
    Author:
    Pierre Lando
    • Constructor Detail

      • DefaultGeometry

        public DefaultGeometry()
        Default constructor.
    • Method Detail

      • getPolygonOffsetMode

        public final boolean getPolygonOffsetMode()
        Description copied from interface: Geometry
        Polygon offset mode getter.
        Specified by:
        getPolygonOffsetMode in interface Geometry
        Returns:
        the polygon offset mode.
      • getIndices

        public final IndicesBuffer getIndices()
        Description copied from interface: Geometry
        Return the indices if any. If null is returned, indices should be treated as consecutive number.
        Specified by:
        getIndices in interface Geometry
        Returns:
        the indices.
      • getWireIndices

        public final IndicesBuffer getWireIndices()
        Description copied from interface: Geometry
        Return the wire indices. If null is returned, no edges are drawn.
        Specified by:
        getWireIndices in interface Geometry
        Returns:
        the edges indices.
      • setFaceCullingMode

        public final void setFaceCullingMode​(Geometry.FaceCullingMode faceCullingMode)
        Face culling mode setter.
        Parameters:
        faceCullingMode - the new face culling mode.
      • setFillDrawingMode

        public final void setFillDrawingMode​(Geometry.FillDrawingMode fillDrawingMode)
        Fill drawing mode setter.
        Parameters:
        fillDrawingMode - the new fill drawing mode.
      • setLineDrawingMode

        public final void setLineDrawingMode​(Geometry.LineDrawingMode lineDrawingMode)
        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

        public final void setTextureCoordinates​(ElementsBuffer textureCoordinates)
        Texture coordinates setter.
        Parameters:
        textureCoordinates - the new texture coordinate data.
      • setVertices

        public final void setVertices​(ElementsBuffer vertices)
        Vertices setter.
        Parameters:
        vertices - the new vertices data.
      • setNormals

        public final void setNormals​(ElementsBuffer normals)
        Normals setter.
        Parameters:
        normals - the new normals data.
      • setColors

        public final void setColors​(ElementsBuffer colors)
        Colors setter.
        Parameters:
        colors - the new colors data.
      • setWireIndices

        public final void setWireIndices​(IndicesBuffer wireIndices)
        Wire indices setter.
        Parameters:
        wireIndices - the new wire indices data.
      • setIndices

        public final void setIndices​(IndicesBuffer indicesBuffer)
        Indices setter.
        Parameters:
        indicesBuffer - the new indices data.