Fraxinus
16.5.0-fx-rc1
An IGT application
|
Helper class for sharing GPU memory over several Views (GL contexts). More...
#include <cxGPUImageBuffer.h>
Public Member Functions | |
virtual | ~GPUImageDataBuffer () |
virtual void | allocate ()=0 |
virtual void | bind (int textureUnitIndex)=0 |
virtual int | getMemorySize ()=0 |
virtual unsigned int | getTextureUid () const =0 |
Helper class for sharing GPU memory over several Views (GL contexts).
This one stores 3D volume texture in the form of a vtkImageDataPtr
Definition at line 60 of file cxGPUImageBuffer.h.
|
inlinevirtual |
Definition at line 63 of file cxGPUImageBuffer.h.
|
pure virtual |
Allocate resources for the volume on the GPU.
Call this from inside a PrepareForRendering() method in vtk.
Implemented in cx::GPUImageDataBufferImpl.
|
pure virtual |
Assuming imageData is changed, send vtkImageData 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::GPUImageDataBufferImpl.
|
pure virtual |
Implemented in cx::GPUImageDataBufferImpl.
|
pure virtual |
Return the texture uid for this object, as generated by glGenTextures().
Prerequisite: allocate() has been called.
Implemented in cx::GPUImageDataBufferImpl.