VTK  9.4.20241112
vtkWebGPUHardwareSelector.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
15#ifndef vtkWebGPUHardwareSelector_h
16#define vtkWebGPUHardwareSelector_h
17
18#include "vtkHardwareSelector.h"
19
20#include "vtkRenderingWebGPUModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUHardwareSelector : public vtkHardwareSelector
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
34 void BeginRenderProp() override;
35 void EndRenderProp() override;
36
41 void RenderCompositeIndex(unsigned int index) override;
42
47 void RenderProcessId(unsigned int processid) override;
48
49 // we need to initialize the depth buffer
50 void BeginSelection() override;
51 void EndSelection() override;
52
53protected:
56
57 void PreCapturePass(int pass) override;
58 void PostCapturePass(int pass) override;
59
60 // Called internally before each prop is rendered
61 // for device specific configuration/preparation etc.
64
65 void SavePixelBuffer(int passNo) override;
66
69
70private:
72 void operator=(const vtkWebGPUHardwareSelector&) = delete;
73};
74
75VTK_ABI_NAMESPACE_END
76#endif
a simple class to control print indentation
Definition vtkIndent.h:108
create a window for renderers to draw into
implements the device specific code of vtkWebGPUHardwareSelector.
void BeginRenderProp(vtkRenderWindow *) override
void SavePixelBuffer(int passNo) override
void EndRenderProp() override
Called by the mapper before and after rendering each prop.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void EndRenderProp(vtkRenderWindow *) override
void PostCapturePass(int pass) override
static vtkWebGPUHardwareSelector * New()
void PreCapturePass(int pass) override
void RenderProcessId(unsigned int processid) override
Called by any vtkMapper or subclass to render process id.
void BeginRenderProp() override
Called by the mapper before and after rendering each prop.
~vtkWebGPUHardwareSelector() override
void EndSelection() override
void BeginSelection() override
void RenderCompositeIndex(unsigned int index) override
Called by any vtkMapper or vtkProp subclass to render a composite-index.