VTK  9.3.20240425
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
28VTK_ABI_NAMESPACE_BEGIN
30
34class vtkOpenGLHelper;
35
36class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
37{
38public:
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
71protected:
76
81
89
91
95 float* RawZBuffer;
97
98private:
99 vtkCompositeZPass(const vtkCompositeZPass&) = delete;
100 void operator=(const vtkCompositeZPass&) = delete;
101};
102
103VTK_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
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
static vtkCompositeZPass * New()
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:108
Multiprocessing communication superclass.
OpenGL rendering window.
abstracts an OpenGL pixel buffer object.
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition vtkWindow.h:48