Workspace 6.21.5
|
#include <Rendering/OpenGL/Shaders/wsglsparseoctree.h>
Inherits QOpenGLFunctions.
Classes | |
class | Cell |
class | Tuple |
Public Types | |
typedef DataAnalysis::Array3dData< Cell > | IndirectionPool |
Public Member Functions | |
WSGLSparseOctree () | |
TextureImage | getIndirectionPoolAsTexture () const |
unsigned | getNumCellBlocks () const |
bool | isEmpty () const |
void | render (const Mesh::TransformMatrix &world, WSGLShaderProgram &octShader, WSGLRenderer &renderer, WSGLRenderItem &renderItem, int colorIndex, int transformIndex) |
bool | update (const DataAnalysis::Array3dTyped< QRgb > &data, const Tuple &brickSize) |
Sparse octree data structure for storing a broken up version of a dataset. Improves volume rendering performance and the size of datasets that can be renderered.
typedef DataAnalysis::Array3dData<Cell> IndirectionPool |
WSGLSparseOctree | ( | ) |
TextureImage getIndirectionPoolAsTexture | ( | ) | const |
unsigned getNumCellBlocks | ( | ) | const |
bool isEmpty | ( | ) | const |
void render | ( | const Mesh::TransformMatrix & | world, |
WSGLShaderProgram & | octShader, | ||
WSGLRenderer & | renderer, | ||
WSGLRenderItem & | renderItem, | ||
int | colorIndex, | ||
int | transformIndex | ||
) |
bool update | ( | const DataAnalysis::Array3dTyped< QRgb > & | data, |
const Tuple & | brickSize | ||
) |
TODO: Update this to allow it to deal with rectangular, non-power-of-two datasets.