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 =========================================================================*/
34 #ifndef vtkCompositeZPass_h
35 #define vtkCompositeZPass_h
36 
37 #include "vtkRenderingParallelModule.h" // For export macro
38 #include "vtkRenderPass.h"
39 
41 
43 class vtkTextureObject;
45 class vtkOpenGLHelper;
46 
47 class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
48 {
49 public:
50  static vtkCompositeZPass *New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
58  void Render(const vtkRenderState *s) override;
59 
65  void ReleaseGraphicsResources(vtkWindow *w) override;
66 
68 
73  vtkGetObjectMacro(Controller,vtkMultiProcessController);
74  virtual void SetController(vtkMultiProcessController *controller);
76 
80  bool IsSupported(vtkOpenGLRenderWindow *context);
81 
82  protected:
87 
91  ~vtkCompositeZPass() override;
92 
99  void CreateProgram(vtkOpenGLRenderWindow *context);
100 
102 
106  float *RawZBuffer;
108 
109  private:
110  vtkCompositeZPass(const vtkCompositeZPass&) = delete;
111  void operator=(const vtkCompositeZPass&) = delete;
112 };
113 
114 #endif
OpenGL rendering window.
vtkOpenGLHelper * Program
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTextureObject * ZTexture
vtkPixelBufferObject * PBO
abstracts an OpenGL pixel buffer object.
vtkMultiProcessController * Controller
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:58
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.