VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
OpenGL2
vtkSobelGradientMagnitudePass.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSobelGradientMagnitudePass.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
=========================================================================*/
60
#ifndef vtkSobelGradientMagnitudePass_h
61
#define vtkSobelGradientMagnitudePass_h
62
63
#include "
vtkImageProcessingPass.h
"
64
#include "vtkRenderingOpenGL2Module.h"
// For export macro
65
66
class
vtkDepthPeelingPassLayerList;
// Pimpl
67
class
vtkOpenGLFramebufferObject
;
68
class
vtkOpenGLHelper
;
69
class
vtkOpenGLRenderWindow
;
70
class
vtkTextureObject
;
71
72
class
VTKRENDERINGOPENGL2_EXPORT
vtkSobelGradientMagnitudePass
:
public
vtkImageProcessingPass
73
{
74
public
:
75
static
vtkSobelGradientMagnitudePass
*
New
();
76
vtkTypeMacro(
vtkSobelGradientMagnitudePass
,
vtkImageProcessingPass
);
77
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
78
83
void
Render
(
const
vtkRenderState
* s)
override
;
84
90
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
91
92
protected
:
96
vtkSobelGradientMagnitudePass
();
97
101
~vtkSobelGradientMagnitudePass
()
override
;
102
106
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
107
vtkTextureObject
*
Pass1
;
// render target for the scene
108
vtkTextureObject
*
Gx1
;
// render target 0 for the first shader
109
vtkTextureObject
*
Gy1
;
// render target 1 for the first shader
110
111
// Structures for the various cell types we render.
112
vtkOpenGLHelper
*
Program1
;
// shader to compute Gx1 and Gy1
113
vtkOpenGLHelper
*
Program2
;
// shader to compute |G| from Gx1 and Gy1
114
115
private
:
116
vtkSobelGradientMagnitudePass
(
const
vtkSobelGradientMagnitudePass
&) =
delete
;
117
void
operator=(
const
vtkSobelGradientMagnitudePass
&) =
delete
;
118
};
119
120
#endif
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition:
vtkImageProcessingPass.h:39
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition:
vtkOpenGLFramebufferObject.h:182
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:31
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:93
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:41
vtkSobelGradientMagnitudePass
Implement a post-processing edge detection with a Sobel gradient magnitude render pass.
Definition:
vtkSobelGradientMagnitudePass.h:73
vtkSobelGradientMagnitudePass::Program2
vtkOpenGLHelper * Program2
Definition:
vtkSobelGradientMagnitudePass.h:113
vtkSobelGradientMagnitudePass::vtkSobelGradientMagnitudePass
vtkSobelGradientMagnitudePass()
Default constructor.
vtkSobelGradientMagnitudePass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkSobelGradientMagnitudePass::Program1
vtkOpenGLHelper * Program1
Definition:
vtkSobelGradientMagnitudePass.h:112
vtkSobelGradientMagnitudePass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkSobelGradientMagnitudePass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition:
vtkSobelGradientMagnitudePass.h:106
vtkSobelGradientMagnitudePass::~vtkSobelGradientMagnitudePass
~vtkSobelGradientMagnitudePass() override
Destructor.
vtkSobelGradientMagnitudePass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSobelGradientMagnitudePass::Gx1
vtkTextureObject * Gx1
Definition:
vtkSobelGradientMagnitudePass.h:108
vtkSobelGradientMagnitudePass::New
static vtkSobelGradientMagnitudePass * New()
vtkSobelGradientMagnitudePass::Gy1
vtkTextureObject * Gy1
Definition:
vtkSobelGradientMagnitudePass.h:109
vtkSobelGradientMagnitudePass::Pass1
vtkTextureObject * Pass1
Definition:
vtkSobelGradientMagnitudePass.h:107
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:60
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:36
vtkImageProcessingPass.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4