VTK  9.4.20241109
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
19
20VTK_ABI_NAMESPACE_BEGIN
21
47class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUComputePointCloudMapper : public vtkPolyDataMapper
48{
49public:
52
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
63 void RenderPiece(vtkRenderer* ren, vtkActor* act) override;
64
65protected:
71
72private:
74 void operator=(const vtkWebGPUComputePointCloudMapper&) = delete;
80 void ComputeBounds() override;
81
83};
84
85VTK_ABI_NAMESPACE_END
86
87#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
a simple class to control print indentation
Definition vtkIndent.h:108
map vtkPolyData to graphics primitives
virtual void ComputeBounds()
Called in GetBounds().
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
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.
The point cloud renderer uses WebGPU compute shaders to render the point cells of a polydata onto the...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderPiece(vtkRenderer *ren, vtkActor *act) override
Renders the given actor with the given renderer.
static vtkWebGPUComputePointCloudMapper * New()
vtkWebGPUComputePointCloudMapper()
Creates the compute passes and sets up the observers.
Internal implementation details of vtkWebGPUPointCloudMapper.