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 =========================================================================*/
22 #ifndef vtkOpenGLLight_h
23 #define vtkOpenGLLight_h
24 
25 #include "vtkRenderingOpenGL2Module.h" // For export macro
26 #include "vtkLight.h"
27 
28 class vtkOpenGLRenderer;
29 
30 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLLight : public vtkLight
31 {
32 public:
33  static vtkOpenGLLight *New();
34  vtkTypeMacro(vtkOpenGLLight, vtkLight);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  void Render(vtkRenderer *ren, int light_index) override;
41 
42 protected:
44  ~vtkOpenGLLight() override {}
45 
46 private:
47  vtkOpenGLLight(const vtkOpenGLLight&) = delete;
48  void operator=(const vtkOpenGLLight&) = delete;
49 };
50 
51 #endif
abstract specification for renderers
Definition: vtkRenderer.h:63
static vtkLight * New()
Create a light with the focal point at the origin and its position set to (0,0,1).
a simple class to control print indentation
Definition: vtkIndent.h:39
~vtkOpenGLLight() override
a virtual light for 3D rendering
Definition: vtkLight.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
OpenGL renderer.
virtual void Render(vtkRenderer *, int)
Abstract interface to renderer.
Definition: vtkLight.h:92
OpenGL light.