VTK  9.2.6
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=========================================================================*/
24
25#ifndef vtkOSPRayLightNode_h
26#define vtkOSPRayLightNode_h
27
28#include "vtkLightNode.h"
29#include "vtkRenderingRayTracingModule.h" // For export macro
30
31#include "RTWrapper/RTWrapper.h" // for handle types
32
33#include <string> // for std::string
34
37class vtkLight;
39
40class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayLightNode : public vtkLightNode
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
50 void Render(bool prepass) override;
51
53
57 static void SetLightScale(double s);
58 static double GetLightScale();
60
61 // state beyond rendering core...
62
69
71
74 static void SetIsAmbient(int, vtkLight*);
75 static int GetIsAmbient(vtkLight*);
77
83
85
88 static void SetRadius(double, vtkLight*);
89 static double GetRadius(vtkLight*);
91
92protected:
95
96private:
98 void operator=(const vtkOSPRayLightNode&) = delete;
99
100 static double LightScale;
101 void* OLight;
102};
103
104#endif
a simple class to control print indentation
Definition vtkIndent.h:40
Key for double values in vtkInformation.
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition vtkLight.h:60
static double GetRadius(vtkLight *)
Convenience method to set/get RADIUS on a vtkLight.
static vtkInformationDoubleKey * RADIUS()
The radius setting, when > 0.0, produces soft shadows in the path tracer.
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()
static vtkInformationIntegerKey * IS_AMBIENT()
When present on light, the light acts as an ambient source.
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