Skip to content

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.

ArgumentTypeRequiredDescription
prepassYes

extend ​

Method used to decorate a given object (publicAPI+model) with vtkWebGPUVolume characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIWebGPUVolumeInitialValuesNo(default: {})

getBoundingCubePoints ​

Write the eight world space corners of the volume's spatial extent into result, three components per point, starting at offset.

ArgumentTypeRequiredDescription
resultYesthe array to write into
offsetYesthe index of the first component to write

getKeyMatrices ​

Recompute the buffer to world/stabilized matrices if the renderable or the stabilized center moved.

ArgumentTypeRequiredDescription
wgpuRenvtkWebGPURendererYes

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.

ArgumentTypeRequiredDescription
initialValuesIWebGPUVolumeInitialValuesNofor pre-setting some of its content

queryPass ​

Register myself with the render pass so that the volume pass can render me.

ArgumentTypeRequiredDescription
prepassYes
renderPassvtkRenderPassYes