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=========================================================================*/
60#ifndef vtkSobelGradientMagnitudePass_h
61#define vtkSobelGradientMagnitudePass_h
62
63#include "vtkRenderingOpenGL2Module.h" // For export macro
65
66class vtkDepthPeelingPassLayerList; // Pimpl
68class vtkOpenGLHelper;
71
72
73class VTKRENDERINGOPENGL2_EXPORT vtkSobelGradientMagnitudePass : public vtkImageProcessingPass
74{
75public:
78 void PrintSelf(ostream& os, vtkIndent indent);
79
84 virtual void Render(const vtkRenderState *s);
85
92
93 protected:
98
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
112 // Structures for the various cell types we render.
113 vtkOpenGLHelper *Program1; // shader to compute Gx1 and Gy1
114 vtkOpenGLHelper *Program2; // shader to compute |G| from Gx1 and Gy1
115
116 private:
118 void operator=(const vtkSobelGradientMagnitudePass&) VTK_DELETE_FUNCTION;
119};
120
121#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.
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.
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