Skip to content

ForwardPass ​

Methods ​

extend ​

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

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

getFramebuffer ​

Get the framebuffer the depth capture renders into, or null when no depth capture has been needed yet.

getOpaqueActorCount ​

Get the number of opaque actors seen by the last query pass.

getTranslucentActorCount ​

Get the number of translucent actors seen by the last query pass.

getVolumeCount ​

Get the number of volumes seen by the last query pass.

getZBufferTexture ​

Get the color texture holding the captured z-buffer, or null/undefined when no depth capture has been needed yet.

incrementOpaqueActorCount ​

Count one opaque actor for the current query pass, and return the count before the increment.

incrementOverlayActorCount ​

Count one overlay actor for the current query pass, and return the count before the increment.

incrementTranslucentActorCount ​

Count one translucent actor for the current query pass, and return the count before the increment.

incrementVolumeCount ​

Count one volume for the current query pass, and return the count before the increment.

newInstance ​

Method used to create a new instance of vtkForwardPass.

ArgumentTypeRequiredDescription
initialValuesIForwardPassInitialValuesNofor pre-setting some of its content

requestDepth ​

Ask for a z-buffer capture on the next traversal, whether or not the scene mixes geometry and volumes.