VTK  9.7.1
vtkOSPRayLightNode.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkOSPRayLightNode_h
14 #define vtkOSPRayLightNode_h
15 
16 #include "vtkLightNode.h"
17 #include "vtkRenderingRayTracingModule.h" // For export macro
18 
19 #include "RTWrapper/RTWrapper.h" // for handle types
20 
21 #include <string> // for std::string
22 
23 VTK_ABI_NAMESPACE_BEGIN
26 class vtkLight;
28 
29 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayLightNode : public vtkLightNode
30 {
31 public:
32  static vtkOSPRayLightNode* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
39  void Render(bool prepass) override;
40 
42 
46  static void SetLightScale(double s);
47  static double GetLightScale();
49 
50  // state beyond rendering core...
51 
58  static vtkInformationIntegerKey* IS_AMBIENT();
59 
61 
64  static void SetIsAmbient(int, vtkLight*);
65  static int GetIsAmbient(vtkLight*);
67 
73  static vtkInformationDoubleKey* RADIUS();
74 
76 
79  static void SetRadius(double, vtkLight*);
80  static double GetRadius(vtkLight*);
82 
83 protected:
85  ~vtkOSPRayLightNode() override;
86 
87 private:
88  vtkOSPRayLightNode(const vtkOSPRayLightNode&) = delete;
89  void operator=(const vtkOSPRayLightNode&) = delete;
90 
91  static double LightScale;
92  void* OLight;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #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:20
a simple class to control print indentation
Definition: vtkIndent.h:28
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:49
static vtkLightNode * New()
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:56
Key for double values in vtkInformation.
links vtkRenderers to OSPRay
links vtkLights to OSPRay