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 "vtkRenderPass.h"
37 
39 
41 class vtkTextureObject;
42 class vtkShaderProgram2;
44 
46 {
47 public:
48  static vtkCompositeZPass *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
54  virtual void Render(const vtkRenderState *s);
55 
59 
61 
63  vtkGetObjectMacro(Controller,vtkMultiProcessController);
64  virtual void SetController(vtkMultiProcessController *controller);
66 
68  bool IsSupported(vtkOpenGLRenderWindow *context);
69 
70  protected:
73 
75  virtual ~vtkCompositeZPass();
76 
80  void CreateProgram(vtkOpenGLRenderWindow *context);
81 
83 
87  float *RawZBuffer;
89 
90  private:
91  vtkCompositeZPass(const vtkCompositeZPass&); // Not implemented.
92  void operator=(const vtkCompositeZPass&); // Not implemented.
93 };
94 
95 #endif
OpenGL rendering window.
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
Context in which a vtkRenderPass will render.
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkTextureObject * ZTexture
vtkPixelBufferObject * PBO
abstracts an OpenGL pixel buffer object.
vtkMultiProcessController * Controller
vtkShaderProgram2 * Program
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
#define VTK_PARALLEL_EXPORT
virtual void ReleaseGraphicsResources(vtkWindow *w)
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:53
Merge depth buffers of processes.
Multiprocessing communication superclass.