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 =========================================================================*/
31 #ifndef vtkCompositeZPass_h
32 #define vtkCompositeZPass_h
33 
34 #include "vtkRenderingParallelModule.h" // For export macro
35 #include "vtkRenderPass.h"
36 
38 
40 class vtkTextureObject;
42 #ifdef VTK_OPENGL2
43 class vtkOpenGLHelper;
44 #else
45 class vtkShaderProgram2;
46 #endif
47 
48 class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
49 {
50 public:
51  static vtkCompositeZPass *New();
53  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54 
59  virtual void Render(const vtkRenderState *s) VTK_OVERRIDE;
60 
66  void ReleaseGraphicsResources(vtkWindow *w) VTK_OVERRIDE;
67 
69 
74  vtkGetObjectMacro(Controller,vtkMultiProcessController);
75  virtual void SetController(vtkMultiProcessController *controller);
77 
81  bool IsSupported(vtkOpenGLRenderWindow *context);
82 
83  protected:
88 
92  virtual ~vtkCompositeZPass();
93 
100  void CreateProgram(vtkOpenGLRenderWindow *context);
101 
103 
106 #ifdef VTK_OPENGL2
107  vtkOpenGLHelper *Program;
108 #else
110 #endif
111  float *RawZBuffer;
113 
114  private:
115  vtkCompositeZPass(const vtkCompositeZPass&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkCompositeZPass&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
OpenGL rendering window.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
Context in which a vtkRenderPass will render.
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:33
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
Perform rendering according to a render state s.
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:55
Merge depth buffers of processes.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.