VTK
9.1.0
Rendering
OpenGL2
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
=========================================================================*/
69
#ifndef vtkOutlineGlowPass_h
70
#define vtkOutlineGlowPass_h
71
72
#include "
vtkImageProcessingPass.h
"
73
#include "vtkRenderingOpenGL2Module.h"
// For export macro
74
75
class
vtkOpenGLFramebufferObject
;
76
class
vtkOpenGLHelper
;
77
class
vtkTextureObject
;
78
79
class
VTKRENDERINGOPENGL2_EXPORT
vtkOutlineGlowPass
:
public
vtkImageProcessingPass
80
{
81
public
:
82
static
vtkOutlineGlowPass
*
New
();
83
vtkTypeMacro(
vtkOutlineGlowPass
,
vtkImageProcessingPass
);
84
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
85
90
void
Render
(
const
vtkRenderState
* s)
override
;
91
97
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
98
103
vtkGetMacro(OutlineIntensity,
float
);
104
vtkSetMacro(OutlineIntensity,
float
);
105
106
protected
:
110
vtkOutlineGlowPass
();
111
115
~vtkOutlineGlowPass
()
override
;
116
120
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
121
vtkTextureObject
*
ScenePass
;
// render target for the original scene
122
vtkTextureObject
*
BlurPass1
;
// render target for vertical blur
123
vtkTextureObject
*
BlurPass2
;
// render target for horizontal blur
124
125
// Shader programs
126
vtkOpenGLHelper
*
BlurProgram
;
127
vtkOpenGLHelper
*
UpscaleProgram
;
128
129
// Default value of 3.0 gives a bright outline with a fading edge
130
float
OutlineIntensity = 3.0f;
131
132
private
:
133
vtkOutlineGlowPass
(
const
vtkOutlineGlowPass
&) =
delete
;
134
void
operator=(
const
vtkOutlineGlowPass
&) =
delete
;
135
};
136
137
#endif
/* vtkOutlineGlowPass_h */
vtkOutlineGlowPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkOutlineGlowPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition:
vtkOutlineGlowPass.h:126
vtkOutlineGlowPass::BlurPass2
vtkTextureObject * BlurPass2
Definition:
vtkOutlineGlowPass.h:123
vtkImageProcessingPass.h
vtkOutlineGlowPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition:
vtkOutlineGlowPass.h:120
vtkOutlineGlowPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition:
vtkOpenGLFramebufferObject.h:182
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:39
vtkOutlineGlowPass::New
static vtkOutlineGlowPass * New()
vtkOutlineGlowPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOutlineGlowPass::~vtkOutlineGlowPass
~vtkOutlineGlowPass() override
Destructor.
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:31
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:60
vtkOutlineGlowPass::UpscaleProgram
vtkOpenGLHelper * UpscaleProgram
Definition:
vtkOutlineGlowPass.h:127
vtkOutlineGlowPass::BlurPass1
vtkTextureObject * BlurPass1
Definition:
vtkOutlineGlowPass.h:122
vtkOutlineGlowPass::vtkOutlineGlowPass
vtkOutlineGlowPass()
Default constructor.
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:41
vtkOutlineGlowPass
Renders a glowing outline using a image processing pass.
Definition:
vtkOutlineGlowPass.h:80
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition:
vtkImageProcessingPass.h:39
vtkOutlineGlowPass::ScenePass
vtkTextureObject * ScenePass
Definition:
vtkOutlineGlowPass.h:121
Generated on Fri Nov 5 2021 00:11:17 for VTK by
1.8.20