VTK  9.3.0
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
34VTK_ABI_NAMESPACE_BEGIN
35class vtkDepthPeelingPassLayerList; // Pimpl
37class vtkOpenGLHelper;
40
41class VTKRENDERINGOPENGL2_EXPORT vtkDepthOfFieldPass : public vtkDepthImageProcessingPass
42{
43public:
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
72protected:
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
95private:
97 void operator=(const vtkDepthOfFieldPass&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#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:29
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:25