VTK
9.0.1
Rendering
RayTracing
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 "
vtkLightNode.h
"
26
#include "vtkRenderingRayTracingModule.h"
// For export macro
27
28
#include "
RTWrapper/RTWrapper.h
"
// for handle types
29
30
#include <string>
// for std::string
31
32
class
vtkInformationDoubleKey
;
33
class
vtkInformationIntegerKey
;
34
class
vtkLight
;
35
class
vtkOSPRayRendererNode
;
36
37
class
VTKRENDERINGRAYTRACING_EXPORT
vtkOSPRayLightNode
:
public
vtkLightNode
38
{
39
public
:
40
static
vtkOSPRayLightNode
*
New
();
41
vtkTypeMacro(
vtkOSPRayLightNode
,
vtkLightNode
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
43
47
virtual
void
Render
(
bool
prepass)
override
;
48
50
54
static
void
SetLightScale(
double
s);
55
static
double
GetLightScale();
57
58
// state beyond rendering core...
59
65
static
vtkInformationIntegerKey
* IS_AMBIENT();
66
68
71
static
void
SetIsAmbient(
int
,
vtkLight
*);
72
static
int
GetIsAmbient(
vtkLight
*);
74
79
static
vtkInformationDoubleKey
* RADIUS();
80
82
85
static
void
SetRadius(
double
,
vtkLight
*);
86
static
double
GetRadius(
vtkLight
*);
88
89
protected
:
90
vtkOSPRayLightNode
();
91
~
vtkOSPRayLightNode
()
override
;
92
93
private
:
94
vtkOSPRayLightNode
(
const
vtkOSPRayLightNode
&) =
delete
;
95
void
operator=(
const
vtkOSPRayLightNode
&) =
delete
;
96
97
static
double
LightScale;
98
void
* OLight;
99
};
100
101
#endif
vtkOSPRayRendererNode
links vtkRenderers to OSPRay
Definition:
vtkOSPRayRendererNode.h:45
vtkOSPRayLightNode
links vtkLights to OSPRay
Definition:
vtkOSPRayLightNode.h:37
vtkLight
a virtual light for 3D rendering
Definition:
vtkLight.h:56
vtkLightNode
vtkViewNode specialized for vtkLights
Definition:
vtkLightNode.h:28
vtkLightNode::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationDoubleKey
Key for double values in vtkInformation.
Definition:
vtkInformationDoubleKey.h:31
vtkLightNode.h
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition:
vtkInformationIntegerKey.h:31
RTWrapper.h
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkViewNode::Render
virtual void Render(bool)
Makes calls to make self visible.
Definition:
vtkViewNode.h:63
vtkLightNode::New
static vtkLightNode * New()
Generated on Thu Jun 25 2020 08:31:01 for VTK by
1.8.17