VTK
vtkLightingHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLightingHelper.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 =========================================================================*/
28 #ifndef __vtkLightingHelper_h
29 #define __vtkLightingHelper_h
30 
31 #include "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkObject.h"
33 #include "vtkShader2.h" // for vtkShader2Type
34 
35 class vtkShaderProgram2;
36 
37 class VTKRENDERINGOPENGL_EXPORT vtkLightingHelper : public vtkObject
38 {
39 public:
40  static vtkLightingHelper* New();
41  vtkTypeMacro(vtkLightingHelper, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
49  void Initialize(vtkShaderProgram2 *shader,
51  vtkGetObjectMacro(Shader, vtkShaderProgram2);
53 
56  void PrepareForRendering();
57 
58 //BTX
59 protected:
62 
63  void SetShader(vtkShaderProgram2 *shader);
65 
66 private:
67  vtkLightingHelper(const vtkLightingHelper&); // Not implemented.
68  void operator=(const vtkLightingHelper&); // Not implemented.
69 //ETX
70 };
71 
72 #endif