VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
53
#ifndef vtkOutlineGlowPass_h
54
#define vtkOutlineGlowPass_h
55
56
#include "
vtkImageProcessingPass.h
"
57
#include "vtkRenderingOpenGL2Module.h"
// For export macro
58
59
class
vtkOpenGLFramebufferObject
;
60
class
vtkOpenGLHelper
;
61
class
vtkTextureObject
;
62
63
class
VTKRENDERINGOPENGL2_EXPORT
vtkOutlineGlowPass
:
public
vtkImageProcessingPass
64
{
65
public
:
66
static
vtkOutlineGlowPass
*
New
();
67
vtkTypeMacro(
vtkOutlineGlowPass
,
vtkImageProcessingPass
);
68
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
69
74
void
Render
(
const
vtkRenderState
* s)
override
;
75
81
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
82
87
vtkGetMacro(OutlineIntensity,
float
);
88
vtkSetMacro(OutlineIntensity,
float
);
89
90
protected
:
94
vtkOutlineGlowPass
();
95
99
~vtkOutlineGlowPass
()
override
;
100
104
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
105
vtkTextureObject
*
ScenePass
;
// render target for the original scene
106
vtkTextureObject
*
BlurPass1
;
// render target for vertical blur
107
vtkTextureObject
*
BlurPass2
;
// render target for horizontal blur
108
109
// Shader programs
110
vtkOpenGLHelper
*
BlurProgram
;
111
vtkOpenGLHelper
*
UpscaleProgram
;
112
113
// Default value of 3.0 gives a bright outline with a fading edge
114
float
OutlineIntensity = 3.0f;
115
116
private
:
117
vtkOutlineGlowPass
(
const
vtkOutlineGlowPass
&) =
delete
;
118
void
operator=(
const
vtkOutlineGlowPass
&) =
delete
;
119
};
120
121
#endif
/* vtkOutlineGlowPass_h */
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition
vtkImageProcessingPass.h:39
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:185
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:31
vtkOutlineGlowPass
Renders a glowing outline using a image processing pass.
Definition
vtkOutlineGlowPass.h:64
vtkOutlineGlowPass::BlurPass2
vtkTextureObject * BlurPass2
Definition
vtkOutlineGlowPass.h:107
vtkOutlineGlowPass::UpscaleProgram
vtkOpenGLHelper * UpscaleProgram
Definition
vtkOutlineGlowPass.h:111
vtkOutlineGlowPass::~vtkOutlineGlowPass
~vtkOutlineGlowPass() override
Destructor.
vtkOutlineGlowPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition
vtkOutlineGlowPass.h:110
vtkOutlineGlowPass::New
static vtkOutlineGlowPass * New()
vtkOutlineGlowPass::vtkOutlineGlowPass
vtkOutlineGlowPass()
Default constructor.
vtkOutlineGlowPass::BlurPass1
vtkTextureObject * BlurPass1
Definition
vtkOutlineGlowPass.h:106
vtkOutlineGlowPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkOutlineGlowPass::ScenePass
vtkTextureObject * ScenePass
Definition
vtkOutlineGlowPass.h:105
vtkOutlineGlowPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkOutlineGlowPass.h:104
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:41
vtkTextureObject
abstracts an OpenGL texture object.
Definition
vtkTextureObject.h:44
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:39
vtkImageProcessingPass.h
Generated on Sat Dec 14 2024 00:00:00 for VTK by
1.12.0