VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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
=========================================================================*/
62
#ifndef __vtkSobelGradientMagnitudePass_h
63
#define __vtkSobelGradientMagnitudePass_h
64
65
#include "
vtkImageProcessingPass.h
"
66
67
class
vtkOpenGLRenderWindow
;
68
class
vtkDepthPeelingPassLayerList;
// Pimpl
69
class
vtkShaderProgram2
;
70
class
vtkShader2
;
71
class
vtkFrameBufferObject
;
72
class
vtkTextureObject
;
73
74
class
VTK_RENDERING_EXPORT
vtkSobelGradientMagnitudePass
:
public
vtkImageProcessingPass
75
{
76
public
:
77
static
vtkSobelGradientMagnitudePass
*
New
();
78
vtkTypeMacro(
vtkSobelGradientMagnitudePass
,
vtkImageProcessingPass
);
79
void
PrintSelf
(ostream& os,
vtkIndent
indent);
80
81
//BTX
83
85
virtual
void
Render
(
const
vtkRenderState
*s);
86
//ETX
88
91
void
ReleaseGraphicsResources
(
vtkWindow
*w);
92
93
protected
:
95
vtkSobelGradientMagnitudePass
();
96
98
virtual
~
vtkSobelGradientMagnitudePass
();
99
101
102
vtkFrameBufferObject
*
FrameBufferObject
;
103
vtkTextureObject
*
Pass1
;
// render target for the scene
104
vtkTextureObject
*
Gx1
;
// render target 0 for the first shader
105
vtkTextureObject
*
Gy1
;
// render target 1 for the first shader
106
vtkShaderProgram2
*
Program1
;
// shader to compute Gx1 and Gy1
107
vtkShaderProgram2
*
Program2
;
// shader to compute |G| from Gx1 and Gy1
109
110
private
:
111
vtkSobelGradientMagnitudePass
(
const
vtkSobelGradientMagnitudePass
&);
// Not implemented.
112
void
operator=(
const
vtkSobelGradientMagnitudePass
&);
// Not implemented.
113
};
114
115
#endif
Generated on Thu Mar 13 2014 08:10:35 for VTK by
1.8.1.2