VTK  9.3.0
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
50 #ifndef vtkOutlineGlowPass_h
51 #define vtkOutlineGlowPass_h
52 
53 #include "vtkImageProcessingPass.h"
54 #include "vtkRenderingOpenGL2Module.h" // For export macro
55 
56 VTK_ABI_NAMESPACE_BEGIN
58 class vtkOpenGLHelper;
59 class vtkTextureObject;
60 
61 class VTKRENDERINGOPENGL2_EXPORT vtkOutlineGlowPass : public vtkImageProcessingPass
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
72  void Render(const vtkRenderState* s) override;
73 
80 
85  vtkGetMacro(OutlineIntensity, float);
86  vtkSetMacro(OutlineIntensity, float);
87 
88 protected:
93 
97  ~vtkOutlineGlowPass() override;
98 
103  vtkTextureObject* ScenePass; // render target for the original scene
104  vtkTextureObject* BlurPass1; // render target for vertical blur
105  vtkTextureObject* BlurPass2; // render target for horizontal blur
106 
107  // Shader programs
110 
111  // Default value of 3.0 gives a bright outline with a fading edge
112  float OutlineIntensity = 3.0f;
113 
114 private:
115  vtkOutlineGlowPass(const vtkOutlineGlowPass&) = delete;
116  void operator=(const vtkOutlineGlowPass&) = delete;
117 };
118 
119 VTK_ABI_NAMESPACE_END
120 #endif /* vtkOutlineGlowPass_h */
Convenient class for post-processing passes.
a simple class to control print indentation
Definition: vtkIndent.h:38
Internal class which encapsulates OpenGL FramebufferObject.
Renders a glowing outline using a image processing pass.
vtkTextureObject * BlurPass2
vtkOpenGLHelper * UpscaleProgram
~vtkOutlineGlowPass() override
Destructor.
vtkOpenGLHelper * BlurProgram
vtkOutlineGlowPass()
Default constructor.
vtkTextureObject * BlurPass1
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkTextureObject * ScenePass
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
static vtkOutlineGlowPass * New()
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37