VTK
9.4.20250102
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
OpenGL2
vtkSobelGradientMagnitudePass.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
51
#ifndef vtkSobelGradientMagnitudePass_h
52
#define vtkSobelGradientMagnitudePass_h
53
54
#include "
vtkImageProcessingPass.h
"
55
#include "vtkRenderingOpenGL2Module.h"
// For export macro
56
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
57
58
VTK_ABI_NAMESPACE_BEGIN
59
class
vtkDepthPeelingPassLayerList;
// Pimpl
60
class
vtkOpenGLFramebufferObject
;
61
class
vtkOpenGLHelper
;
62
class
vtkOpenGLRenderWindow
;
63
class
vtkTextureObject
;
64
65
class
VTKRENDERINGOPENGL2_EXPORT
VTK_MARSHALAUTO
vtkSobelGradientMagnitudePass
66
:
public
vtkImageProcessingPass
67
{
68
public
:
69
static
vtkSobelGradientMagnitudePass
*
New
();
70
vtkTypeMacro(
vtkSobelGradientMagnitudePass
,
vtkImageProcessingPass
);
71
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
72
77
void
Render
(
const
vtkRenderState
* s)
override
;
78
84
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
85
86
protected
:
90
vtkSobelGradientMagnitudePass
();
91
95
~vtkSobelGradientMagnitudePass
()
override
;
96
100
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
101
vtkTextureObject
*
Pass1
;
// render target for the scene
102
vtkTextureObject
*
Gx1
;
// render target 0 for the first shader
103
vtkTextureObject
*
Gy1
;
// render target 1 for the first shader
104
105
// Structures for the various cell types we render.
106
vtkOpenGLHelper
*
Program1
;
// shader to compute Gx1 and Gy1
107
vtkOpenGLHelper
*
Program2
;
// shader to compute |G| from Gx1 and Gy1
108
109
private
:
110
vtkSobelGradientMagnitudePass
(
const
vtkSobelGradientMagnitudePass
&) =
delete
;
111
void
operator=(
const
vtkSobelGradientMagnitudePass
&) =
delete
;
112
};
113
114
VTK_ABI_NAMESPACE_END
115
#endif
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition
vtkImageProcessingPass.h:29
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:174
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:64
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:30
vtkSobelGradientMagnitudePass
Implement a post-processing edge detection with a Sobel gradient magnitude render pass.
Definition
vtkSobelGradientMagnitudePass.h:67
vtkSobelGradientMagnitudePass::Program2
vtkOpenGLHelper * Program2
Definition
vtkSobelGradientMagnitudePass.h:107
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:106
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:100
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:102
vtkSobelGradientMagnitudePass::New
static vtkSobelGradientMagnitudePass * New()
vtkSobelGradientMagnitudePass::Gy1
vtkTextureObject * Gy1
Definition
vtkSobelGradientMagnitudePass.h:103
vtkSobelGradientMagnitudePass::Pass1
vtkTextureObject * Pass1
Definition
vtkSobelGradientMagnitudePass.h:101
vtkTextureObject
abstracts an OpenGL texture object.
Definition
vtkTextureObject.h:34
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:48
vtkImageProcessingPass.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Thu Jan 2 2025 09:04:23 for VTK by
1.9.7