Volume
Introduction
The WebGPU backend view node for a vtkVolume.
Methods
buildPass
Builds myself: resolve the renderer and render window, claim a prop id and update the renderable's mapper.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |
extend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUVolume characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IWebGPUVolumeInitialValues | No | (default: {}) |
getBoundingCubePoints
Write the eight world space corners of the volume's spatial extent into result, three components per point, starting at offset.
| Argument | Type | Required | Description |
|---|---|---|---|
result | Yes | the array to write into | |
offset | Yes | the index of the first component to write |
getKeyMatrices
Recompute the buffer to world/stabilized matrices if the renderable or the stabilized center moved.
| Argument | Type | Required | Description |
|---|---|---|---|
wgpuRen | vtkWebGPURenderer | Yes |
getKeyMatricesTime
The time stamp guarding the cached key matrices.
getPropID
The identifier used by hardware selection to recognize this prop.
newInstance
Method used to create a new instance of vtkWebGPUVolume.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUVolumeInitialValues | No | for pre-setting some of its content |
queryPass
Register myself with the render pass so that the volume pass can render me.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes | ||
renderPass | vtkRenderPass | Yes |