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 
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 
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
OpenGL rendering window.
#define VTKRENDERINGPARALLEL_EXPORT
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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
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:54
Merge depth buffers of processes.
Multiprocessing communication superclass.