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);
58 
60 
65  vtkSetMacro(AutomaticFocalDistance,bool);
66  vtkGetMacro(AutomaticFocalDistance,bool);
67  vtkBooleanMacro(AutomaticFocalDistance,bool);
69 
74  virtual void Render(const vtkRenderState *s);
75 
82 
83  protected:
88 
92  virtual ~vtkDepthOfFieldPass();
93 
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.
103 
104  bool Supported;
106 
108 
109  private:
110  vtkDepthOfFieldPass(const vtkDepthOfFieldPass&) VTK_DELETE_FUNCTION;
111  void operator=(const vtkDepthOfFieldPass&) VTK_DELETE_FUNCTION;
112 };
113 
114 #endif
vtkDepthImageProcessingPass
Convenient class for post-processing passes. Based on vtkImageProcessingPass, but writes depth as wel...
Definition: vtkDepthImageProcessingPass.h:62
vtkFrameBufferObject
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
Definition: vtkFrameBufferObject.h:46
vtkDepthImageProcessingPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkDepthImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkDepthOfFieldPass::Pass1
vtkTextureObject * Pass1
Definition: vtkDepthOfFieldPass.h:98
vtkDepthOfFieldPass::FrameBufferObject
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
Definition: vtkDepthOfFieldPass.h:97
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:30
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:40
vtkDepthOfFieldPass::AutomaticFocalDistance
bool AutomaticFocalDistance
Definition: vtkDepthOfFieldPass.h:107
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkDepthOfFieldPass::Pass1Depth
vtkTextureObject * Pass1Depth
Definition: vtkDepthOfFieldPass.h:99
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkDepthOfFieldPass::Supported
bool Supported
Definition: vtkDepthOfFieldPass.h:104
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:38
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkDepthOfFieldPass::SupportProbed
bool SupportProbed
Definition: vtkDepthOfFieldPass.h:105
vtkDepthOfFieldPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition: vtkDepthOfFieldPass.h:102
vtkDepthOfFieldPass
Implement a post-processing DOF blur pass.
Definition: vtkDepthOfFieldPass.h:52
vtkDepthImageProcessingPass.h