VTK  9.2.6
vtkOutlineGlowPass.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOutlineGlowPass.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
49
50#ifndef vtkOutlineGlowPass_h
51#define vtkOutlineGlowPass_h
52
54#include "vtkRenderingOpenGL2Module.h" // For export macro
55
57class vtkOpenGLHelper;
59
60class VTKRENDERINGOPENGL2_EXPORT vtkOutlineGlowPass : public vtkImageProcessingPass
61{
62public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
71 void Render(const vtkRenderState* s) override;
72
79
84 vtkGetMacro(OutlineIntensity, float);
85 vtkSetMacro(OutlineIntensity, float);
86
87protected:
92
97
102 vtkTextureObject* ScenePass; // render target for the original scene
103 vtkTextureObject* BlurPass1; // render target for vertical blur
104 vtkTextureObject* BlurPass2; // render target for horizontal blur
105
106 // Shader programs
109
110 // Default value of 3.0 gives a bright outline with a fading edge
111 float OutlineIntensity = 3.0f;
112
113private:
114 vtkOutlineGlowPass(const vtkOutlineGlowPass&) = delete;
115 void operator=(const vtkOutlineGlowPass&) = delete;
116};
117
118#endif /* vtkOutlineGlowPass_h */
vtkImageProcessingPass()
Default constructor.
a simple class to control print indentation
Definition vtkIndent.h:34
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.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition vtkWindow.h:39