VTK
vtkOpenGLLight.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4 
5  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
21 #ifndef vtkOpenGLLight_h
22 #define vtkOpenGLLight_h
23 
24 #include "vtkRenderingOpenGL2Module.h" // For export macro
25 #include "vtkLight.h"
26 
27 class vtkOpenGLRenderer;
28 
29 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLLight : public vtkLight
30 {
31 public:
32  static vtkOpenGLLight *New();
33  vtkTypeMacro(vtkOpenGLLight, vtkLight);
34  virtual void PrintSelf(ostream& os, vtkIndent indent);
35 
37  void Render(vtkRenderer *ren, int light_index);
38 
39 protected:
42 
43 private:
44  vtkOpenGLLight(const vtkOpenGLLight&); // Not implemented.
45  void operator=(const vtkOpenGLLight&); // Not implemented.
46 };
47 
48 #endif
abstract specification for renderers
Definition: vtkRenderer.h:63
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.