|
VTK
9.7.20261123
|
#include <vtkWebGPUVolumeRayCastContribution.h>
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.
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. | |
|
virtualdefault |
|
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.
|
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.