Skip to content

Actor ​

Introduction ​

The WebGPU backend view node for a vtkActor.

Methods ​

buildPass ​

Builds myself: resolve the renderer and render window, claim a prop id and adopt the renderable's mapper as a child.

ArgumentTypeRequiredDescription
prepassYes

extend ​

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

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

getBufferShift ​

The translation applied to the vertex buffers of this actor to keep them near the origin. Recomputes the key matrices if needed.

ArgumentTypeRequiredDescription
wgpuRenvtkWebGPURendererYes

getKeyMatrices ​

Recompute the buffer to world/stabilized and normal 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 vtkWebGPUActor.

ArgumentTypeRequiredDescription
initialValuesIWebGPUActorInitialValuesNofor pre-setting some of its content

queryPass ​

ArgumentTypeRequiredDescription
prepassYes
renderPassvtkRenderPassYes

traverseOpaquePass ​

ArgumentTypeRequiredDescription
renderPassvtkRenderPassYes

traverseOpaqueZBufferPass ​

Render only opaque actors.

ArgumentTypeRequiredDescription
renderPassvtkRenderPassYes

traverseTranslucentPass ​

ArgumentTypeRequiredDescription
renderPassvtkRenderPassYes

traverseZBufferPass ​

Render both opaque and translucent actors.

ArgumentTypeRequiredDescription
renderPassvtkRenderPassYes