VTK
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 "vtkRenderingOpenGL2Module.h" // For export macro
26 #include "vtkObject.h"
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(
41  vtkShaderProgram * /* program */, int /* zExtent */) {};
44 private:
46  void operator=(const vtkOpenGLImageAlgorithmCallback&) = delete;
47 };
48 
49 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageAlgorithmHelper : public vtkObject
50 {
51 public:
52  static vtkOpenGLImageAlgorithmHelper *New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
56  void Execute(
58  vtkImageData *inImage, vtkDataArray *inData,
59  vtkImageData *outData, int outExt[6],
60  const char *vertexCode,
61  const char *fragmentCode,
62  const char *geometryCode
63  );
64 
68  void SetRenderWindow(vtkRenderWindow *renWin);
69 
70  protected:
73 
76 
77  private:
79  void operator=(const vtkOpenGLImageAlgorithmHelper&) = delete;
80 };
81 
82 #endif
83 
84 // VTK-HeaderTest-Exclude: vtkOpenGLImageAlgorithmHelper.h
OpenGL rendering window.
abstract base class for most VTK objects
Definition: vtkObject.h:59
Help image algorithms use the GPU.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkSmartPointer< vtkOpenGLRenderWindow > RenderWindow
create a window for renderers to draw into
virtual void InitializeShaderUniforms(vtkShaderProgram *)
virtual void UpdateShaderUniforms(vtkShaderProgram *, int)
The ShaderProgram uses one or more Shader objects.