VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
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
=========================================================================*/
59
#ifndef vtkSobelGradientMagnitudePass_h
60
#define vtkSobelGradientMagnitudePass_h
61
62
#include "
vtkRenderingOpenGL2Module.h
"
// For export macro
63
#include "
vtkImageProcessingPass.h
"
64
65
class
vtkDepthPeelingPassLayerList;
// Pimpl
66
class
vtkFrameBufferObject
;
67
class
vtkOpenGLHelper
;
68
class
vtkOpenGLRenderWindow
;
69
class
vtkTextureObject
;
70
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);
78
79
//BTX
81
83
virtual
void
Render
(
const
vtkRenderState
*s);
84
//ETX
86
89
void
ReleaseGraphicsResources
(
vtkWindow
*w);
90
91
protected
:
93
vtkSobelGradientMagnitudePass
();
94
96
virtual
~
vtkSobelGradientMagnitudePass
();
97
99
100
vtkFrameBufferObject
*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
105
106
// Structures for the various cell types we render.
107
vtkOpenGLHelper
*
Program1
;
// shader to compute Gx1 and Gy1
108
vtkOpenGLHelper
*
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
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:40
vtkSobelGradientMagnitudePass::Program2
vtkOpenGLHelper * Program2
Definition:
vtkSobelGradientMagnitudePass.h:108
VTKRENDERINGOPENGL2_EXPORT
#define VTKRENDERINGOPENGL2_EXPORT
Definition:
vtkRenderingOpenGL2Module.h:15
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
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
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
vtkRenderingOpenGL2Module.h
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkSobelGradientMagnitudePass::Program1
vtkOpenGLHelper * Program1
Definition:
vtkSobelGradientMagnitudePass.h:107
vtkImageProcessingPass.h
vtkObject::New
static vtkObject * New()
vtkImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Generated on Wed Dec 16 2015 17:15:10 for VTK by
1.8.9.1