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
32class vtkRenderWindow;
33class vtkImageData;
34class vtkDataArray;
35
37{
38public:
39 virtual void InitializeShaderUniforms(vtkShaderProgram * /* program */) {};
41 vtkShaderProgram * /* program */, int /* zExtent */) {};
44private:
46 void operator=(const vtkOpenGLImageAlgorithmCallback&) VTK_DELETE_FUNCTION;
47};
48
49class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageAlgorithmHelper : public vtkObject
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent);
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
69
70 protected:
73
76
77 private:
79 void operator=(const vtkOpenGLImageAlgorithmHelper&) VTK_DELETE_FUNCTION;
80};
81
82#endif
83
84// VTK-HeaderTest-Exclude: vtkOpenGLImageAlgorithmHelper.h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void InitializeShaderUniforms(vtkShaderProgram *)
virtual void UpdateShaderUniforms(vtkShaderProgram *, int)
Help image algorithms use the GPU.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkOpenGLRenderWindow > RenderWindow
void SetRenderWindow(vtkRenderWindow *renWin)
Set the render window to get the OpenGL resources from.
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.