Skip to content

Glyph3DMapper ​

Introduction ​

The WebGPU view node of vtkGlyph3DMapper. It draws the glyph source once per glyph as instances, reading the per instance transforms from a storage buffer.

Methods ​

buildPass ​

Update the renderable, refill the glyph storage buffer and rebuild the cell array mappers of the glyph source.

ArgumentTypeRequiredDescription
prepassYes

caExtend ​

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

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

createCellArrayMapper ​

Create a glyph cell array mapper sharing the storage buffer and the renderable of this mapper.

extend ​

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

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

newInstance ​

Method used to create a new instance of vtkWebGPUGlyph3DMapper.

ArgumentTypeRequiredDescription
initialValuesIWebGPUGlyph3DMapperInitialValuesNofor pre-setting some of its content

setGlyphInstances ​

Set the number of glyph instances to draw.

ArgumentTypeRequiredDescription
valNumberYes

updateSSBO ​

Fill the storage buffer with the per instance matrix, normal matrix and color of every glyph, and send it when the renderable rebuilt its arrays.