MeVisLabToolboxReference
|
abstract base class for shaders that use a 2D texture for LUT lookup More...
#include <View2DShader.h>
Public Member Functions | |
View2DTextureLUTShader () | |
virtual | ~View2DTextureLUTShader () |
Protected Member Functions | |
void | createLutTexture () |
creates a 2D texture from the shader's LUT | |
void | updateLutTexture () |
upload the lut to the texture (texture must be already created) | |
void | destroyLutTexture () |
frees the lut texture | |
void | createFilterKernelTexture () |
create 1d filter kernel texture (using the approach described in section 20.2 of GPU Gems 2) | |
void | destroyFilterKernelTexture () |
destroy the filter kernel | |
Protected Attributes | |
ml::GLTexture | _lutTexture |
texture that stores the LUT data | |
ml::GLTexture | _kernelTexture |
int | _lutTextureWidth |
power-of-two width of lut texture | |
int | _lutTextureHeight |
power-of-two height of lut texture | |
int | _lutHeight |
number of COMPLETE texture rows used by the LUT (an additional row may be used partly) |
abstract base class for shaders that use a 2D texture for LUT lookup
Definition at line 75 of file View2DShader.h.
View2DTextureLUTShader::View2DTextureLUTShader | ( | ) |
virtual View2DTextureLUTShader::~View2DTextureLUTShader | ( | ) | [virtual] |
void View2DTextureLUTShader::createFilterKernelTexture | ( | ) | [protected] |
create 1d filter kernel texture (using the approach described in section 20.2 of GPU Gems 2)
void View2DTextureLUTShader::createLutTexture | ( | ) | [protected] |
creates a 2D texture from the shader's LUT
void View2DTextureLUTShader::destroyFilterKernelTexture | ( | ) | [protected] |
destroy the filter kernel
void View2DTextureLUTShader::destroyLutTexture | ( | ) | [protected] |
frees the lut texture
void View2DTextureLUTShader::updateLutTexture | ( | ) | [protected] |
upload the lut to the texture (texture must be already created)
ml::GLTexture View2DTextureLUTShader::_kernelTexture [protected] |
Definition at line 98 of file View2DShader.h.
int View2DTextureLUTShader::_lutHeight [protected] |
number of COMPLETE texture rows used by the LUT (an additional row may be used partly)
Definition at line 105 of file View2DShader.h.
ml::GLTexture View2DTextureLUTShader::_lutTexture [protected] |
texture that stores the LUT data
Definition at line 97 of file View2DShader.h.
int View2DTextureLUTShader::_lutTextureHeight [protected] |
power-of-two height of lut texture
Definition at line 103 of file View2DShader.h.
int View2DTextureLUTShader::_lutTextureWidth [protected] |
power-of-two width of lut texture
Definition at line 101 of file View2DShader.h.