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
Modifier and TypeFieldDescriptionprotected float[]
protected float[]
protected int[]
protected int
protected int
protected float[]
protected int
protected int[]
protected boolean
protected float[]
protected com.jogamp.opengl.glu.GLU
static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
float[]
protected com.jogamp.opengl.GL2
protected com.jogamp.opengl.glu.GLU
float
protected void
protected void
reloadShaders
(com.jogamp.opengl.GL2 gl) protected void
void
setBackground
(float[] color) void
setOpacity
(float opacity) void
setTasksToRender
(IGLRenderer tasksToRender) protected URL
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 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 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
- Specified by:
getTasksToRender
in interfaceIDepthPeelingAlgorithm
-
setTasksToRender
- Specified by:
setTasksToRender
in interfaceIDepthPeelingAlgorithm
-
tasksToRender
-
resetNumPass
protected void resetNumPass() -
incrementGeoPasses
protected void incrementGeoPasses() -
dispose
- Specified by:
dispose
in interfaceIDepthPeelingAlgorithm
-
shader
-
getGL
-
getGLU
-