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 =========================================================================*/
22 #ifndef vtkOSPRayLightNode_h
23 #define vtkOSPRayLightNode_h
24 
25 #include "vtkRenderingOSPRayModule.h" // For export macro
26 #include "vtkLightNode.h"
27 
30 class vtkLight;
31 
32 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayLightNode :
33  public vtkLightNode
34 {
35 public:
36  static vtkOSPRayLightNode* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  virtual void Render(bool prepass) override;
44 
46 
50  static void SetLightScale(double s);
51  static double GetLightScale();
53 
54  //state beyond rendering core...
55 
61  static vtkInformationIntegerKey* IS_AMBIENT();
62 
64 
67  static void SetIsAmbient(int, vtkLight *);
68  static int GetIsAmbient(vtkLight *);
70 
75  static vtkInformationDoubleKey* RADIUS();
76 
78 
81  static void SetRadius(double, vtkLight *);
82  static double GetRadius(vtkLight *);
84 
85 protected:
88 
89 private:
90  vtkOSPRayLightNode(const vtkOSPRayLightNode&) = delete;
91  void operator=(const vtkOSPRayLightNode&) = delete;
92 
93  static double LightScale;
94 };
95 
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:28
a simple class to control print indentation
Definition: vtkIndent.h:33
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:56
static vtkLightNode * New()
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:64
Key for double values in vtkInformation.
links vtkLights to OSPRay