VTK  9.3.1
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:
39  static vtkCompositeZPass* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  void Render(const vtkRenderState* s) override;
48 
54  void ReleaseGraphicsResources(vtkWindow* w) override;
55 
57 
62  vtkGetObjectMacro(Controller, vtkMultiProcessController);
63  virtual void SetController(vtkMultiProcessController* controller);
65 
69  bool IsSupported(vtkOpenGLRenderWindow* context);
70 
71 protected:
76 
80  ~vtkCompositeZPass() override;
81 
88  void CreateProgram(vtkOpenGLRenderWindow* context);
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
OpenGL rendering window.
vtkOpenGLHelper * Program
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:28
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:48
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.