VTK
vtkOSPRayLightNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayLightNode.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 =========================================================================*/
25 #ifndef vtkOSPRayLightNode_h
26 #define vtkOSPRayLightNode_h
27 
28 #include "vtkRenderingOSPRayModule.h" // For export macro
29 #include "vtkLightNode.h"
30 
33 class vtkLight;
34 
35 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayLightNode :
36  public vtkLightNode
37 {
38 public:
39  static vtkOSPRayLightNode* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  virtual void Render(bool prepass) override;
47 
49 
53  static void SetLightScale(double s);
54  static double GetLightScale();
56 
57  //state beyond rendering core...
58 
64  static vtkInformationIntegerKey* IS_AMBIENT();
65 
67 
70  static void SetIsAmbient(int, vtkLight *);
71  static int GetIsAmbient(vtkLight *);
73 
78  static vtkInformationDoubleKey* RADIUS();
79 
81 
84  static void SetRadius(double, vtkLight *);
85  static double GetRadius(vtkLight *);
87 
88 protected:
91 
92 private:
93  vtkOSPRayLightNode(const vtkOSPRayLightNode&) = delete;
94  void operator=(const vtkOSPRayLightNode&) = delete;
95 
96  static double LightScale;
97 };
98 
99 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkViewNode specialized for vtkLights
Definition: vtkLightNode.h:31
a simple class to control print indentation
Definition: vtkIndent.h:39
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:62
static vtkLightNode * New()
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:67
Key for double values in vtkInformation.
links vtkLights to OSPRay