Fraxinus  16.5.0-fx-rc7
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::GPUImageLutBuffer Class Referenceabstract

Helper class for sharing GPU memory over several Views (GL contexts). More...

#include <cxGPUImageBuffer.h>

Inheritance diagram for cx::GPUImageLutBuffer:
cx::GPUImageLutBufferImpl

Public Member Functions

virtual ~GPUImageLutBuffer ()
 
virtual void allocate ()=0
 
virtual void bind (int textureUnitIndex)=0
 
virtual int getLutSize () const =0
 

Detailed Description

Helper class for sharing GPU memory over several Views (GL contexts).

This one stores lut in the form of a vtkUnsignedCharArrayPtr

Definition at line 99 of file cxGPUImageBuffer.h.

Constructor & Destructor Documentation

virtual cx::GPUImageLutBuffer::~GPUImageLutBuffer ( )
inlinevirtual

Definition at line 102 of file cxGPUImageBuffer.h.

Member Function Documentation

virtual void cx::GPUImageLutBuffer::allocate ( )
pure virtual

Allocate resources for the lookup table and the volume on the GPU. Prerequisite: SetImage and SetcolorTable has been called.

Call this from inside a PrepareForRendering() methods in vtk.

Implemented in cx::GPUImageLutBufferImpl.

virtual void cx::GPUImageLutBuffer::bind ( int  textureUnitIndex)
pure virtual

If data is changed, send data to GPU.Activate and bind the volume and lut buffers inside the texture units GL_TEXTURE<2X> and GL_TEXTURE<2X+1>. Use during RenderInternal()

Implemented in cx::GPUImageLutBufferImpl.

virtual int cx::GPUImageLutBuffer::getLutSize ( ) const
pure virtual

Size of lut. Used by fragment shader.

Implemented in cx::GPUImageLutBufferImpl.


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