VTK  9.7.20261123
vtkWebGPUVolumeBrickSource Struct Referenceabstract

#include <vtkWebGPUVolumeRayCastContribution.h>

Detailed Description

Where the coordinator gets the voxels of a brick from.

The mapper never uploads a volume whole: it says how the volume is cut up and answers for one brick at a time. An implementation may pull the brick through the VTK pipeline when asked, which is what lets a volume that does not fit in memory, or arrives in pieces, work unchanged.

Definition at line 46 of file vtkWebGPUVolumeRayCastContribution.h.

Inheritance diagram for vtkWebGPUVolumeBrickSource:
[legend]

Public Member Functions

virtual ~vtkWebGPUVolumeBrickSource ()=default
virtual bool FetchBrick (const int brick[3], int slotSize, void *voxels)=0
 Copy the brick at brick, with a one voxel apron from its neighbours, into voxels, which holds slotSize cubed values in the contribution's pool kind, x fastest.
virtual bool FetchMask (const int brick[3], int slotSize, unsigned char *voxels)
 Fill voxels with one byte per voxel of the same brick, non zero where the voxel is not to be drawn.

Constructor & Destructor Documentation

◆ ~vtkWebGPUVolumeBrickSource()

virtual vtkWebGPUVolumeBrickSource::~vtkWebGPUVolumeBrickSource ( )
virtualdefault

Member Function Documentation

◆ FetchBrick()

virtual bool vtkWebGPUVolumeBrickSource::FetchBrick ( const int brick[3],
int slotSize,
void * voxels )
pure virtual

Copy the brick at brick, with a one voxel apron from its neighbours, into voxels, which holds slotSize cubed values in the contribution's pool kind, x fastest.

Voxels outside the volume repeat the nearest one. Returns false when the brick is not available yet, leaving it out of this frame.

Implemented in vtkWebGPUVolumeRayCastMapperInput.

◆ FetchMask()

virtual bool vtkWebGPUVolumeBrickSource::FetchMask ( const int brick[3],
int slotSize,
unsigned char * voxels )
inlinevirtual

Fill voxels with one byte per voxel of the same brick, non zero where the voxel is not to be drawn.

Returns false when the volume has nothing hidden, which is the usual case.

Reimplemented in vtkWebGPUVolumeRayCastMapperInput.

Definition at line 62 of file vtkWebGPUVolumeRayCastContribution.h.


The documentation for this struct was generated from the following file: