VTK
vtkCompositeZPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeZPass.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 =========================================================================*/
33 #ifndef __vtkCompositeZPass_h
34 #define __vtkCompositeZPass_h
35 
36 #include "vtkRenderingParallelModule.h" // For export macro
37 #include "vtkRenderPass.h"
38 
40 
42 class vtkTextureObject;
43 class vtkShaderProgram2;
45 
46 class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
47 {
48 public:
49  static vtkCompositeZPass *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
55  virtual void Render(const vtkRenderState *s);
56 
60 
62 
64  vtkGetObjectMacro(Controller,vtkMultiProcessController);
65  virtual void SetController(vtkMultiProcessController *controller);
67 
69  bool IsSupported(vtkOpenGLRenderWindow *context);
70 
71  protected:
74 
76  virtual ~vtkCompositeZPass();
77 
81  void CreateProgram(vtkOpenGLRenderWindow *context);
82 
84 
88  float *RawZBuffer;
90 
91  private:
92  vtkCompositeZPass(const vtkCompositeZPass&); // Not implemented.
93  void operator=(const vtkCompositeZPass&); // Not implemented.
94 };
95 
96 #endif