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 Summary
Fields Modifier and Type Field Description protected float[]
g_backgroundColor
protected float[]
g_black
protected int[]
g_drawBuffers
protected int
g_numGeoPasses
protected int
g_numPasses
protected float[]
g_opacity
protected int
g_quadDisplayList
protected int[]
g_queryId
protected boolean
g_useOQ
protected float[]
g_white
protected com.jogamp.opengl.glu.GLU
glu
static float
MAX_DEPTH
-
Constructor Summary
Constructors Constructor Description AbstractDepthPeelingAlgorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
buildFinish(com.jogamp.opengl.GL2 gl)
protected void
buildFullScreenQuad(com.jogamp.opengl.GL2 gl)
protected abstract void
buildShaders(com.jogamp.opengl.GL2 gl)
protected abstract void
destroyShaders(com.jogamp.opengl.GL2 gl)
void
dispose(IPainter painter)
float[]
getBackground()
protected com.jogamp.opengl.GL2
getGL(IPainter painter)
protected com.jogamp.opengl.glu.GLU
getGLU(IPainter painter)
float
getOpacity()
IGLRenderer
getTasksToRender()
protected void
incrementGeoPasses()
protected void
reloadShaders(com.jogamp.opengl.GL2 gl)
protected void
resetNumPass()
void
setBackground(float[] color)
void
setOpacity(float opacity)
void
setTasksToRender(IGLRenderer tasksToRender)
protected URL
shader(String glsl)
protected void
tasksToRender(IPainter painter)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jzy3d.plot3d.rendering.ddp.algorithms.IDepthPeelingAlgorithm
display, init, reshape
-
-
-
-
Field Detail
-
MAX_DEPTH
public static final float MAX_DEPTH
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
setBackground
public void setBackground(float[] color)
- Specified by:
setBackground
in interfaceIDepthPeelingAlgorithm
-
getBackground
public float[] getBackground()
- Specified by:
getBackground
in interfaceIDepthPeelingAlgorithm
-
setOpacity
public void setOpacity(float opacity)
- Specified by:
setOpacity
in interfaceIDepthPeelingAlgorithm
-
getOpacity
public float getOpacity()
- Specified by:
getOpacity
in interfaceIDepthPeelingAlgorithm
-
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 interfaceIDepthPeelingAlgorithm
-
setTasksToRender
public void setTasksToRender(IGLRenderer tasksToRender)
- Specified by:
setTasksToRender
in interfaceIDepthPeelingAlgorithm
-
tasksToRender
protected void tasksToRender(IPainter painter)
-
resetNumPass
protected void resetNumPass()
-
incrementGeoPasses
protected void incrementGeoPasses()
-
dispose
public void dispose(IPainter painter)
- Specified by:
dispose
in interfaceIDepthPeelingAlgorithm
-
getGL
protected com.jogamp.opengl.GL2 getGL(IPainter painter)
-
getGLU
protected com.jogamp.opengl.glu.GLU getGLU(IPainter painter)
-
-