VTK  9.3.20240916
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
60#ifndef vtkOutlineGlowPass_h
61#define vtkOutlineGlowPass_h
62
64#include "vtkRenderingOpenGL2Module.h" // For export macro
65#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
66
67VTK_ABI_NAMESPACE_BEGIN
69class vtkOpenGLHelper;
71
72class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOutlineGlowPass : public vtkImageProcessingPass
73{
74public:
77 void PrintSelf(ostream& os, vtkIndent indent) override;
78
83 void Render(const vtkRenderState* s) override;
84
91
96 vtkGetMacro(OutlineIntensity, float);
97 vtkSetMacro(OutlineIntensity, float);
98
99protected:
104
109
114 vtkTextureObject* ScenePass; // render target for the original scene
115 vtkTextureObject* BlurPass1; // render target for vertical blur
116 vtkTextureObject* BlurPass2; // render target for horizontal blur
117
118 // Shader programs
121
122 // Default value of 3.0 gives a bright outline with a fading edge
123 float OutlineIntensity = 3.0f;
124
125private:
126 vtkOutlineGlowPass(const vtkOutlineGlowPass&) = delete;
127 void operator=(const vtkOutlineGlowPass&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif /* vtkOutlineGlowPass_h */
Convenient class for post-processing passes.
a simple class to control print indentation
Definition vtkIndent.h:108
Internal class which encapsulates OpenGL FramebufferObject.
Renders a glowing outline using a image processing pass.
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.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO