VTK
dox/Rendering/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 "vtkObject.h"
00032 #include "vtkShader2.h" // for vtkShader2Type
00033 
00034 class vtkShaderProgram2;
00035 
00036 class VTK_RENDERING_EXPORT vtkLightingHelper : public vtkObject
00037 {
00038 public:
00039   static vtkLightingHelper* New();
00040   vtkTypeMacro(vtkLightingHelper, vtkObject);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00048   void Initialize(vtkShaderProgram2 *shader, 
00049                   vtkShader2Type mode);
00050   vtkGetObjectMacro(Shader, vtkShaderProgram2);
00052 
00055   void PrepareForRendering();
00056 
00057 //BTX
00058 protected:
00059   vtkLightingHelper();
00060   ~vtkLightingHelper();
00061 
00062   void SetShader(vtkShaderProgram2 *shader);
00063   vtkShaderProgram2 *Shader;
00064 
00065 private:
00066   vtkLightingHelper(const vtkLightingHelper&); // Not implemented.
00067   void operator=(const vtkLightingHelper&); // Not implemented.
00068 //ETX
00069 };
00070 
00071 #endif