VTK  9.3.20240425
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
22VTK_ABI_NAMESPACE_BEGIN
24
25class VTKRENDERINGOPENGL2_EXPORT vtkClearZPass : public vtkRenderPass
26{
27public:
28 static vtkClearZPass* New();
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
46protected:
51
55 ~vtkClearZPass() override;
56
57 double Depth;
58
59private:
60 vtkClearZPass(const vtkClearZPass&) = delete;
61 void operator=(const vtkClearZPass&) = delete;
62};
63
64VTK_ABI_NAMESPACE_END
65#endif
Clear the depth buffer with a given value.
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.
Context in which a vtkRenderPass will render.