VTK  9.3.20240329
vtkDepthOfFieldPass.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
28 #ifndef vtkDepthOfFieldPass_h
29 #define vtkDepthOfFieldPass_h
30 
32 #include "vtkRenderingOpenGL2Module.h" // For export macro
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkDepthPeelingPassLayerList; // Pimpl
37 class vtkOpenGLHelper;
39 class vtkTextureObject;
40 
41 class VTKRENDERINGOPENGL2_EXPORT vtkDepthOfFieldPass : public vtkDepthImageProcessingPass
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetMacro(AutomaticFocalDistance, bool);
55  vtkGetMacro(AutomaticFocalDistance, bool);
56  vtkBooleanMacro(AutomaticFocalDistance, bool);
58 
63  void Render(const vtkRenderState* s) override;
64 
71 
72 protected:
77 
82 
87  vtkTextureObject* Pass1; // render target for the scene
88  vtkTextureObject* Pass1Depth; // render target for the depth
89 
90  // Structures for the various cell types we render.
92 
94 
95 private:
97  void operator=(const vtkDepthOfFieldPass&) = delete;
98 };
99 
100 VTK_ABI_NAMESPACE_END
101 #endif
Convenient class for post-processing passes.
Implement a post-processing DOF blur pass.
vtkTextureObject * Pass1
vtkOpenGLHelper * BlurProgram
vtkDepthOfFieldPass()
Default constructor.
vtkTextureObject * Pass1Depth
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
static vtkDepthOfFieldPass * New()
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
~vtkDepthOfFieldPass() override
Destructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
a simple class to control print indentation
Definition: vtkIndent.h:108
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48