VTK  9.7.1
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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22 
23 VTK_ABI_NAMESPACE_BEGIN
25 
26 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkClearZPass : public vtkRenderPass
27 {
28 public:
29  static vtkClearZPass* New();
30  vtkTypeMacro(vtkClearZPass, vtkRenderPass);
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
37  void Render(const vtkRenderState* s) override;
38 
40 
43  vtkSetClampMacro(Depth, double, 0.0, 1.0);
44  vtkGetMacro(Depth, double);
46 
47 protected:
51  vtkClearZPass();
52 
56  ~vtkClearZPass() override;
57 
58  double Depth;
59 
60 private:
61  vtkClearZPass(const vtkClearZPass&) = delete;
62  void operator=(const vtkClearZPass&) = delete;
63 };
64 
65 VTK_ABI_NAMESPACE_END
66 #endif
OpenGL rendering window.
Clear the depth buffer with a given value.
Definition: vtkClearZPass.h:26
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.