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;
44 #ifdef VTKGL2
45 namespace vtkgl
46 {
47 class CellBO;
48 }
49 #else
50 class vtkShaderProgram2;
51 #endif
52 
54 {
55 public:
56  static vtkCompositeZPass *New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
62  virtual void Render(const vtkRenderState *s);
63 
67 
69 
72  virtual void SetController(vtkMultiProcessController *controller);
74 
76  bool IsSupported(vtkOpenGLRenderWindow *context);
77 
78  protected:
81 
83  virtual ~vtkCompositeZPass();
84 
88  void CreateProgram(vtkOpenGLRenderWindow *context);
89 
91 
94 #ifdef VTKGL2
95  vtkgl::CellBO *Program;
96 #else
98 #endif
99  float *RawZBuffer;
101 
102  private:
103  vtkCompositeZPass(const vtkCompositeZPass&); // Not implemented.
104  void operator=(const vtkCompositeZPass&); // Not implemented.
105 };
106 
107 #endif
OpenGL rendering window.
#define VTKRENDERINGPARALLEL_EXPORT
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
Context in which a vtkRenderPass will render.
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:38
VTKRENDERINGOPENGL_EXPORT PFNGLCREATEPROGRAMPROC CreateProgram
Definition: vtkgl.h:11267
vtkTextureObject * ZTexture
vtkPixelBufferObject * PBO
abstracts an OpenGL pixel buffer object.
vtkMultiProcessController * Controller
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
vtkShaderProgram2 * Program
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
virtual void ReleaseGraphicsResources(vtkWindow *w)
GLdouble s
Definition: vtkgl.h:11594
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
Merge depth buffers of processes.
Multiprocessing communication superclass.