CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
Public Member Functions | |
GPUImageDataBufferImpl () | |
virtual | ~GPUImageDataBufferImpl () |
virtual int | getMemorySize () |
virtual void | SetImage (vtkImageDataPtr texture) |
virtual unsigned int | getTextureUid () const |
virtual void | allocate (int textureUnitIndex) |
virtual void | updateTexture () |
virtual void | bind (int textureUnitIndex) |
virtual void | release () |
int | getGLTextureForVolume (int textureUnitIndex) |
Public Member Functions inherited from cx::GPUImageDataBuffer | |
virtual | ~GPUImageDataBuffer () |
Public Attributes | |
GLuint | textureId |
vtkImageDataPtr | mTexture |
bool | mAllocated |
uint64_t | mMTime |
int | mMemorySize |
Helper class for sharing volume and lut buffers over several renderings
Definition at line 48 of file cxGPUImageBuffer.cpp.
|
inline |
Definition at line 57 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Definition at line 64 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
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.
Implements cx::GPUImageDataBuffer.
Definition at line 92 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Activate and bind the volume and lut buffers inside the texture units GL_TEXTURE<2X> and GL_TEXTURE<2X+1>. Use during RenderInternal()
Implements cx::GPUImageDataBuffer.
Definition at line 197 of file cxGPUImageBuffer.cpp.
|
inline |
Definition at line 215 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Implements cx::GPUImageDataBuffer.
Definition at line 69 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Return the texture uid for this object, as generated by glGenTextures().
Prerequisite: allocate() has been called.
Implements cx::GPUImageDataBuffer.
Definition at line 82 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Definition at line 210 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Definition at line 74 of file cxGPUImageBuffer.cpp.
|
inlinevirtual |
Definition at line 121 of file cxGPUImageBuffer.cpp.
bool cx::GPUImageDataBufferImpl::mAllocated |
Definition at line 53 of file cxGPUImageBuffer.cpp.
int cx::GPUImageDataBufferImpl::mMemorySize |
Definition at line 55 of file cxGPUImageBuffer.cpp.
uint64_t cx::GPUImageDataBufferImpl::mMTime |
Definition at line 54 of file cxGPUImageBuffer.cpp.
vtkImageDataPtr cx::GPUImageDataBufferImpl::mTexture |
Definition at line 52 of file cxGPUImageBuffer.cpp.
GLuint cx::GPUImageDataBufferImpl::textureId |
Definition at line 51 of file cxGPUImageBuffer.cpp.