VTK
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 =========================================================================*/
40 #ifndef vtkDepthOfFieldPass_h
41 #define vtkDepthOfFieldPass_h
42 
43 #include "vtkRenderingOpenGL2Module.h" // For export macro
45 
46 class vtkDepthPeelingPassLayerList; // Pimpl
48 class vtkOpenGLHelper;
50 class vtkTextureObject;
51 
52 class VTKRENDERINGOPENGL2_EXPORT vtkDepthOfFieldPass : public vtkDepthImageProcessingPass
53 {
54 public:
55  static vtkDepthOfFieldPass *New();
57  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58 
60 
65  vtkSetMacro(AutomaticFocalDistance,bool);
66  vtkGetMacro(AutomaticFocalDistance,bool);
67  vtkBooleanMacro(AutomaticFocalDistance,bool);
69 
74  void Render(const vtkRenderState *s) VTK_OVERRIDE;
75 
81  void ReleaseGraphicsResources(vtkWindow *w) VTK_OVERRIDE;
82 
83  protected:
88 
92  ~vtkDepthOfFieldPass() VTK_OVERRIDE;
93 
97  vtkOpenGLFramebufferObject *FrameBufferObject;
98  vtkTextureObject *Pass1; // render target for the scene
99  vtkTextureObject *Pass1Depth; // render target for the depth
100 
101  // Structures for the various cell types we render.
102  vtkOpenGLHelper *BlurProgram;
103 
104  bool AutomaticFocalDistance;
105 
106  private:
107  vtkDepthOfFieldPass(const vtkDepthOfFieldPass&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkDepthOfFieldPass&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
OpenGL rendering window.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Internal class which encapsulates OpenGL FramebufferObject.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Convenient class for post-processing passes.
Implement a post-processing DOF blur pass.