VTK  9.0.3
vtkOpenGLImageAlgorithmHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLImageAlgorithmHelper.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 =========================================================================*/
22 #ifndef vtkOpenGLImageAlgorithmHelper_h
23 #define vtkOpenGLImageAlgorithmHelper_h
24 
25 #include "vtkObject.h"
26 #include "vtkRenderingOpenGL2Module.h" // For export macro
27 
28 #include "vtkOpenGLHelper.h" // used for ivars
29 #include "vtkSmartPointer.h" // for ivar
30 
32 class vtkRenderWindow;
33 class vtkImageData;
34 class vtkDataArray;
35 
37 {
38 public:
39  virtual void InitializeShaderUniforms(vtkShaderProgram* /* program */) {}
40  virtual void UpdateShaderUniforms(vtkShaderProgram* /* program */, int /* zExtent */) {}
43 
44 private:
46  void operator=(const vtkOpenGLImageAlgorithmCallback&) = delete;
47 };
48 
49 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageAlgorithmHelper : public vtkObject
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57  vtkImageData* outData, int outExt[6], const char* vertexCode, const char* fragmentCode,
58  const char* geometryCode);
59 
64 
65 protected:
68 
71 
72 private:
74  void operator=(const vtkOpenGLImageAlgorithmHelper&) = delete;
75 };
76 
77 #endif
78 
79 // VTK-HeaderTest-Exclude: vtkOpenGLImageAlgorithmHelper.h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:54
virtual void InitializeShaderUniforms(vtkShaderProgram *)
virtual void UpdateShaderUniforms(vtkShaderProgram *, int)
Help image algorithms use the GPU.
vtkSmartPointer< vtkOpenGLRenderWindow > RenderWindow
static vtkOpenGLImageAlgorithmHelper * New()
~vtkOpenGLImageAlgorithmHelper() override
void SetRenderWindow(vtkRenderWindow *renWin)
Set the render window to get the OpenGL resources from.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Execute(vtkOpenGLImageAlgorithmCallback *cb, vtkImageData *inImage, vtkDataArray *inData, vtkImageData *outData, int outExt[6], const char *vertexCode, const char *fragmentCode, const char *geometryCode)
OpenGL rendering window.
create a window for renderers to draw into
The ShaderProgram uses one or more Shader objects.