CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
cx::GPUImageLutBuffer Class Referenceabstract

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

#include <cxGPUImageBuffer.h>

Inheritance diagram for cx::GPUImageLutBuffer:

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 78 of file cxGPUImageBuffer.h.

Constructor & Destructor Documentation

virtual cx::GPUImageLutBuffer::~GPUImageLutBuffer ( )

Definition at line 81 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: