VTK  9.7.1
vtkOutlineGlowPass.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
41 #ifndef vtkOutlineGlowPass_h
42 #define vtkOutlineGlowPass_h
43 
44 #include "vtkImageProcessingPass.h"
45 #include "vtkRenderingOpenGL2Module.h" // For export macro
46 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47 
48 VTK_ABI_NAMESPACE_BEGIN
50 class vtkOpenGLHelper;
51 class vtkTextureObject;
52 
53 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOutlineGlowPass : public vtkImageProcessingPass
54 {
55 public:
56  static vtkOutlineGlowPass* New();
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
64  void Render(const vtkRenderState* s) override;
65 
71  void ReleaseGraphicsResources(vtkWindow* w) override;
72 
77  vtkGetMacro(OutlineIntensity, float);
78  vtkSetMacro(OutlineIntensity, float);
79 
80 protected:
85 
89  ~vtkOutlineGlowPass() override;
90 
95  vtkTextureObject* ScenePass; // render target for the original scene
96  vtkTextureObject* BlurPass1; // render target for vertical blur
97  vtkTextureObject* BlurPass2; // render target for horizontal blur
98 
99  // Shader programs
102 
103  // Default value of 3.0 gives a bright outline with a fading edge
104  float OutlineIntensity = 3.0f;
105 
106 private:
107  vtkOutlineGlowPass(const vtkOutlineGlowPass&) = delete;
108  void operator=(const vtkOutlineGlowPass&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #endif /* vtkOutlineGlowPass_h */
vtkTextureObject * ScenePass
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Convenient class for post-processing passes.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
Context in which a vtkRenderPass will render.
vtkTextureObject * BlurPass1
a simple class to control print indentation
Definition: vtkIndent.h:28
Internal class which encapsulates OpenGL FramebufferObject.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkOpenGLHelper * UpscaleProgram
vtkOpenGLHelper * BlurProgram
#define VTK_MARSHALAUTO
Renders a glowing outline using a image processing pass.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkTextureObject * BlurPass2