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 VTK_OPENGL2
45 class vtkOpenGLHelper;
46 #else
47 class vtkShaderProgram2;
48 #endif
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
59  virtual void Render(const vtkRenderState *s);
60 
64 
66 
69  virtual void SetController(vtkMultiProcessController *controller);
71 
74 
75  protected:
78 
80  virtual ~vtkCompositeZPass();
81 
86 
88 
91 #ifdef VTK_OPENGL2
92  vtkOpenGLHelper *Program;
93 #else
95 #endif
96  float *RawZBuffer;
98 
99  private:
100  vtkCompositeZPass(const vtkCompositeZPass&); // Not implemented.
101  void operator=(const vtkCompositeZPass&); // Not implemented.
102 };
103 
104 #endif
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkCompositeZPass::SetController
virtual void SetController(vtkMultiProcessController *controller)
vtkgl::s
GLdouble s
Definition: vtkgl.h:11594
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkRenderingParallelModule.h
vtkCompositeZPass::Render
virtual void Render(const vtkRenderState *s)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkCompositeZPass::~vtkCompositeZPass
virtual ~vtkCompositeZPass()
vtkCompositeZPass::RawZBuffer
float * RawZBuffer
Definition: vtkCompositeZPass.h:96
vtkCompositeZPass::Controller
vtkMultiProcessController * Controller
Definition: vtkCompositeZPass.h:87
vtkCompositeZPass::CreateProgram
void CreateProgram(vtkOpenGLRenderWindow *context)
vtkCompositeZPass::PBO
vtkPixelBufferObject * PBO
Definition: vtkCompositeZPass.h:89
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:85
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:31
VTKRENDERINGPARALLEL_EXPORT
#define VTKRENDERINGPARALLEL_EXPORT
Definition: vtkRenderingParallelModule.h:15
vtkCompositeZPass::Program
vtkShaderProgram2 * Program
Definition: vtkCompositeZPass.h:94
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:40
vtkCompositeZPass::New
static vtkCompositeZPass * New()
vtkCompositeZPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCompositeZPass::RawZBufferSize
size_t RawZBufferSize
Definition: vtkCompositeZPass.h:97
vtkCompositeZPass::ZTexture
vtkTextureObject * ZTexture
Definition: vtkCompositeZPass.h:90
vtkCompositeZPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w)
vtkCompositeZPass
Merge depth buffers of processes.
Definition: vtkCompositeZPass.h:51
vtkCompositeZPass::IsSupported
bool IsSupported(vtkOpenGLRenderWindow *context)
vtkShaderProgram2
GLSL Program.
Definition: vtkShaderProgram2.h:68
vtkCompositeZPass::vtkCompositeZPass
vtkCompositeZPass()
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:41
vtkgl::w
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkPixelBufferObject
abstracts an OpenGL pixel buffer object.
Definition: vtkPixelBufferObject.h:43
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:58