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
vtkLight.h
vtkLight
a virtual light for 3D rendering
Definition: vtkLight.h:63
vtkOpenGLLight::~vtkOpenGLLight
~vtkOpenGLLight() override
Definition: vtkOpenGLLight.h:44
vtkOpenGLLight::New
static vtkOpenGLLight * New()
vtkOpenGLLight::Render
void Render(vtkRenderer *ren, int light_index) override
Implement base class method.
vtkOpenGLLight
OpenGL light.
Definition: vtkOpenGLLight.h:31
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkOpenGLRenderer
OpenGL renderer.
Definition: vtkOpenGLRenderer.h:46
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkOpenGLLight::vtkOpenGLLight
vtkOpenGLLight()
Definition: vtkOpenGLLight.h:43
vtkOpenGLLight::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.