Fraxinus
16.5.0-fx-rc8
An IGT application
|
Helper class for sharing GPU memory over several Views (GL contexts). More...
#include <cxGPUImageBuffer.h>
Public Member Functions | |
virtual | ~GPUImageLutBuffer () |
virtual void | allocate ()=0 |
virtual void | bind (int textureUnitIndex)=0 |
virtual int | getLutSize () const =0 |
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.
|
inlinevirtual |
Definition at line 102 of file cxGPUImageBuffer.h.
|
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.
|
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.
|
pure virtual |
Size of lut. Used by fragment shader.
Implemented in cx::GPUImageLutBufferImpl.