VTK
vtkGaussianBlurPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGaussianBlurPass.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 =========================================================================*/
49 #ifndef vtkGaussianBlurPass_h
50 #define vtkGaussianBlurPass_h
51 
52 #include "vtkRenderingOpenGL2Module.h" // For export macro
53 #include "vtkImageProcessingPass.h"
54 
55 class vtkDepthPeelingPassLayerList; // Pimpl
57 class vtkOpenGLHelper;
59 class vtkTextureObject;
60 
61 class VTKRENDERINGOPENGL2_EXPORT vtkGaussianBlurPass : public vtkImageProcessingPass
62 {
63 public:
64  static vtkGaussianBlurPass *New();
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
72  virtual void Render(const vtkRenderState *s);
73 
80 
81  protected:
86 
90  virtual ~vtkGaussianBlurPass();
91 
95  vtkFrameBufferObject *FrameBufferObject;
96  vtkTextureObject *Pass1; // render target for the scene
97  vtkTextureObject *Pass2; // render target for the horizontal pass
98 
99  // Structures for the various cell types we render.
101 
102  bool Supported;
103  bool SupportProbed;
104 
105  private:
106  vtkGaussianBlurPass(const vtkGaussianBlurPass&) VTK_DELETE_FUNCTION;
107  void operator=(const vtkGaussianBlurPass&) VTK_DELETE_FUNCTION;
108 };
109 
110 #endif
OpenGL rendering window.
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkOpenGLHelper * BlurProgram
Convenient class for post-processing passes.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:39
internal class which encapsulates OpenGL frame buffer object.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Implement a post-processing Gaussian blur render pass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.