Class ColormapTexture


  • public class ColormapTexture
    extends Object
    • Field Detail

      • id

        protected int id
      • texID

        protected int texID
      • shape

        protected int[] shape
      • isUpdate

        protected boolean isUpdate
      • 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)