VTK  9.7.20261123
vtkWebGPUVolumeRayCastCoordinator.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
33
34#ifndef vtkWebGPUVolumeRayCastCoordinator_h
35#define vtkWebGPUVolumeRayCastCoordinator_h
36
37#include "vtkObject.h"
38#include "vtkRenderingVolumeWebGPUModule.h" // for export macro
39
40#include <memory> // for std::unique_ptr
41
42VTK_ABI_NAMESPACE_BEGIN
43class vtkImageData;
44
45class vtkRenderer;
46class vtkVolume;
48
49class VTKRENDERINGVOLUMEWEBGPU_EXPORT vtkWebGPUVolumeRayCastCoordinator : public vtkObject
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
61
65 static void ReleaseAll();
66
70 vtkGetMacro(NumberOfVolumes, int);
71
77 static constexpr int MaximumNumberOfVolumes = 12;
78
80
87 vtkSetClampMacro(PoolBrickSize, int, 4, 128);
88 vtkGetMacro(PoolBrickSize, int);
90
92
100 vtkSetClampMacro(BrickPoolSizeMB, int, 16, 65536);
101 vtkGetMacro(BrickPoolSizeMB, int);
102 vtkSetClampMacro(MaximumBricksPerFrame, int, 1, 65536);
103 vtkGetMacro(MaximumBricksPerFrame, int);
105
110 vtkGetMacro(Complete, bool);
111
113
117 void Render(vtkRenderer* renderer);
120
122
128 bool GetImageDepth(int scalarType, vtkImageData* output);
130
132 class vtkInternals;
133#ifndef __VTK_WRAP__
134 vtkInternals* GetInternals() { return this->Internals.get(); }
135#endif
136
137protected:
140
145 bool Complete = true;
146
147private:
149 void operator=(const vtkWebGPUVolumeRayCastCoordinator&) = delete;
150
151 std::unique_ptr<vtkInternals> Internals;
152};
153
154VTK_ABI_NAMESPACE_END
155#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
abstract specification for renderers
represents a volume (data & properties) in a rendered scene
Definition vtkVolume.h:130
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWebGPUVolumeRayCastMapper *mapper)
Called by vtkWebGPUVolumeRayCastMapper as it moves through the stages of a frame.
static vtkWebGPUVolumeRayCastCoordinator * GetForRenderer(vtkRenderer *renderer)
The coordinator of renderer, created the first time it is asked for and released when the renderer go...
bool GetImageColor(vtkImageData *output)
Copy what the last render to image produced into output.
static void ReleaseAll()
Forget the coordinators of every renderer.
static vtkWebGPUVolumeRayCastCoordinator * New()
void Render(vtkRenderer *renderer)
Called by vtkWebGPUVolumeRayCastMapper as it moves through the stages of a frame.
static constexpr int MaximumNumberOfVolumes
The largest number of inputs that can share a pass.
bool GetImageDepth(int scalarType, vtkImageData *output)
Copy what the last render to image produced into output.
GPU ray cast volume mapper for the WebGPU backend.