VTK  9.3.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 
57  static vtkInformationIntegerKey* IS_AMBIENT();
58 
60 
63  static void SetIsAmbient(int, vtkLight*);
64  static int GetIsAmbient(vtkLight*);
66 
71  static vtkInformationDoubleKey* RADIUS();
72 
74 
77  static void SetRadius(double, vtkLight*);
78  static double GetRadius(vtkLight*);
80 
81 protected:
83  ~vtkOSPRayLightNode() override;
84 
85 private:
86  vtkOSPRayLightNode(const vtkOSPRayLightNode&) = delete;
87  void operator=(const vtkOSPRayLightNode&) = delete;
88 
89  static double LightScale;
90  void* OLight;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #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:48
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