Documentation of 'org.jzy3d.plot3d.rendering.view.Renderer3d' Java class
Renderer3d
org.jzy3d.plot3d.rendering.view

Class Renderer3d

  • All Implemented Interfaces:
    com.jogamp.opengl.GLEventListener, java.util.EventListener
    Direct Known Subclasses:
    AWTRenderer3d


    public class Renderer3d
    extends java.lang.Object
    implements com.jogamp.opengl.GLEventListener
    The Renderer3d object is a GLEventListener, that makes openGL calls necessary to initialize and render a Scene for an ICanvas. One can activate OpenGl errors in console by setting debugGL to true in the constructor One can activate OpenGl feedback in console by setting traceGL to true in the constructor
    • Constructor Summary

      Constructors 
      Constructor and Description
      Renderer3d() 
      Renderer3d(View view)
      Initialize a Renderer attached to the given View.
      Renderer3d(View view, boolean traceGL, boolean debugGL)
      Initialize a Renderer attached to the given View, and activate GL trace and errors to console.
      Renderer3d(View view, boolean traceGL, boolean debugGL, com.jogamp.opengl.glu.GLU glu) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void display(com.jogamp.opengl.GLAutoDrawable canvas)
      Called when the GLAutoDrawable requires a rendering.
      void dispose(com.jogamp.opengl.GLAutoDrawable arg0) 
      int getHeight()
      Return the height that was given after the last resize event.
      com.jogamp.opengl.util.texture.TextureData getLastScreenshot() 
      int getWidth()
      Return the width that was given after the last resize event.
      void init(com.jogamp.opengl.GLAutoDrawable canvas)
      Called when the GLAutoDrawable is rendered for the first time.
      void nextDisplayUpdateScreenshot() 
      void reshape(com.jogamp.opengl.GLAutoDrawable canvas, int x, int y, int width, int height)
      Called when the GLAutoDrawable is resized.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Renderer3d

        public Renderer3d(View view)
        Initialize a Renderer attached to the given View.
      • Renderer3d

        public Renderer3d()
      • Renderer3d

        public Renderer3d(View view,
                          boolean traceGL,
                          boolean debugGL)
        Initialize a Renderer attached to the given View, and activate GL trace and errors to console.
      • Renderer3d

        public Renderer3d(View view,
                          boolean traceGL,
                          boolean debugGL,
                          com.jogamp.opengl.glu.GLU glu)
    • Method Detail

      • init

        public void init(com.jogamp.opengl.GLAutoDrawable canvas)
        Called when the GLAutoDrawable is rendered for the first time. When one calls Scene.init() function, this function is called and makes the OpenGL buffers initialization. Note: in this implementation, GL Exceptions are not triggered. To do so, make te following call at the beginning of the init() body: canvas.setGL( new DebugGL(canvas.getGL()) );
        Specified by:
        init in interface com.jogamp.opengl.GLEventListener
      • display

        public void display(com.jogamp.opengl.GLAutoDrawable canvas)
        Called when the GLAutoDrawable requires a rendering. All call to rendering methods should appear here.
        Specified by:
        display in interface com.jogamp.opengl.GLEventListener
      • reshape

        public void reshape(com.jogamp.opengl.GLAutoDrawable canvas,
                            int x,
                            int y,
                            int width,
                            int height)
        Called when the GLAutoDrawable is resized.
        Specified by:
        reshape in interface com.jogamp.opengl.GLEventListener
      • dispose

        public void dispose(com.jogamp.opengl.GLAutoDrawable arg0)
        Specified by:
        dispose in interface com.jogamp.opengl.GLEventListener
      • nextDisplayUpdateScreenshot

        public void nextDisplayUpdateScreenshot()
      • getLastScreenshot

        public com.jogamp.opengl.util.texture.TextureData getLastScreenshot()
      • getWidth

        public int getWidth()
        Return the width that was given after the last resize event.
      • getHeight

        public int getHeight()
        Return the height that was given after the last resize event.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.