Class AbstractDepthPeelingAlgorithm

java.lang.Object
org.jzy3d.plot3d.rendering.ddp.algorithms.AbstractDepthPeelingAlgorithm
All Implemented Interfaces:
IDepthPeelingAlgorithm
Direct Known Subclasses:
AbstractAccumulationDepthPeeling, DualDepthPeelingAlgorithm, FrontToBackPeelingAlgorithm

public abstract class AbstractDepthPeelingAlgorithm extends Object implements IDepthPeelingAlgorithm
  • Field Details

    • MAX_DEPTH

      public static final float MAX_DEPTH
      See Also:
    • g_drawBuffers

      protected int[] g_drawBuffers
    • g_quadDisplayList

      protected int g_quadDisplayList
    • g_numPasses

      protected int g_numPasses
    • g_numGeoPasses

      protected int g_numGeoPasses
    • g_useOQ

      protected boolean g_useOQ
    • g_white

      protected float[] g_white
    • g_black

      protected float[] g_black
    • g_backgroundColor

      protected float[] g_backgroundColor
    • g_opacity

      protected float[] g_opacity
    • g_queryId

      protected int[] g_queryId
    • glu

      protected com.jogamp.opengl.glu.GLU glu
  • Constructor Details

    • AbstractDepthPeelingAlgorithm

      public AbstractDepthPeelingAlgorithm()
  • Method Details

    • setBackground

      public void setBackground(float[] color)
      Specified by:
      setBackground in interface IDepthPeelingAlgorithm
    • getBackground

      public float[] getBackground()
      Specified by:
      getBackground in interface IDepthPeelingAlgorithm
    • setOpacity

      public void setOpacity(float opacity)
      Specified by:
      setOpacity in interface IDepthPeelingAlgorithm
    • getOpacity

      public float getOpacity()
      Specified by:
      getOpacity in interface IDepthPeelingAlgorithm
    • buildShaders

      protected abstract void buildShaders(com.jogamp.opengl.GL2 gl)
    • destroyShaders

      protected abstract void destroyShaders(com.jogamp.opengl.GL2 gl)
    • reloadShaders

      protected void reloadShaders(com.jogamp.opengl.GL2 gl)
    • buildFullScreenQuad

      protected void buildFullScreenQuad(com.jogamp.opengl.GL2 gl)
    • buildFinish

      public void buildFinish(com.jogamp.opengl.GL2 gl)
    • getTasksToRender

      public IGLRenderer getTasksToRender()
      Specified by:
      getTasksToRender in interface IDepthPeelingAlgorithm
    • setTasksToRender

      public void setTasksToRender(IGLRenderer tasksToRender)
      Specified by:
      setTasksToRender in interface IDepthPeelingAlgorithm
    • tasksToRender

      protected void tasksToRender(IPainter painter)
    • resetNumPass

      protected void resetNumPass()
    • incrementGeoPasses

      protected void incrementGeoPasses()
    • dispose

      public void dispose(IPainter painter)
      Specified by:
      dispose in interface IDepthPeelingAlgorithm
    • shader

      protected URL shader(String glsl)
    • getGL

      protected com.jogamp.opengl.GL2 getGL(IPainter painter)
    • getGLU

      protected com.jogamp.opengl.glu.GLU getGLU(IPainter painter)