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 =========================================================================*/
62 #ifndef vtkSobelGradientMagnitudePass_h
63 #define vtkSobelGradientMagnitudePass_h
64 
65 #include "vtkRenderingOpenGL2Module.h" // For export macro
66 #include "vtkImageProcessingPass.h"
67 
69 class vtkDepthPeelingPassLayerList; // Pimpl
71 class vtkTextureObject;
72 namespace vtkgl
73 {
74 class CellBO;
75 }
76 
77 
78 class VTKRENDERINGOPENGL2_EXPORT vtkSobelGradientMagnitudePass : public vtkImageProcessingPass
79 {
80 public:
83  void PrintSelf(ostream& os, vtkIndent indent);
84 
85  //BTX
87 
89  virtual void Render(const vtkRenderState *s);
90  //ETX
92 
96 
97  protected:
100 
103 
105 
106  vtkFrameBufferObject *FrameBufferObject;
107  vtkTextureObject *Pass1; // render target for the scene
108  vtkTextureObject *Gx1; // render target 0 for the first shader
109  vtkTextureObject *Gy1; // render target 1 for the first shader
111 
112  // Structures for the various cell types we render.
113  vtkgl::CellBO *Program1; // shader to compute Gx1 and Gy1
114  vtkgl::CellBO *Program2; // shader to compute |G| from Gx1 and Gy1
115 
116  private:
118  void operator=(const vtkSobelGradientMagnitudePass&); // Not implemented.
119 };
120 
121 #endif
OpenGL rendering window.
void ReleaseGraphicsResources(vtkWindow *w)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
Convenient class for post-processing passes. render pass.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
Context in which a vtkRenderPass will render.
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
Implement a post-processing edge detection with a Sobel gradient magnitude render pass...
a simple class to control print indentation
Definition: vtkIndent.h:38
Definition: vtkgl.h:11267
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
GLdouble s
Definition: vtkgl.h:11594
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)