VTK  9.3.0
vtkCompositeZPass.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkCompositeZPass_h
23 #define vtkCompositeZPass_h
24 
25 #include "vtkRenderPass.h"
26 #include "vtkRenderingParallelModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
30 
32 class vtkTextureObject;
34 class vtkOpenGLHelper;
35 
36 class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  void Render(const vtkRenderState* s) override;
48 
55 
57 
62  vtkGetObjectMacro(Controller, vtkMultiProcessController);
63  virtual void SetController(vtkMultiProcessController* controller);
65 
70 
71 protected:
76 
80  ~vtkCompositeZPass() override;
81 
89 
91 
95  float* RawZBuffer;
97 
98 private:
99  vtkCompositeZPass(const vtkCompositeZPass&) = delete;
100  void operator=(const vtkCompositeZPass&) = delete;
101 };
102 
103 VTK_ABI_NAMESPACE_END
104 #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)
Controller If it is NULL, nothing will be rendered and a warning will be emitted.
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:38
Multiprocessing communication superclass.
OpenGL rendering window.
abstracts an OpenGL pixel buffer object.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37