VTK
vtkOpenGLLight.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLLight.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 vtkOpenGLLight_h
23 #define vtkOpenGLLight_h
24 
25 #include "vtkRenderingOpenGLModule.h" // For export macro
26 #include "vtkLight.h"
27 
28 class vtkOpenGLRenderer;
29 
30 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLLight : public vtkLight
31 {
32 public:
33  static vtkOpenGLLight *New();
34  vtkTypeMacro(vtkOpenGLLight, vtkLight);
35  virtual void PrintSelf(ostream& os, vtkIndent indent);
36 
38  void Render(vtkRenderer *ren, int light_index);
39 
40 protected:
43 
44 private:
45  vtkOpenGLLight(const vtkOpenGLLight&); // Not implemented.
46  void operator=(const vtkOpenGLLight&); // Not implemented.
47 };
48 
49 #endif
abstract specification for renderers
Definition: vtkRenderer.h:62
static vtkLight * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
a virtual light for 3D rendering
Definition: vtkLight.h:60
void PrintSelf(ostream &os, vtkIndent indent)
OpenGL renderer.
virtual void Render(vtkRenderer *, int)
Definition: vtkLight.h:84
OpenGL light.