VTK  9.4.20241118
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
23VTK_ABI_NAMESPACE_BEGIN
26class vtkLight;
28
29class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayLightNode : public vtkLightNode
30{
31public:
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
59
61
64 static void SetIsAmbient(int, vtkLight*);
65 static int GetIsAmbient(vtkLight*);
67
74
76
79 static void SetRadius(double, vtkLight*);
80 static double GetRadius(vtkLight*);
82
83protected:
86
87private:
89 void operator=(const vtkOSPRayLightNode&) = delete;
90
91 static double LightScale;
92 void* OLight;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Key for double values in vtkInformation.
Key for integer values in vtkInformation.
vtkViewNode specialized for vtkLights
a virtual light for 3D rendering
Definition vtkLight.h:159
links vtkLights to OSPRay
static double GetRadius(vtkLight *)
Convenience method to set/get RADIUS on a vtkLight.
static int GetIsAmbient(vtkLight *)
Convenience method to set/get IS_AMBIENT on a vtkLight.
static void SetLightScale(double s)
A global multiplier to all ospray lights.
static vtkOSPRayLightNode * New()
void Render(bool prepass) override
Make ospray calls to render me.
static void SetRadius(double, vtkLight *)
Convenience method to set/get RADIUS on a vtkLight.
~vtkOSPRayLightNode() override
static void SetIsAmbient(int, vtkLight *)
Convenience method to set/get IS_AMBIENT on a vtkLight.
static double GetLightScale()
A global multiplier to all ospray lights.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
links vtkRenderers to OSPRay
static vtkInformationDoubleKey * RADIUS()
The radius setting, when > 0.0, produces soft shadows in the path tracer.
static vtkInformationIntegerKey * IS_AMBIENT()
When present on light, the light acts as an ambient source.