Documentation of 'org.jzy3d.plot3d.primitives.vbo.drawable.DrawableVBO' Java class
DrawableVBO
org.jzy3d.plot3d.primitives.vbo.drawable

Class DrawableVBO

  • All Implemented Interfaces:
    IGLBindedResource, IGLRenderer, ISortableDraw
    Direct Known Subclasses:
    BarVBO, ScatterVBO


    public class DrawableVBO
    extends AbstractDrawable
    implements IGLBindedResource
    A DrawableVBO is able to efficiently draw a large collection of geometries. The user must provide a loader that will be later called when the GL context requires loading the VBO data in GPU memory. The loader might freely make settings on the drawable as it is called with a reference to the DrawableVBO is will be loading data into. One can separate data and appearance by setting geometry settings out of loading process. DrawableVBO shape1 = new DrawableVBO(new MemoryVBOLoader(getScatter(size))); shape1.setGeometry(GL.GL_POINTS); shape1.setColor(Color.WHITE);
    • 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.
      • getWidth

        public float getWidth()
      • setWidth

        public void setWidth(float width)
      • getQuality

        public Quality getQuality()
      • setQuality

        public void setQuality(Quality quality)
      • rotator

        public Rotator rotator(boolean start)
        Returns a Rotator that can let the VBO turn around Z axis centered at X=0,Y=0. Must be started by Rotator.start() if not started explicitely.
      • rotator

        public Rotator rotator()
      • isHasColorBuffer

        public boolean isHasColorBuffer()
      • setHasColorBuffer

        public void setHasColorBuffer(boolean hasColorBuffer)
      • getGeometry

        public int getGeometry()
      • setGeometry

        public void setGeometry(int geometry)
        Set geometry, use: GL.GL_TRIANGLES (default) ...
        Parameters:
        geometry -
      • setData

        public void setData(com.jogamp.opengl.GL gl,
                            FloatVBO vbo)
        To be called by the VBOBuilder
      • setData

        public void setData(com.jogamp.opengl.GL gl,
                            java.nio.IntBuffer indices,
                            java.nio.FloatBuffer vertices,
                            BoundingBox3d bounds)
      • setData

        public void setData(com.jogamp.opengl.GL2 gl,
                            java.nio.IntBuffer indices,
                            java.nio.FloatBuffer vertices,
                            BoundingBox3d bounds,
                            int pointer)
      • doConfigure

        public void doConfigure(int pointer,
                                int size)
      • doConfigure

        public void doConfigure(int pointer,
                                int size,
                                int byteOffset,
                                int normalOffset,
                                int dimensions)
      • doLoadArrayFloatBuffer

        public void doLoadArrayFloatBuffer(com.jogamp.opengl.GL gl,
                                           java.nio.FloatBuffer vertices)
      • doLoadArrayFloatBuffer

        public void doLoadArrayFloatBuffer(com.jogamp.opengl.GL gl,
                                           int vertexSize,
                                           java.nio.FloatBuffer vertices)
      • doLoadElementIntBuffer

        public void doLoadElementIntBuffer(com.jogamp.opengl.GL gl,
                                           java.nio.IntBuffer indices)
      • doLoadElementIntBuffer

        public void doLoadElementIntBuffer(com.jogamp.opengl.GL gl,
                                           int indexSize,
                                           java.nio.IntBuffer indices)
      • doSetBoundingBox

        public void doSetBoundingBox(BoundingBox3d bounds)
      • getColor

        public Color getColor()
      • setColor

        public void setColor(Color color)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.