Workspace 6.21.5
Classes | Public Types | Public Member Functions | List of all members
WSGLSparseOctree Class Reference

#include <Rendering/OpenGL/Shaders/wsglsparseoctree.h>

Inherits QOpenGLFunctions.

Classes

class  Cell
 
class  Tuple
 

Public Types

typedef DataAnalysis::Array3dData< CellIndirectionPool
 

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)
 

Detailed Description

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.

Member Typedef Documentation

◆ IndirectionPool

Constructor & Destructor Documentation

◆ WSGLSparseOctree()

Member Function Documentation

◆ getIndirectionPoolAsTexture()

TextureImage getIndirectionPoolAsTexture ( ) const

◆ getNumCellBlocks()

unsigned getNumCellBlocks ( ) const

◆ isEmpty()

bool isEmpty ( ) const
Returns
True if the octree is empty (contains 0 cell blocks) or not.

◆ render()

void render ( const Mesh::TransformMatrix world,
WSGLShaderProgram octShader,
WSGLRenderer renderer,
WSGLRenderItem renderItem,
int  colorIndex,
int  transformIndex 
)

◆ update()

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.