public class SampledIntensityScaleShader extends Shader implements AxisListener1D
Constructor and Description |
---|
SampledIntensityScaleShader(Axis1D colorAxis,
int DataTexUnit,
int HueTexUnit) |
Modifier and Type | Method and Description |
---|---|
void |
axisUpdated(Axis1D axis) |
void |
dispose(javax.media.opengl.GLContext context) |
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 |
setDataTexUnit(int unit) |
void |
setHueTexUnit(int unit) |
public SampledIntensityScaleShader(Axis1D colorAxis, int DataTexUnit, int HueTexUnit) throws IOException
colorAxis
- color axis producing eventstargetTexUnit
- 2D texture unit which is the target of color-mappingcolorTexUnit
- 1D texture unit containing color-mapIOException
- if the shader source file cannot be readpublic void setAlpha(float alpha)
public boolean preLink(javax.media.opengl.GL gl, int glProgramHandle)
Shader
public void preDisplay(javax.media.opengl.GL gl)
Shader
preDisplay
in class Shader
public void postDisplay(javax.media.opengl.GL gl)
Shader
postDisplay
in class Shader
public void axisUpdated(Axis1D axis)
axisUpdated
in interface AxisListener1D
public void setHueTexUnit(int unit)
public void setDataTexUnit(int unit)
Copyright © 2016 Metron, Inc.. All rights reserved.