VTK  9.7.20261123
vtkWebGPUVolumeRayCastCoordinator::vtkInternals Class Reference

#include <vtkWebGPUVolumeRayCastCoordinatorInternals.h>

Detailed Description

Definition at line 33 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

Collaboration diagram for vtkWebGPUVolumeRayCastCoordinator::vtkInternals:
[legend]

Public Member Functions

 vtkInternals (vtkWebGPUVolumeRayCastCoordinator *self)
bool Offer (const vtkWebGPUVolumeRayCastContribution &contribution)
 Take one input.
void Render (vtkWebGPURenderWindow *window, vtkRenderer *renderer)
 March every gathered input and composite the result over the frame, once.
void ReleaseGraphicsResources ()
void Forget (vtkWebGPUVolumeRayCastMapper *mapper)
 Forget what a mapper contributed, because it is letting go of its resources.
std::size_t GetNumberOfContributions () const
bool WasComplete () const
 Whether every brick the last frame wanted was there.
void EnsureImageTargets (vtkWebGPURenderWindow *window)
bool ReadImage (vtkWebGPURenderWindow *window, bool depth, int scalarType, vtkImageData *output)
 Copy one of the two image targets back into output.

Public Attributes

bool Rendered = true
 Whether the pass for this frame has already been recorded.
bool RenderToImage = false
 Render to image draws the volume alone into textures of this object's own, with the depth of the first sample that was visible where the selection ids otherwise go.
vtkWebGPURenderWindow * LastWindow = nullptr
 The window the last pass was drawn with, so the image can be read back afterwards.
vtkWebGPU::Texture ImageColor
vtkWebGPU::TextureView ImageColorView
vtkWebGPU::Texture ImageDepth
vtkWebGPU::TextureView ImageDepthView
int ImageSize [2] = { 0, 0 }

Static Public Attributes

static constexpr int TableSize = vtkWebGPUVolumeTransferFunctionSize

Constructor & Destructor Documentation

◆ vtkInternals()

vtkWebGPUVolumeRayCastCoordinator::vtkInternals::vtkInternals ( vtkWebGPUVolumeRayCastCoordinator * self)
inlineexplicit

Definition at line 38 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

Member Function Documentation

◆ Offer()

bool vtkWebGPUVolumeRayCastCoordinator::vtkInternals::Offer ( const vtkWebGPUVolumeRayCastContribution & contribution)

Take one input.

Starts a new frame when the previous one was drawn, or when the same input turns up twice, meaning a frame was gathered but never drawn. Returns false once full.

◆ Render()

void vtkWebGPUVolumeRayCastCoordinator::vtkInternals::Render ( vtkWebGPURenderWindow * window,
vtkRenderer * renderer )

March every gathered input and composite the result over the frame, once.

◆ ReleaseGraphicsResources()

void vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ReleaseGraphicsResources ( )

◆ Forget()

void vtkWebGPUVolumeRayCastCoordinator::vtkInternals::Forget ( vtkWebGPUVolumeRayCastMapper * mapper)

Forget what a mapper contributed, because it is letting go of its resources.

◆ GetNumberOfContributions()

std::size_t vtkWebGPUVolumeRayCastCoordinator::vtkInternals::GetNumberOfContributions ( ) const
inline

Definition at line 56 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ WasComplete()

bool vtkWebGPUVolumeRayCastCoordinator::vtkInternals::WasComplete ( ) const
inline

Whether every brick the last frame wanted was there.

Definition at line 59 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ EnsureImageTargets()

void vtkWebGPUVolumeRayCastCoordinator::vtkInternals::EnsureImageTargets ( vtkWebGPURenderWindow * window)

◆ ReadImage()

bool vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ReadImage ( vtkWebGPURenderWindow * window,
bool depth,
int scalarType,
vtkImageData * output )

Copy one of the two image targets back into output.

Returns false when nothing has been drawn into them yet.

Member Data Documentation

◆ TableSize

int vtkWebGPUVolumeRayCastCoordinator::vtkInternals::TableSize = vtkWebGPUVolumeTransferFunctionSize
staticconstexpr

Definition at line 36 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ Rendered

bool vtkWebGPUVolumeRayCastCoordinator::vtkInternals::Rendered = true

Whether the pass for this frame has already been recorded.

Definition at line 62 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ RenderToImage

bool vtkWebGPUVolumeRayCastCoordinator::vtkInternals::RenderToImage = false

Render to image draws the volume alone into textures of this object's own, with the depth of the first sample that was visible where the selection ids otherwise go.

The window's attachments are left alone, which is what makes the mode ignore the rest of the scene.

Definition at line 67 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ LastWindow

vtkWebGPURenderWindow* vtkWebGPUVolumeRayCastCoordinator::vtkInternals::LastWindow = nullptr

The window the last pass was drawn with, so the image can be read back afterwards.

Not a reference: the render window outlives the coordinator it owns.

Definition at line 70 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ ImageColor

vtkWebGPU::Texture vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ImageColor

Definition at line 71 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ ImageColorView

vtkWebGPU::TextureView vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ImageColorView

Definition at line 72 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ ImageDepth

vtkWebGPU::Texture vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ImageDepth

Definition at line 73 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ ImageDepthView

vtkWebGPU::TextureView vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ImageDepthView

Definition at line 74 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.

◆ ImageSize

int vtkWebGPUVolumeRayCastCoordinator::vtkInternals::ImageSize[2] = { 0, 0 }

Definition at line 75 of file vtkWebGPUVolumeRayCastCoordinatorInternals.h.


The documentation for this class was generated from the following file: