Documentation of 'org.jzy3d.plot3d.primitives.AbstractGeometry' Java class
AbstractGeometry
org.jzy3d.plot3d.primitives

Class AbstractGeometry

    • Constructor Detail

      • AbstractGeometry

        public AbstractGeometry()
        Initializes an empty AbstractGeometry with face status defaulting to true, and wireframe status defaulting to false.
    • Method Detail

      • draw

        public void draw(com.jogamp.opengl.GL gl,
                         com.jogamp.opengl.glu.GLU glu,
                         Camera cam)
        Description copied from class: AbstractDrawable
        Call OpenGL2 routines for rendering the object.
        Specified by:
        draw in interface IGLRenderer
        Specified by:
        draw in class AbstractDrawable
        Parameters:
        gl - GL2 context
        glu - GLU context
        cam - a reference to a shooting Camera.
      • callPointsForWireframeGL2

        public void callPointsForWireframeGL2(com.jogamp.opengl.GL gl)
        Drawing the point list in wireframe mode
      • callPointsForFaceGLES2

        public void callPointsForFaceGLES2(com.jogamp.opengl.GL gl)
        Drawing the point list in face mode (polygon content) with GLES2 profile
      • callPointsForFaceGLES2

        public void callPointsForFaceGLES2(com.jogamp.opengl.GL gl,
                                           java.util.List<Point> points)
        Drawing the point list in face mode (polygon content) with GLES2 profile
      • callPointsForFaceGL2

        public void callPointsForFaceGL2(com.jogamp.opengl.GL gl)
        Drawing the point list in face mode (polygon content) with GL2 profile
      • applyPolygonModeFillGLES2

        public void applyPolygonModeFillGLES2()
      • applyPolygonModeFillGL2

        public void applyPolygonModeFillGL2(com.jogamp.opengl.GL gl)
      • add

        public void add(Point point)
      • add

        public void add(Point point,
                        boolean updateBounds)
        Add a point to the polygon.
      • getBarycentre

        public Coord3d getBarycentre()
        Description copied from class: AbstractDrawable
        Return the barycentre of this object, which is computed as the center of its bounding box. If the bounding box is not available, the returned value is Coord3d.INVALID
        Overrides:
        getBarycentre in class AbstractDrawable
        Returns:
        the center of the bounding box, or Coord3d.INVALID.
      • get

        public Point get(int p)
      • getPoints

        public java.util.List<Point> getPoints()
      • size

        public int size()
      • setPolygonMode

        public void setPolygonMode(AbstractGeometry.PolygonMode polygonMode)
        A null polygonMode imply no any call to gl.glPolygonMode(...) at rendering
      • isPolygonOffsetFillEnable

        public boolean isPolygonOffsetFillEnable()
      • setPolygonOffsetFillEnable

        public void setPolygonOffsetFillEnable(boolean polygonOffsetFillEnable)
        Enable offset fill, which let a polygon with a wireframe render cleanly without weird depth incertainty between face and border. Default value is true.
      • setPolygonOffsetFillEnable

        public static void setPolygonOffsetFillEnable(AbstractComposite composite,
                                                      boolean polygonOffsetFillEnable)
        A utility to change polygon offset fill status of a AbstractComposite containing AbstractGeometrys.
        Parameters:
        composite -
        polygonOffsetFillEnable - status

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.