MeVisLabToolboxReference
View2DTextureLUTShader Class Reference

abstract base class for shaders that use a 2D texture for LUT lookup More...

#include <View2DShader.h>

Inheritance diagram for View2DTextureLUTShader:
View2DShader View2DShaderGLSL

List of all members.

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)

Detailed Description

abstract base class for shaders that use a 2D texture for LUT lookup

Definition at line 75 of file View2DShader.h.


Constructor & Destructor Documentation

View2DTextureLUTShader::View2DTextureLUTShader ( )
virtual View2DTextureLUTShader::~View2DTextureLUTShader ( ) [virtual]

Member Function Documentation

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)


Member Data Documentation

ml::GLTexture View2DTextureLUTShader::_kernelTexture [protected]

Definition at line 98 of file View2DShader.h.

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.

power-of-two height of lut texture

Definition at line 103 of file View2DShader.h.

power-of-two width of lut texture

Definition at line 101 of file View2DShader.h.


The documentation for this class was generated from the following file: