VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
Rendering
OpenGL
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 "vtkRenderingOpenGLModule.h"
// For export macro
66
#include "
vtkImageProcessingPass.h
"
67
68
class
vtkOpenGLRenderWindow
;
69
class
vtkDepthPeelingPassLayerList;
// Pimpl
70
class
vtkShaderProgram2
;
71
class
vtkShader2
;
72
class
vtkFrameBufferObject
;
73
class
vtkTextureObject
;
74
75
class
VTKRENDERINGOPENGL_EXPORT
vtkSobelGradientMagnitudePass
:
public
vtkImageProcessingPass
76
{
77
public
:
78
static
vtkSobelGradientMagnitudePass
*
New
();
79
vtkTypeMacro(
vtkSobelGradientMagnitudePass
,
vtkImageProcessingPass
);
80
void
PrintSelf
(ostream& os,
vtkIndent
indent);
81
82
//BTX
84
86
virtual
void
Render
(
const
vtkRenderState
*s);
87
//ETX
89
92
void
ReleaseGraphicsResources
(
vtkWindow
*w);
93
94
protected
:
96
vtkSobelGradientMagnitudePass
();
97
99
virtual
~
vtkSobelGradientMagnitudePass
();
100
102
103
vtkFrameBufferObject
*
FrameBufferObject
;
104
vtkTextureObject
*
Pass1
;
// render target for the scene
105
vtkTextureObject
*
Gx1
;
// render target 0 for the first shader
106
vtkTextureObject
*
Gy1
;
// render target 1 for the first shader
107
vtkShaderProgram2
*
Program1
;
// shader to compute Gx1 and Gy1
108
vtkShaderProgram2
*
Program2
;
// shader to compute |G| from Gx1 and Gy1
110
111
private
:
112
vtkSobelGradientMagnitudePass
(
const
vtkSobelGradientMagnitudePass
&);
// Not implemented.
113
void
operator=(
const
vtkSobelGradientMagnitudePass
&);
// Not implemented.
114
};
115
116
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:40
vtkShader2
GLSL Shader.
Definition:
vtkShader2.h:61
vtkSobelGradientMagnitudePass::Pass1
vtkTextureObject * Pass1
Definition:
vtkSobelGradientMagnitudePass.h:104
vtkSobelGradientMagnitudePass::Program2
vtkShaderProgram2 * Program2
Definition:
vtkSobelGradientMagnitudePass.h:108
vtkImageProcessingPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w)
vtkImageProcessingPass
Convenient class for post-processing passes. render pass.
Definition:
vtkImageProcessingPass.h:39
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:36
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:39
vtkSobelGradientMagnitudePass::Program1
vtkShaderProgram2 * Program1
Definition:
vtkSobelGradientMagnitudePass.h:107
vtkShaderProgram2
GLSL Program.
Definition:
vtkShaderProgram2.h:67
vtkSobelGradientMagnitudePass
Implement a post-processing edge detection with a Sobel gradient magnitude render pass...
Definition:
vtkSobelGradientMagnitudePass.h:75
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkSobelGradientMagnitudePass::FrameBufferObject
vtkFrameBufferObject * FrameBufferObject
Definition:
vtkSobelGradientMagnitudePass.h:103
vtkSobelGradientMagnitudePass::Gx1
vtkTextureObject * Gx1
Definition:
vtkSobelGradientMagnitudePass.h:105
vtkSobelGradientMagnitudePass::Gy1
vtkTextureObject * Gy1
Definition:
vtkSobelGradientMagnitudePass.h:106
vtkFrameBufferObject
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
Definition:
vtkFrameBufferObject.h:46
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:42
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
vtkObject::New
static vtkObject * New()
vtkImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageProcessingPass.h
Generated on Wed Dec 16 2015 17:15:10 for VTK by
1.8.9.1