VTK  9.0.2
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 "vtkRenderPass.h"
35 #include "vtkRenderingParallelModule.h" // For export macro
36 
38 
40 class vtkTextureObject;
42 class vtkOpenGLHelper;
43 
44 class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
55  void Render(const vtkRenderState* s) override;
56 
63 
65 
70  vtkGetObjectMacro(Controller, vtkMultiProcessController);
71  virtual void SetController(vtkMultiProcessController* controller);
73 
78 
79 protected:
84 
88  ~vtkCompositeZPass() override;
89 
97 
99 
103  float* RawZBuffer;
105 
106 private:
107  vtkCompositeZPass(const vtkCompositeZPass&) = delete;
108  void operator=(const vtkCompositeZPass&) = delete;
109 };
110 
111 #endif
Merge depth buffers of processes.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkMultiProcessController * Controller
static vtkCompositeZPass * New()
virtual void SetController(vtkMultiProcessController *controller)
vtkTextureObject * ZTexture
vtkOpenGLHelper * Program
bool IsSupported(vtkOpenGLRenderWindow *context)
Is the pass supported by the OpenGL context?
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPixelBufferObject * PBO
void CreateProgram(vtkOpenGLRenderWindow *context)
Create program for texture mapping.
vtkCompositeZPass()
Default constructor.
~vtkCompositeZPass() override
Destructor.
a simple class to control print indentation
Definition: vtkIndent.h:34
Multiprocessing communication superclass.
OpenGL rendering window.
abstracts an OpenGL pixel buffer object.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38