VTK
9.6.1
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
40
41
#ifndef vtkOutlineGlowPass_h
42
#define vtkOutlineGlowPass_h
43
44
#include "
vtkImageProcessingPass.h
"
45
#include "vtkRenderingOpenGL2Module.h"
// For export macro
46
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
47
48
VTK_ABI_NAMESPACE_BEGIN
49
class
vtkOpenGLFramebufferObject
;
50
class
vtkOpenGLHelper
;
51
class
vtkTextureObject
;
52
53
class
VTKRENDERINGOPENGL2_EXPORT
VTK_MARSHALAUTO
vtkOutlineGlowPass
:
public
vtkImageProcessingPass
54
{
55
public
:
56
static
vtkOutlineGlowPass
*
New
();
57
vtkTypeMacro(
vtkOutlineGlowPass
,
vtkImageProcessingPass
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
59
64
void
Render
(
const
vtkRenderState
* s)
override
;
65
71
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
72
77
vtkGetMacro(
OutlineIntensity
,
float
);
78
vtkSetMacro(
OutlineIntensity
,
float
);
79
80
protected
:
84
vtkOutlineGlowPass
();
85
89
~vtkOutlineGlowPass
()
override
;
90
94
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
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
100
vtkOpenGLHelper
*
BlurProgram
;
101
vtkOpenGLHelper
*
UpscaleProgram
;
102
103
// Default value of 3.0 gives a bright outline with a fading edge
104
float
OutlineIntensity
= 3.0f;
105
106
private
:
107
vtkOutlineGlowPass
(
const
vtkOutlineGlowPass
&) =
delete
;
108
void
operator=(
const
vtkOutlineGlowPass
&) =
delete
;
109
};
110
111
VTK_ABI_NAMESPACE_END
112
#endif
/* vtkOutlineGlowPass_h */
vtkImageProcessingPass::vtkImageProcessingPass
vtkImageProcessingPass()
Default constructor.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:175
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOutlineGlowPass::BlurPass2
vtkTextureObject * BlurPass2
Definition
vtkOutlineGlowPass.h:97
vtkOutlineGlowPass::UpscaleProgram
vtkOpenGLHelper * UpscaleProgram
Definition
vtkOutlineGlowPass.h:101
vtkOutlineGlowPass::~vtkOutlineGlowPass
~vtkOutlineGlowPass() override
Destructor.
vtkOutlineGlowPass::OutlineIntensity
float OutlineIntensity
Definition
vtkOutlineGlowPass.h:104
vtkOutlineGlowPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition
vtkOutlineGlowPass.h:100
vtkOutlineGlowPass::New
static vtkOutlineGlowPass * New()
vtkOutlineGlowPass::vtkOutlineGlowPass
vtkOutlineGlowPass()
Default constructor.
vtkOutlineGlowPass::BlurPass1
vtkTextureObject * BlurPass1
Definition
vtkOutlineGlowPass.h:96
vtkOutlineGlowPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkOutlineGlowPass::ScenePass
vtkTextureObject * ScenePass
Definition
vtkOutlineGlowPass.h:95
vtkOutlineGlowPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkOutlineGlowPass.h:94
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
In case DepthTextureCompare is true, specify the comparison function in use.
Definition
vtkTextureObject.h:34
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:29
vtkImageProcessingPass.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:60
Generated on
for VTK by
1.16.1