VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Builds
VTK
release
Utilities
Doxygen
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
=========================================================================*/
60
#ifndef vtkSobelGradientMagnitudePass_h
61
#define vtkSobelGradientMagnitudePass_h
62
63
#include "vtkRenderingOpenGLModule.h"
// For export macro
64
#include "
vtkImageProcessingPass.h
"
65
66
class
vtkOpenGLRenderWindow
;
67
class
vtkDepthPeelingPassLayerList;
// Pimpl
68
class
vtkShaderProgram2
;
69
class
vtkShader2
;
70
class
vtkFrameBufferObject
;
71
class
vtkTextureObject
;
72
73
class
VTKRENDERINGOPENGL_EXPORT
vtkSobelGradientMagnitudePass
:
public
vtkImageProcessingPass
74
{
75
public
:
76
static
vtkSobelGradientMagnitudePass
*
New
();
77
vtkTypeMacro(
vtkSobelGradientMagnitudePass
,
vtkImageProcessingPass
);
78
void
PrintSelf
(ostream& os,
vtkIndent
indent);
79
84
virtual
void
Render
(
const
vtkRenderState
*s);
85
91
void
ReleaseGraphicsResources
(
vtkWindow
*w);
92
93
protected
:
97
vtkSobelGradientMagnitudePass
();
98
102
virtual
~
vtkSobelGradientMagnitudePass
();
103
107
vtkFrameBufferObject
*
FrameBufferObject
;
108
vtkTextureObject
*
Pass1
;
// render target for the scene
109
vtkTextureObject
*
Gx1
;
// render target 0 for the first shader
110
vtkTextureObject
*
Gy1
;
// render target 1 for the first shader
111
vtkShaderProgram2
*
Program1
;
// shader to compute Gx1 and Gy1
112
vtkShaderProgram2
*
Program2
;
// shader to compute |G| from Gx1 and Gy1
113
114
private
:
115
vtkSobelGradientMagnitudePass
(
const
vtkSobelGradientMagnitudePass
&) VTK_DELETE_FUNCTION;
116
void
operator=(const
vtkSobelGradientMagnitudePass
&) VTK_DELETE_FUNCTION;
117
};
118
119
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:38
vtkShader2
GLSL Shader.
Definition:
vtkShader2.h:62
vtkSobelGradientMagnitudePass::Pass1
vtkTextureObject * Pass1
Definition:
vtkSobelGradientMagnitudePass.h:108
vtkSobelGradientMagnitudePass::Program2
vtkShaderProgram2 * Program2
Definition:
vtkSobelGradientMagnitudePass.h:112
vtkImageProcessingPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition:
vtkImageProcessingPass.h:40
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:37
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:40
vtkSobelGradientMagnitudePass::Program1
vtkShaderProgram2 * Program1
Definition:
vtkSobelGradientMagnitudePass.h:111
vtkShaderProgram2
GLSL Program.
Definition:
vtkShaderProgram2.h:68
vtkSobelGradientMagnitudePass
Implement a post-processing edge detection with a Sobel gradient magnitude render pass...
Definition:
vtkSobelGradientMagnitudePass.h:73
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkSobelGradientMagnitudePass::FrameBufferObject
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
Definition:
vtkSobelGradientMagnitudePass.h:107
vtkSobelGradientMagnitudePass::Gx1
vtkTextureObject * Gx1
Definition:
vtkSobelGradientMagnitudePass.h:109
vtkSobelGradientMagnitudePass::Gy1
vtkTextureObject * Gy1
Definition:
vtkSobelGradientMagnitudePass.h:110
vtkFrameBufferObject
internal class which encapsulates OpenGL frame buffer object.
Definition:
vtkFrameBufferObject.h:46
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:40
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageProcessingPass.h
Generated by
1.8.9.1