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_backgroundColorprotected float[]g_blackprotected int[]g_drawBuffersprotected intg_numGeoPassesprotected intg_numPassesprotected float[]g_opacityprotected intg_quadDisplayListprotected int[]g_queryIdprotected booleang_useOQprotected float[]g_whiteprotected com.jogamp.opengl.glu.GLUglustatic floatMAX_DEPTH
-
Constructor Summary
Constructors Constructor Description AbstractDepthPeelingAlgorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbuildFinish(com.jogamp.opengl.GL2 gl)protected voidbuildFullScreenQuad(com.jogamp.opengl.GL2 gl)protected abstract voidbuildShaders(com.jogamp.opengl.GL2 gl)protected abstract voiddestroyShaders(com.jogamp.opengl.GL2 gl)voiddispose(IPainter painter)float[]getBackground()protected com.jogamp.opengl.GL2getGL(IPainter painter)protected com.jogamp.opengl.glu.GLUgetGLU(IPainter painter)floatgetOpacity()IGLRenderergetTasksToRender()protected voidincrementGeoPasses()protected voidreloadShaders(com.jogamp.opengl.GL2 gl)protected voidresetNumPass()voidsetBackground(float[] color)voidsetOpacity(float opacity)voidsetTasksToRender(IGLRenderer tasksToRender)protected URLshader(String glsl)protected voidtasksToRender(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:
setBackgroundin interfaceIDepthPeelingAlgorithm
-
getBackground
public float[] getBackground()
- Specified by:
getBackgroundin interfaceIDepthPeelingAlgorithm
-
setOpacity
public void setOpacity(float opacity)
- Specified by:
setOpacityin interfaceIDepthPeelingAlgorithm
-
getOpacity
public float getOpacity()
- Specified by:
getOpacityin 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:
getTasksToRenderin interfaceIDepthPeelingAlgorithm
-
setTasksToRender
public void setTasksToRender(IGLRenderer tasksToRender)
- Specified by:
setTasksToRenderin interfaceIDepthPeelingAlgorithm
-
tasksToRender
protected void tasksToRender(IPainter painter)
-
resetNumPass
protected void resetNumPass()
-
incrementGeoPasses
protected void incrementGeoPasses()
-
dispose
public void dispose(IPainter painter)
- Specified by:
disposein interfaceIDepthPeelingAlgorithm
-
getGL
protected com.jogamp.opengl.GL2 getGL(IPainter painter)
-
getGLU
protected com.jogamp.opengl.glu.GLU getGLU(IPainter painter)
-
-