VTK: Rendering/OpenGL2/vtkGaussianBlurPass.h Source File

| VTK 9.3.1

vtkGaussianBlurPass.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkGaussianBlurPass_h
41 #define vtkGaussianBlurPass_h
42
43 #include "vtkImageProcessingPass.h"
44 #include "vtkRenderingOpenGL2Module.h" // For export macro
45
46 VTK_ABI_NAMESPACE_BEGIN
47 class vtkDepthPeelingPassLayerList; // Pimpl
48 class vtkOpenGLFramebufferObject;
49 class vtkOpenGLHelper;
50 class vtkOpenGLRenderWindow;
51 class vtkTextureObject;
52
53 class VTKRENDERINGOPENGL2_EXPORT vtkGaussianBlurPass : public vtkImageProcessingPass
54 {
55 public:
56 static vtkGaussianBlurPass* New();
57 vtkTypeMacro(vtkGaussianBlurPass, vtkImageProcessingPass);
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
64 void Render(const vtkRenderState* s) override;
65
71 void ReleaseGraphicsResources(vtkWindow* w) override;
72
73 protected:
77 vtkGaussianBlurPass();
78
82 ~vtkGaussianBlurPass() override;
83
87 vtkOpenGLFramebufferObject* FrameBufferObject;
88 vtkTextureObject* Pass1; // render target for the scene
89 vtkTextureObject* Pass2; // render target for the horizontal pass
90
91 // Structures for the various cell types we render.
92 vtkOpenGLHelper* BlurProgram;
93
94 private:
95 vtkGaussianBlurPass(const vtkGaussianBlurPass&) = delete;
96 void operator=(const vtkGaussianBlurPass&) = delete;
97 };
98
99 VTK_ABI_NAMESPACE_END
100 #endif
vtkGaussianBlurPass
Implement a post-processing Gaussian blur render pass.
Definition: vtkGaussianBlurPass.h:54
vtkGaussianBlurPass::~vtkGaussianBlurPass
~vtkGaussianBlurPass() override
Destructor.
vtkGaussianBlurPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkGaussianBlurPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkGaussianBlurPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition: vtkGaussianBlurPass.h:87
vtkGaussianBlurPass::Pass2
vtkTextureObject * Pass2
Definition: vtkGaussianBlurPass.h:89
vtkGaussianBlurPass::New
static vtkGaussianBlurPass * New()
vtkGaussianBlurPass::Pass1
vtkTextureObject * Pass1
Definition: vtkGaussianBlurPass.h:88
vtkGaussianBlurPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition: vtkGaussianBlurPass.h:92
vtkGaussianBlurPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGaussianBlurPass::vtkGaussianBlurPass
vtkGaussianBlurPass()
Default constructor.
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition: vtkImageProcessingPass.h:28
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition: vtkOpenGLFramebufferObject.h:174
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:21
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:53
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:30
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:33
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkImageProcessingPass.h