Skip to content

ImageMapper ​

Methods ​

buildPass ​

Resolve the ancestors this mapper renders with and, when the renderable slices at the focal point, move its slice to the active camera.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

computeImageState ​

Compute how the image scalars map onto the texture channels from the property and the image texture currently bound.

ensureTextureSampler ​

Give the texture view a sampler matching the given options, unless the sampler it already has matches them.

ArgumentTypeRequiredDescription
textureViewvtkWebGPUTextureViewYes
optionsGPUSamplerDescriptorYes

extend ​

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

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

getCoincidentParameters ​

Get the polygon offset the renderable asks for, or a zero offset when it does not resolve coincident topology with a polygon offset.

getImageState ​

Get the image state computed by the last updateBuffers, recomputing it when the buffers have not been updated yet.

newInstance ​

Method used to create a new instance of vtkWebGPUImageMapper.

ArgumentTypeRequiredDescription
initialValuesIWebGPUImageMapperInitialValuesNofor pre-setting some of its content

opaquePass ​

Render the slice during the opaque pass.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

opaqueZBufferPass ​

Capture the slice depth during the opaque z-buffer pass.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

render ​

Render the slice.

replaceShaderClip ​

Shader replacement, registered under replaceShaderClip, emitting the clipping plane test in stabilized coordinates.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes
vertexInputvtkWebGPUVertexInputYes

replaceShaderCoincidentOffset ​

Shader replacement, registered under replaceShaderCoincidentOffset, emitting the depth offset the renderable's coincident topology resolution asks for.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes
vertexInputvtkWebGPUVertexInputYes

replaceShaderImage ​

Shader replacement, registered under replaceShaderImage, emitting the texture declarations, the transfer function lookups and, for label maps, the label outline code.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes
vertexInputvtkWebGPUVertexInputYes

replaceShaderSelect ​

Shader replacement, registered under replaceShaderSelect, emitting the composite and attribute identifiers the hardware selector reads.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes
vertexInputvtkWebGPUVertexInputYes

translucentPass ​

Render the slice during the translucent pass.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

updateLUTImage ​

Build or reuse the texture holding the sampled color transfer functions.

updateLabelOutlineOpacityTexture ​

Build or reuse the texture holding the per-label outline opacities.

updateLabelOutlineThicknessTexture ​

Build or reuse the texture holding the per-label outline thicknesses.

updateOpacityLUTImage ​

Build or reuse the texture holding the sampled piecewise opacity functions.

updateUBO ​

Recompute and send the mapper uniform buffer when the renderable, the property or the clipping planes changed.

useImageMipmaps ​

Whether the current image can use mipmaps for minification.

zBufferPass ​

Render the slice depth only, so that a later pass can mix geometry with volumes.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.