VTK  9.4.20241222
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
23VTK_ABI_NAMESPACE_BEGIN
25
26class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkClearZPass : public vtkRenderPass
27{
28public:
29 static vtkClearZPass* New();
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
47protected:
52
56 ~vtkClearZPass() override;
57
58 double Depth;
59
60private:
61 vtkClearZPass(const vtkClearZPass&) = delete;
62 void operator=(const vtkClearZPass&) = delete;
63};
64
65VTK_ABI_NAMESPACE_END
66#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.
#define VTK_MARSHALAUTO