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 "vtkObject.h"
32 #include "vtkShader2.h" // for vtkShader2Type
33 
34 class vtkShaderProgram2;
35 
37 {
38 public:
39  static vtkLightingHelper* New();
40  vtkTypeMacro(vtkLightingHelper, vtkObject);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
48  void Initialize(vtkShaderProgram2 *shader,
50  vtkGetObjectMacro(Shader, vtkShaderProgram2);
52 
55  void PrepareForRendering();
56 
57 //BTX
58 protected:
61 
62  void SetShader(vtkShaderProgram2 *shader);
64 
65 private:
66  vtkLightingHelper(const vtkLightingHelper&); // Not implemented.
67  void operator=(const vtkLightingHelper&); // Not implemented.
68 //ETX
69 };
70 
71 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkShader2Type
Definition: vtkShader2.h:47
helper to assist in simulating lighting similar to default OpenGL pipeline.
GLSL Program.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_RENDERING_EXPORT
vtkShaderProgram2 * Shader
static vtkObject * New()