VTK
9.3.0
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Rendering
OpenGL2
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
47
VTK_ABI_NAMESPACE_BEGIN
48
class
vtkOpenGLFramebufferObject
;
49
class
vtkOpenGLHelper
;
50
class
vtkTextureObject
;
51
52
class
VTKRENDERINGOPENGL2_EXPORT
vtkOutlineGlowPass
:
public
vtkImageProcessingPass
53
{
54
public
:
55
static
vtkOutlineGlowPass
*
New
();
56
vtkTypeMacro(
vtkOutlineGlowPass
,
vtkImageProcessingPass
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
63
void
Render
(
const
vtkRenderState
* s)
override
;
64
70
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
71
76
vtkGetMacro(OutlineIntensity,
float
);
77
vtkSetMacro(OutlineIntensity,
float
);
78
79
protected
:
83
vtkOutlineGlowPass
();
84
88
~vtkOutlineGlowPass
()
override
;
89
93
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
94
vtkTextureObject
*
ScenePass
;
// render target for the original scene
95
vtkTextureObject
*
BlurPass1
;
// render target for vertical blur
96
vtkTextureObject
*
BlurPass2
;
// render target for horizontal blur
97
98
// Shader programs
99
vtkOpenGLHelper
*
BlurProgram
;
100
vtkOpenGLHelper
*
UpscaleProgram
;
101
102
// Default value of 3.0 gives a bright outline with a fading edge
103
float
OutlineIntensity = 3.0f;
104
105
private
:
106
vtkOutlineGlowPass
(
const
vtkOutlineGlowPass
&) =
delete
;
107
void
operator=(
const
vtkOutlineGlowPass
&) =
delete
;
108
};
109
110
VTK_ABI_NAMESPACE_END
111
#endif
/* vtkOutlineGlowPass_h */
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition
vtkImageProcessingPass.h:28
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:174
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOutlineGlowPass
Renders a glowing outline using a image processing pass.
Definition
vtkOutlineGlowPass.h:53
vtkOutlineGlowPass::BlurPass2
vtkTextureObject * BlurPass2
Definition
vtkOutlineGlowPass.h:96
vtkOutlineGlowPass::UpscaleProgram
vtkOpenGLHelper * UpscaleProgram
Definition
vtkOutlineGlowPass.h:100
vtkOutlineGlowPass::~vtkOutlineGlowPass
~vtkOutlineGlowPass() override
Destructor.
vtkOutlineGlowPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition
vtkOutlineGlowPass.h:99
vtkOutlineGlowPass::New
static vtkOutlineGlowPass * New()
vtkOutlineGlowPass::vtkOutlineGlowPass
vtkOutlineGlowPass()
Default constructor.
vtkOutlineGlowPass::BlurPass1
vtkTextureObject * BlurPass1
Definition
vtkOutlineGlowPass.h:95
vtkOutlineGlowPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkOutlineGlowPass::ScenePass
vtkTextureObject * ScenePass
Definition
vtkOutlineGlowPass.h:94
vtkOutlineGlowPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkOutlineGlowPass.h:93
vtkOutlineGlowPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOutlineGlowPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:30
vtkTextureObject
abstracts an OpenGL texture object.
Definition
vtkTextureObject.h:33
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:28
vtkImageProcessingPass.h
Generated on Mon Feb 26 2024 16:15:33 for VTK by
1.11.0