VTK  9.7.20261205
vtkWebGPUAMRMapper.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
3
4#ifndef vtkWebGPUAMRMapper_h
5#define vtkWebGPUAMRMapper_h
6
8#include "vtkRenderingWebGPUModule.h" // for the module export macro
9#include "vtkSmartPointer.h" // for smart pointers
10
13class vtkVolume;
20
21VTK_ABI_NAMESPACE_BEGIN
22
31class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUAMRMapper : public vtkAbstractVolumeMapper
32{
33public:
36
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
43 virtual vtkHyperTreeGrid* GetInput(int port);
44
46
52 vtkSetMacro(InterfaceRenderEnabled, bool);
53 vtkGetMacro(InterfaceRenderEnabled, bool);
54 vtkBooleanMacro(InterfaceRenderEnabled, bool);
56
58
63 vtkSetMacro(SamplingRate, double);
64 vtkGetMacro(SamplingRate, double);
66
68
74 vtkSetMacro(MaxTraversalDepth, unsigned int);
75 vtkGetMacro(MaxTraversalDepth, unsigned int);
77
78 int FillInputPortInformation(int port, vtkInformation* info) override;
79
80 // Renders in the renderer's post-render phase so the depth buffer from
81 // rasterized actors is already available for depth-tested ray marching.
82 void Render(vtkRenderer* renderer, vtkVolume* vol) override;
83
85
87
91 double* GetBounds() override;
92 void GetBounds(double bounds[6]) override;
94
95protected:
101
102private:
103 vtkWebGPUAMRMapper(const vtkWebGPUAMRMapper&) = delete;
104 void operator=(const vtkWebGPUAMRMapper&) = delete;
105
106 bool InterfaceRenderEnabled = true;
107 double SamplingRate = 1.0;
108 unsigned int MaxTraversalDepth = 0;
109
111};
112
113VTK_ABI_NAMESPACE_END
114
115#endif
general representation of visualization data
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
represents a volume (data & properties) in a rendered scene
Definition vtkVolume.h:130
GPU state for vtkWebGPUAMRMapper: converts the input (HTG or OverlappingAMR) to ExaBricks via vtkAMRT...
virtual void SetInputData(vtkOverlappingAMR *)
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
virtual void SetInputData(vtkDataObject *)
virtual vtkHyperTreeGrid * GetInput()
vtkWebGPUAMRMapper()
Creates the compute passes and sets up the observers.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkWebGPUAMRMapper * New()
virtual vtkHyperTreeGrid * GetInput(int port)
virtual void SetInputData(vtkHyperTreeGrid *)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkWebGPUAMRMapper() override
void GetBounds(double bounds[6]) override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
void Render(vtkRenderer *renderer, vtkVolume *vol) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
Represents the set of parameters that will be used to create a compute shader buffer on the device wh...
A compute pass is an abstraction for offloading computation from the CPU onto the GPU using WebGPU co...
A compute pipeline is the orchestrator of a collection of compute passes.
WebGPU rendering window.
window superclass for vtkRenderWindow
Definition vtkWindow.h:66