Skip to content

ImageCPRMapper ​

Methods ​

buildPass ​

Resolve the ancestors this mapper renders with and bind it to its renderer.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

extend ​

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

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

getCoincidentParameters ​

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

newInstance ​

Method used to create a new instance of vtkWebGPUImageCPRMapper.

ArgumentTypeRequiredDescription
initialValuesIWebGPUImageCPRMapperInitialValuesNofor pre-setting some of its content

opaquePass ​

Render the reformat during the opaque pass.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

opaqueZBufferPass ​

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

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

render ​

Render the reformat.

replaceShaderClip ​

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

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes

replaceShaderCoincident ​

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

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes

replaceShaderImageCPR ​

Shader replacement, registered under replaceShaderImageCPR, emitting the quad positions along the centerline and the volume sampling that straightens the image.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes

replaceShaderRenderEncoder ​

Shader replacement, registered under replaceShaderRenderEncoder, writing the prop identifier when the encoder is the hardware selector's.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes

translucentPass ​

Render the reformat during the translucent pass.

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.

updateColorTexture ​

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

updateGeometry ​

Rebuild the quad strip following the centerline, one quad per centerline segment, with its positions, orientations and distances.

updateOpacityTexture ​

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

updateUBO ​

Recompute and send the mapper uniform buffer when the renderable, the actor, the property, the image or the stabilized center changed.

updateVolumeTexture ​

Bind a texture view of the input image as the volume this mapper samples.

zBufferPass ​

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

ArgumentTypeRequiredDescription
prepassBooleanYesWhether the traversal is on its way down.