com.metsci.glimpse.axis.tagged.shader
Class TaggedColorScaleShader
java.lang.Object
com.metsci.glimpse.gl.shader.Shader
com.metsci.glimpse.axis.tagged.shader.TaggedColorScaleShader
- All Implemented Interfaces:
- AxisListener1D
public class TaggedColorScaleShader
- extends Shader
- implements AxisListener1D
Method Summary |
void |
axisUpdated(Axis1D axis)
|
void |
postDisplay(javax.media.opengl.GL gl)
Called right after rendering is complete, just after reverting to the
fixed pipeline functionality. |
void |
preDisplay(javax.media.opengl.GL gl)
Called right after this shader is made current as part of the pipeline. |
boolean |
preLink(javax.media.opengl.GL gl,
int glProgramHandle)
Called right after the program has been compiled, but before it has been
linked. |
void |
setAlpha(float alpha)
|
void |
setDiscardAbove(boolean discard)
|
void |
setDiscardBelow(boolean discard)
|
void |
setDiscardNaN(boolean discard)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TaggedColorScaleShader
public TaggedColorScaleShader(TaggedAxis1D axis,
int dataTexUnit,
int colorTexUnit,
int vertexTexUnit,
int textureTexUnit)
throws java.io.IOException
- Throws:
java.io.IOException
axisUpdated
public void axisUpdated(Axis1D axis)
- Specified by:
axisUpdated
in interface AxisListener1D
setAlpha
public void setAlpha(float alpha)
setDiscardNaN
public void setDiscardNaN(boolean discard)
setDiscardAbove
public void setDiscardAbove(boolean discard)
setDiscardBelow
public void setDiscardBelow(boolean discard)
preLink
public boolean preLink(javax.media.opengl.GL gl,
int glProgramHandle)
- Description copied from class:
Shader
- Called right after the program has been compiled, but before it has been
linked.
- Specified by:
preLink
in class Shader
- Returns:
- false if any problems specific to this shader are found, true
otherwise
preDisplay
public void preDisplay(javax.media.opengl.GL gl)
- Description copied from class:
Shader
- Called right after this shader is made current as part of the pipeline.
Use this method to update uniform variables for this shader.
- Specified by:
preDisplay
in class Shader
postDisplay
public void postDisplay(javax.media.opengl.GL gl)
- Description copied from class:
Shader
- Called right after rendering is complete, just after reverting to the
fixed pipeline functionality. Use this method for any necessary cleanup
specific to this shader.
- Specified by:
postDisplay
in class Shader
Copyright © 2012 Metron, Inc.. All Rights Reserved.