VTK  9.1.0
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
32class vtkRenderWindow;
33class vtkImageData;
34class vtkDataArray;
35
37{
38public:
39 virtual void InitializeShaderUniforms(vtkShaderProgram* /* program */) {}
40 virtual void UpdateShaderUniforms(vtkShaderProgram* /* program */, int /* zExtent */) {}
43
44private:
46 void operator=(const vtkOpenGLImageAlgorithmCallback&) = delete;
47};
48
49class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageAlgorithmHelper : public vtkObject
50{
51public:
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
65protected:
68
71
72private:
74 void operator=(const vtkOpenGLImageAlgorithmHelper&) = delete;
75};
76
77#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
virtual ~vtkOpenGLImageAlgorithmCallback()=default
virtual void InitializeShaderUniforms(vtkShaderProgram *)
virtual void UpdateShaderUniforms(vtkShaderProgram *, int)
Help image algorithms use the GPU.
vtkSmartPointer< vtkOpenGLRenderWindow > RenderWindow
~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.
static vtkOpenGLImageAlgorithmHelper * New()
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.
Hold a reference to a vtkObjectBase instance.