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 =========================================================================*/
24 #ifndef vtkClearZPass_h
25 #define vtkClearZPass_h
26 
27 #include "vtkRenderingOpenGL2Module.h" // For export macro
28 #include "vtkRenderPass.h"
29 
31 
33 {
34 public:
35  static vtkClearZPass *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39  //BTX
41 
43  virtual void Render(const vtkRenderState *s);
44  //ETX
46 
48 
49  vtkSetClampMacro(Depth,double,0.0,1.0);
50  vtkGetMacro(Depth,double);
52 
53  protected:
55  vtkClearZPass();
56 
58  virtual ~vtkClearZPass();
59 
60  double Depth;
61 
62  private:
63  vtkClearZPass(const vtkClearZPass&); // Not implemented.
64  void operator=(const vtkClearZPass&); // Not implemented.
65 };
66 
67 #endif
OpenGL rendering window.
#define VTKRENDERINGOPENGL2_EXPORT
Clear the depth buffer with a given value.
Definition: vtkClearZPass.h:35
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:57