MeVisLab Toolbox Reference
|
base class for hardware shaders that can be used on a View2DTexture More...
#include <View2DShader.h>
Public Member Functions | |
View2DShader () | |
virtual | ~View2DShader () |
virtual const char * | name ()=0 |
returns the name of the shader | |
virtual void | bind (View2DTexture *texture, int tw, int th)=0 |
binds/activates the shader, tw and th give the "poweroftwo" size of current subtexture that is rendered | |
virtual void | unbind ()=0 |
deactivates the shader | |
virtual void | getRequiredTextureLayout (View2DTexture *texture, GLuint &format, GLuint &internalFormat, GLuint &transferDataType) |
returns the required texture layout that a GL texture must use, as GL_format enums and datatypes | |
virtual void | setLut (View2DLut *newLut) |
sets the lut currently used | |
View2DLut * | getLut () |
gets the lut | |
void | invalidateLut () |
invalidate the lut | |
virtual void | bindLutTexture () |
bind the lut texture to the current texture unit | |
virtual void | bindFilterKernelTexture () |
bind the filter kernel texture | |
virtual float | getLutHeightScaleFactor () |
virtual SbVec2s | getLutTextureSize () |
Static Public Member Functions | |
static void | applyTextureFilter (View2DTextureFilter filter) |
set the correct texture filtering on the currently bound texture | |
Protected Attributes | |
View2DLut * | _lut |
pointer to the LUT data | |
ml::LUTDataId | _lastLutChangeID |
id of last lut | |
int | _lastLutSize |
last size of lut | |
base class for hardware shaders that can be used on a View2DTexture
Definition at line 33 of file View2DShader.h.
View2DShader::View2DShader | ( | ) |
|
virtual |
|
static |
set the correct texture filtering on the currently bound texture
|
pure virtual |
binds/activates the shader, tw and th give the "poweroftwo" size of current subtexture that is rendered
Implemented in View2DShaderGLSL.
bind the filter kernel texture
Reimplemented in View2DTextureLUTShader.
Definition at line 64 of file View2DShader.h.
bind the lut texture to the current texture unit
Reimplemented in View2DTextureLUTShader.
Definition at line 61 of file View2DShader.h.
|
inline |
gets the lut
Definition at line 55 of file View2DShader.h.
Reimplemented in View2DTextureLUTShader.
Definition at line 69 of file View2DShader.h.
Reimplemented in View2DTextureLUTShader.
Definition at line 71 of file View2DShader.h.
References mlrange_cast().
|
virtual |
returns the required texture layout that a GL texture must use, as GL_format enums and datatypes
|
inline |
invalidate the lut
Definition at line 58 of file View2DShader.h.
returns the name of the shader
Implemented in View2DShaderGLSL.
sets the lut currently used
Definition at line 52 of file View2DShader.h.
References mlrange_cast().
deactivates the shader
Implemented in View2DShaderGLSL.
|
protected |
id of last lut
Definition at line 79 of file View2DShader.h.
|
protected |
last size of lut
Definition at line 82 of file View2DShader.h.
|
protected |
pointer to the LUT data
Definition at line 76 of file View2DShader.h.