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
FieldsModifier and TypeFieldDescriptionprotected float[]protected float[]protected int[]protected intprotected intprotected float[]protected intprotected int[]protected booleanprotected float[]protected com.jogamp.opengl.glu.GLUstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildFinish(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) voidfloat[]protected com.jogamp.opengl.GL2protected com.jogamp.opengl.glu.GLUfloatprotected voidprotected voidreloadShaders(com.jogamp.opengl.GL2 gl) protected voidvoidsetBackground(float[] color) voidsetOpacity(float opacity) voidsetTasksToRender(IGLRenderer tasksToRender) protected URLprotected voidtasksToRender(IPainter painter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
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
- Specified by:
getTasksToRenderin interfaceIDepthPeelingAlgorithm
-
setTasksToRender
- Specified by:
setTasksToRenderin interfaceIDepthPeelingAlgorithm
-
tasksToRender
-
resetNumPass
protected void resetNumPass() -
incrementGeoPasses
protected void incrementGeoPasses() -
dispose
- Specified by:
disposein interfaceIDepthPeelingAlgorithm
-
shader
-
getGL
-
getGLU
-