Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250409
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkDepthPeelingPassLayerList; // Pimpl
38class vtkOpenGLHelper;
41
42class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkDepthOfFieldPass
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
56 vtkSetMacro(AutomaticFocalDistance, bool);
57 vtkGetMacro(AutomaticFocalDistance, bool);
58 vtkBooleanMacro(AutomaticFocalDistance, bool);
60
65 void Render(const vtkRenderState* s) override;
66
73
74protected:
79
84
89 vtkTextureObject* Pass1; // render target for the scene
90 vtkTextureObject* Pass1Depth; // render target for the depth
91
92 // Structures for the various cell types we render.
94
96
97private:
99 void operator=(const vtkDepthOfFieldPass&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif
Convenient class for post-processing passes.
Implement a post-processing DOF blur pass.
vtkTextureObject * Pass1
vtkOpenGLHelper * BlurProgram
static vtkDepthOfFieldPass * New()
vtkDepthOfFieldPass()
Default constructor.
vtkTextureObject * Pass1Depth
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
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
#define VTK_MARSHALAUTO