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 =========================================================================*/
52 #ifndef vtkGaussianBlurPass_h
53 #define vtkGaussianBlurPass_h
54 
55 #include "vtkRenderingOpenGLModule.h" // For export macro
56 #include "vtkImageProcessingPass.h"
57 
59 class vtkDepthPeelingPassLayerList; // Pimpl
60 class vtkShaderProgram2;
61 class vtkShader2;
63 class vtkTextureObject;
64 
65 class VTKRENDERINGOPENGL_EXPORT vtkGaussianBlurPass : public vtkImageProcessingPass
66 {
67 public:
68  static vtkGaussianBlurPass *New();
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
76  virtual void Render(const vtkRenderState *s);
77 
84 
85  protected:
90 
94  virtual ~vtkGaussianBlurPass();
95 
100  vtkTextureObject *Pass1; // render target for the scene
101  vtkTextureObject *Pass2; // render target for the horizontal pass
103 
104  bool Supported;
106 
107  private:
108  vtkGaussianBlurPass(const vtkGaussianBlurPass&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkGaussianBlurPass&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
vtkFrameBufferObject
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
Definition: vtkFrameBufferObject.h:46
vtkImageProcessingPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkGaussianBlurPass::BlurProgram
vtkShaderProgram2 * BlurProgram
Definition: vtkGaussianBlurPass.h:102
vtkImageProcessingPass.h
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGaussianBlurPass::Supported
bool Supported
Definition: vtkGaussianBlurPass.h:104
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkGaussianBlurPass::Pass1
vtkTextureObject * Pass1
Definition: vtkGaussianBlurPass.h:100
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkGaussianBlurPass::FrameBufferObject
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
Definition: vtkGaussianBlurPass.h:99
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:43
vtkGaussianBlurPass
Implement a post-processing Gaussian blur render pass.
Definition: vtkGaussianBlurPass.h:65
vtkGaussianBlurPass::Pass2
vtkTextureObject * Pass2
Definition: vtkGaussianBlurPass.h:101
vtkShaderProgram2
GLSL Program.
Definition: vtkShaderProgram2.h:68
vtkImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkShader2
GLSL Shader.
Definition: vtkShader2.h:62
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:41
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkImageProcessingPass
Convenient class for post-processing passes. render pass.
Definition: vtkImageProcessingPass.h:40
vtkGaussianBlurPass::SupportProbed
bool SupportProbed
Definition: vtkGaussianBlurPass.h:105