VTK  9.3.20240327
vtkClearZPass.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
16 #ifndef vtkClearZPass_h
17 #define vtkClearZPass_h
18 
19 #include "vtkRenderPass.h"
20 #include "vtkRenderingOpenGL2Module.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKRENDERINGOPENGL2_EXPORT vtkClearZPass : public vtkRenderPass
26 {
27 public:
28  static vtkClearZPass* New();
29  vtkTypeMacro(vtkClearZPass, vtkRenderPass);
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
36  void Render(const vtkRenderState* s) override;
37 
39 
42  vtkSetClampMacro(Depth, double, 0.0, 1.0);
43  vtkGetMacro(Depth, double);
45 
46 protected:
51 
55  ~vtkClearZPass() override;
56 
57  double Depth;
58 
59 private:
60  vtkClearZPass(const vtkClearZPass&) = delete;
61  void operator=(const vtkClearZPass&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
Clear the depth buffer with a given value.
Definition: vtkClearZPass.h:26
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
static vtkClearZPass * New()
vtkClearZPass()
Default constructor.
~vtkClearZPass() override
Destructor.
a simple class to control print indentation
Definition: vtkIndent.h:108
OpenGL rendering window.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
Context in which a vtkRenderPass will render.