VTK
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 "vtkRenderingOpenGLModule.h" // For export macro
63 #include "vtkImageProcessingPass.h"
64 
66 class vtkDepthPeelingPassLayerList; // Pimpl
67 class vtkShaderProgram2;
68 class vtkShader2;
70 class vtkTextureObject;
71 
73 {
74 public:
77  void PrintSelf(ostream& os, vtkIndent indent);
78 
79  //BTX
81 
83  virtual void Render(const vtkRenderState *s);
84  //ETX
86 
90 
91  protected:
94 
97 
99 
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  vtkShaderProgram2 *Program1; // shader to compute Gx1 and Gy1
105  vtkShaderProgram2 *Program2; // shader to compute |G| from Gx1 and Gy1
107 
108  private:
110  void operator=(const vtkSobelGradientMagnitudePass&); // Not implemented.
111 };
112 
113 #endif
OpenGL rendering window.
GLSL Shader.
Definition: vtkShader2.h:61
void ReleaseGraphicsResources(vtkWindow *w)
Convenient class for post-processing passes. render pass.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
Context in which a vtkRenderPass will render.
GLSL Program.
Implement a post-processing edge detection with a Sobel gradient magnitude render pass...
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)