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 "vtkImageProcessingPass.h"
66 
68 class vtkDepthPeelingPassLayerList; // Pimpl
69 class vtkShaderProgram2;
70 class vtkShader2;
72 class vtkTextureObject;
73 
75 {
76 public:
79  void PrintSelf(ostream& os, vtkIndent indent);
80 
81  //BTX
83 
85  virtual void Render(const vtkRenderState *s);
86  //ETX
88 
92 
93  protected:
96 
99 
101 
103  vtkTextureObject *Pass1; // render target for the scene
104  vtkTextureObject *Gx1; // render target 0 for the first shader
105  vtkTextureObject *Gy1; // render target 1 for the first shader
106  vtkShaderProgram2 *Program1; // shader to compute Gx1 and Gy1
107  vtkShaderProgram2 *Program2; // shader to compute |G| from Gx1 and Gy1
109 
110  private:
112  void operator=(const vtkSobelGradientMagnitudePass&); // Not implemented.
113 };
114 
115 #endif