VTK  9.7.1
vtkWebGPUComputePointCloudMapper.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 vtkWebGPUComputePointCloudMapper_h
5 #define vtkWebGPUComputePointCloudMapper_h
6 
7 #include "vtkCallbackCommand.h" // for listening on camera & polydata changes
8 #include "vtkPolyData.h" // for the poyldata that is going to be rendered
9 #include "vtkPolyDataMapper.h"
10 #include "vtkRenderingWebGPUModule.h" // for the module export macro
11 #include "vtkSmartPointer.h" // for smart pointers
12 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
13 
14 class vtkWebGPURenderer;
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 
48 class VTKRENDERINGWEBGPU_EXPORT VTK_MARSHALAUTO vtkWebGPUComputePointCloudMapper
49  : public vtkPolyDataMapper
50 {
51 public:
54 
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
65  void RenderPiece(vtkRenderer* renderer, vtkActor* act) override;
66 
67 protected:
73 
74 private:
76  void operator=(const vtkWebGPUComputePointCloudMapper&) = delete;
82  void ComputeBounds() override;
83 
85 };
86 
87 VTK_ABI_NAMESPACE_END
88 
89 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
The point cloud renderer uses WebGPU compute shaders to render the point cells of a polydata onto the...
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void RenderPiece(vtkRenderer *, vtkActor *)
Implemented by sub classes.
Represents the set of parameters that will be used to create a compute shader buffer on the device wh...
Internal implementation details of vtkWebGPUPointCloudMapper.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ComputeBounds()
Called in GetBounds().
map vtkPolyData to graphics primitives
A compute pipeline is the orchestrator of a collection of compute passes.
static vtkPolyDataMapper * New()
#define VTK_MARSHALAUTO
WebGPU rendering window.
A compute pass is an abstraction for offloading computation from the CPU onto the GPU using WebGPU co...