VTK  9.2.6
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
63#ifndef vtkSobelGradientMagnitudePass_h
64#define vtkSobelGradientMagnitudePass_h
65
67#include "vtkRenderingOpenGL2Module.h" // For export macro
68
69class vtkDepthPeelingPassLayerList; // Pimpl
71class vtkOpenGLHelper;
74
75class VTKRENDERINGOPENGL2_EXPORT vtkSobelGradientMagnitudePass : public vtkImageProcessingPass
76{
77public:
80 void PrintSelf(ostream& os, vtkIndent indent) override;
81
86 void Render(const vtkRenderState* s) override;
87
94
95protected:
100
105
110 vtkTextureObject* Pass1; // render target for the scene
111 vtkTextureObject* Gx1; // render target 0 for the first shader
112 vtkTextureObject* Gy1; // render target 1 for the first shader
113
114 // Structures for the various cell types we render.
115 vtkOpenGLHelper* Program1; // shader to compute Gx1 and Gy1
116 vtkOpenGLHelper* Program2; // shader to compute |G| from Gx1 and Gy1
117
118private:
120 void operator=(const vtkSobelGradientMagnitudePass&) = delete;
121};
122
123#endif
vtkImageProcessingPass()
Default constructor.
a simple class to control print indentation
Definition vtkIndent.h:40
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
Context in which a vtkRenderPass will render.
vtkSobelGradientMagnitudePass()
Default constructor.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
~vtkSobelGradientMagnitudePass() override
Destructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSobelGradientMagnitudePass * New()
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition vtkWindow.h:39