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=========================================================================*/
63#ifndef vtkSobelGradientMagnitudePass_h
64#define vtkSobelGradientMagnitudePass_h
65
66#include "vtkRenderingOpenGLModule.h" // For export macro
68
70class vtkDepthPeelingPassLayerList; // Pimpl
72class vtkShader2;
75
76class VTKRENDERINGOPENGL_EXPORT vtkSobelGradientMagnitudePass : public vtkImageProcessingPass
77{
78public:
81 void PrintSelf(ostream& os, vtkIndent indent);
82
87 virtual void Render(const vtkRenderState *s);
88
95
96 protected:
101
106
111 vtkTextureObject *Pass1; // render target for the scene
112 vtkTextureObject *Gx1; // render target 0 for the first shader
113 vtkTextureObject *Gy1; // render target 1 for the first shader
114 vtkShaderProgram2 *Program1; // shader to compute Gx1 and Gy1
115 vtkShaderProgram2 *Program2; // shader to compute |G| from Gx1 and Gy1
116
117 private:
119 void operator=(const vtkSobelGradientMagnitudePass&) VTK_DELETE_FUNCTION;
120};
121
122#endif
internal class which encapsulates OpenGL frame buffer object.
Convenient class for post-processing passes.
a simple class to control print indentation
Definition: vtkIndent.h:40
OpenGL rendering window.
Context in which a vtkRenderPass will render.
GLSL Shader.
Definition: vtkShader2.h:63
Implement a post-processing edge detection with a Sobel gradient magnitude render pass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSobelGradientMagnitudePass()
Default constructor.
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
static vtkSobelGradientMagnitudePass * New()
virtual ~vtkSobelGradientMagnitudePass()
Destructor.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35