VTK
vtkClearZPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkClearZPass.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkClearZPass_h
28 #define vtkClearZPass_h
29 
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 #include "vtkRenderPass.h"
32 
34 
35 class VTKRENDERINGOPENGL2_EXPORT vtkClearZPass : public vtkRenderPass
36 {
37 public:
38  static vtkClearZPass *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
42  //BTX
44 
46  virtual void Render(const vtkRenderState *s);
47  //ETX
49 
51 
52  vtkSetClampMacro(Depth,double,0.0,1.0);
53  vtkGetMacro(Depth,double);
55 
56  protected:
58  vtkClearZPass();
59 
61  virtual ~vtkClearZPass();
62 
63  double Depth;
64 
65  private:
66  vtkClearZPass(const vtkClearZPass&); // Not implemented.
67  void operator=(const vtkClearZPass&); // Not implemented.
68 };
69 
70 #endif
OpenGL rendering window.
Clear the depth buffer with a given value.
Definition: vtkClearZPass.h:32
void PrintSelf(ostream &os, vtkIndent indent)
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Render(const vtkRenderState *s)=0
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:54