VTK  9.5.2
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
40
41#ifndef vtkOutlineGlowPass_h
42#define vtkOutlineGlowPass_h
43
45#include "vtkRenderingOpenGL2Module.h" // For export macro
46#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47
48VTK_ABI_NAMESPACE_BEGIN
50class vtkOpenGLHelper;
52
53class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOutlineGlowPass : public vtkImageProcessingPass
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
64 void Render(const vtkRenderState* s) override;
65
72
77 vtkGetMacro(OutlineIntensity, float);
78 vtkSetMacro(OutlineIntensity, float);
79
80protected:
85
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
106private:
107 vtkOutlineGlowPass(const vtkOutlineGlowPass&) = delete;
108 void operator=(const vtkOutlineGlowPass&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif /* vtkOutlineGlowPass_h */
vtkImageProcessingPass()
Default constructor.
a simple class to control print indentation
Definition vtkIndent.h:29
Internal class which encapsulates OpenGL FramebufferObject.
vtkTextureObject * BlurPass2
vtkOpenGLHelper * UpscaleProgram
~vtkOutlineGlowPass() override
Destructor.
vtkOpenGLHelper * BlurProgram
static vtkOutlineGlowPass * New()
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.
Context in which a vtkRenderPass will render.
In case DepthTextureCompare is true, specify the comparison function in use.
window superclass for vtkRenderWindow
Definition vtkWindow.h:26
#define VTK_MARSHALAUTO