ImageCPRMapper
Methods
buildPass
Resolve the ancestors this mapper renders with and bind it to its renderer.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Boolean | Yes | Whether the traversal is on its way down. |
extend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUImageCPRMapper characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IWebGPUImageCPRMapperInitialValues | No | (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.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUImageCPRMapperInitialValues | No | for pre-setting some of its content |
opaquePass
Render the reformat during the opaque pass.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Boolean | Yes | Whether the traversal is on its way down. |
opaqueZBufferPass
Capture the reformat depth during the opaque z-buffer pass.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Boolean | Yes | Whether 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.
| Argument | Type | Required | Description |
|---|---|---|---|
hash | String | Yes | the pipeline hash |
pipeline | vtkWebGPUPipeline | Yes |
replaceShaderCoincident
Shader replacement, registered under replaceShaderCoincident, emitting the depth offset the renderable's coincident topology resolution asks for.
| Argument | Type | Required | Description |
|---|---|---|---|
hash | String | Yes | the pipeline hash |
pipeline | vtkWebGPUPipeline | Yes |
replaceShaderImageCPR
Shader replacement, registered under replaceShaderImageCPR, emitting the quad positions along the centerline and the volume sampling that straightens the image.
| Argument | Type | Required | Description |
|---|---|---|---|
hash | String | Yes | the pipeline hash |
pipeline | vtkWebGPUPipeline | Yes |
replaceShaderRenderEncoder
Shader replacement, registered under replaceShaderRenderEncoder, writing the prop identifier when the encoder is the hardware selector's.
| Argument | Type | Required | Description |
|---|---|---|---|
hash | String | Yes | the pipeline hash |
pipeline | vtkWebGPUPipeline | Yes |
translucentPass
Render the reformat during the translucent pass.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Boolean | Yes | Whether 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.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Boolean | Yes | Whether the traversal is on its way down. |