Package org.jzy3d.plot3d.primitives.vbo
Class ColormapTexture
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.vbo.ColormapTexture
-
public class ColormapTexture extends Object
-
-
Constructor Summary
Constructors Constructor Description ColormapTexture(ColorMapper mapper)ColormapTexture(ColorMapper mapper, String name, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(com.jogamp.opengl.GL gl)protected voidfeedBufferWithColormap(ColorMapper mapper)intgetID()voidsetTextureData(com.jogamp.opengl.GL gl, Buffer buffer, int[] shape)voidunbind(com.jogamp.opengl.GL gl)voidupdate(com.jogamp.opengl.GL gl)voidupdateColormap(ColorMapper mapper)protected booleanvalidateTexID(com.jogamp.opengl.GL gl, boolean throwException)
-
-
-
Field Detail
-
id
protected int id
-
texID
protected int texID
-
image
protected ByteBuffer image
-
shape
protected int[] shape
-
isUpdate
protected boolean isUpdate
-
name
protected String name
-
nColors
protected int nColors
-
-
Constructor Detail
-
ColormapTexture
public ColormapTexture(ColorMapper mapper, String name, int id)
-
ColormapTexture
public ColormapTexture(ColorMapper mapper)
-
-
Method Detail
-
updateColormap
public void updateColormap(ColorMapper mapper)
-
feedBufferWithColormap
protected void feedBufferWithColormap(ColorMapper mapper)
-
update
public void update(com.jogamp.opengl.GL gl)
-
bind
public void bind(com.jogamp.opengl.GL gl) throws com.jogamp.opengl.GLException- Throws:
com.jogamp.opengl.GLException
-
unbind
public void unbind(com.jogamp.opengl.GL gl)
-
setTextureData
public void setTextureData(com.jogamp.opengl.GL gl, Buffer buffer, int[] shape)
-
getID
public int getID()
-
validateTexID
protected boolean validateTexID(com.jogamp.opengl.GL gl, boolean throwException)
-
-