VTK
dox/Rendering/OpenGL/vtkLightingHelper.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkLightingHelper.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00028 #ifndef __vtkLightingHelper_h
00029 #define __vtkLightingHelper_h
00030 
00031 #include "vtkRenderingOpenGLModule.h" // For export macro
00032 #include "vtkObject.h"
00033 #include "vtkShader2.h" // for vtkShader2Type
00034 
00035 class vtkShaderProgram2;
00036 
00037 class VTKRENDERINGOPENGL_EXPORT vtkLightingHelper : public vtkObject
00038 {
00039 public:
00040   static vtkLightingHelper* New();
00041   vtkTypeMacro(vtkLightingHelper, vtkObject);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00049   void Initialize(vtkShaderProgram2 *shader,
00050                   vtkShader2Type mode);
00051   vtkGetObjectMacro(Shader, vtkShaderProgram2);
00053 
00056   void PrepareForRendering();
00057 
00058 //BTX
00059 protected:
00060   vtkLightingHelper();
00061   ~vtkLightingHelper();
00062 
00063   void SetShader(vtkShaderProgram2 *shader);
00064   vtkShaderProgram2 *Shader;
00065 
00066 private:
00067   vtkLightingHelper(const vtkLightingHelper&); // Not implemented.
00068   void operator=(const vtkLightingHelper&); // Not implemented.
00069 //ETX
00070 };
00071 
00072 #endif