VTK  9.3.20240425
vtkOpenGLImageAlgorithmHelper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10#ifndef vtkOpenGLImageAlgorithmHelper_h
11#define vtkOpenGLImageAlgorithmHelper_h
12
13#include "vtkObject.h"
14#include "vtkRenderingOpenGL2Module.h" // For export macro
15
16#include "vtkOpenGLHelper.h" // used for ivars
17#include "vtkSmartPointer.h" // for ivar
18
19VTK_ABI_NAMESPACE_BEGIN
21class vtkRenderWindow;
22class vtkImageData;
23class vtkDataArray;
24
26{
27public:
28 virtual void InitializeShaderUniforms(vtkShaderProgram* /* program */) {}
29 virtual void UpdateShaderUniforms(vtkShaderProgram* /* program */, int /* zExtent */) {}
32
33private:
35 void operator=(const vtkOpenGLImageAlgorithmCallback&) = delete;
36};
37
38class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageAlgorithmHelper : public vtkObject
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46 vtkImageData* outData, int outExt[6], const char* vertexCode, const char* fragmentCode,
47 const char* geometryCode);
48
53
54protected:
57
60
61private:
63 void operator=(const vtkOpenGLImageAlgorithmHelper&) = delete;
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
abstract superclass for arrays of numeric data
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162
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.