VTK  9.1.0
vtkDepthOfFieldPass.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDepthOfFieldPass.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
37#ifndef vtkDepthOfFieldPass_h
38#define vtkDepthOfFieldPass_h
39
41#include "vtkRenderingOpenGL2Module.h" // For export macro
42
43class vtkDepthPeelingPassLayerList; // Pimpl
45class vtkOpenGLHelper;
48
49class VTKRENDERINGOPENGL2_EXPORT vtkDepthOfFieldPass : public vtkDepthImageProcessingPass
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
62 vtkSetMacro(AutomaticFocalDistance, bool);
63 vtkGetMacro(AutomaticFocalDistance, bool);
64 vtkBooleanMacro(AutomaticFocalDistance, bool);
66
71 void Render(const vtkRenderState* s) override;
72
79
80protected:
85
90
95 vtkTextureObject* Pass1; // render target for the scene
96 vtkTextureObject* Pass1Depth; // render target for the depth
97
98 // Structures for the various cell types we render.
100
102
103private:
105 void operator=(const vtkDepthOfFieldPass&) = delete;
106};
107
108#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:113
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:36