ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
RendererStructs.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <json/json.h>
11 
12 #include <Eigen/Geometry>
13 
15 
16 namespace cloudViewer {
17 
18 namespace visualization {
19 namespace rendering {
20 
23 
25  float intensity;
26  float falloff;
27  // Spot lights only
29  // Spot lights only
31  Eigen::Vector3f color;
32  Eigen::Vector3f direction;
33  Eigen::Vector3f position;
35 
37 
39  : type(POINT),
40  intensity(10000),
41  falloff(10),
42  light_cone_inner(float(M_PI / 4.0)),
43  light_cone_outer(float(M_PI / 2.0)),
44  color(1.f, 1.f, 1.f),
45  direction(0.f, 0.f, -1.f),
46  position(0.f, 0.f, 0.f),
47  cast_shadows(true) {}
48 };
49 
50 } // namespace rendering
51 } // namespace visualization
52 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
M_PI
constexpr double M_PI
Pi.
Definition: CVConst.h:19
cloudViewer::visualization::rendering::LightDescription::position
Eigen::Vector3f position
Definition: RendererStructs.h:33
cloudViewer::visualization::rendering::LightDescription::falloff
float falloff
Definition: RendererStructs.h:26
cloudViewer::visualization::rendering::LightDescription::type
eLightType type
Definition: RendererStructs.h:24
RendererHandle.h
cloudViewer::visualization::rendering::LightDescription::color
Eigen::Vector3f color
Definition: RendererStructs.h:31
cloudViewer::visualization::rendering::LightDescription::DIRECTIONAL
@ DIRECTIONAL
Definition: RendererStructs.h:22
float
float
Definition: my_point_types.h:154
cloudViewer::visualization::rendering::LightDescription::light_cone_outer
float light_cone_outer
Definition: RendererStructs.h:30
cloudViewer::visualization::rendering::LightDescription::eLightType
eLightType
Definition: RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription::custom_attributes
Json::Value custom_attributes
Definition: RendererStructs.h:36
cloudViewer::visualization::rendering::LightDescription::POINT
@ POINT
Definition: RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription::LightDescription
LightDescription()
Definition: RendererStructs.h:38
cloudViewer::visualization::rendering::LightDescription::cast_shadows
bool cast_shadows
Definition: RendererStructs.h:34
cloudViewer::visualization::rendering::LightDescription::direction
Eigen::Vector3f direction
Definition: RendererStructs.h:32
cloudViewer::visualization::rendering::LightDescription::SPOT
@ SPOT
Definition: RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription
Definition: RendererStructs.h:21
cloudViewer::visualization::rendering::LightDescription::light_cone_inner
float light_cone_inner
Definition: RendererStructs.h:28
Value
static vtkPVTrivialProducerStaticInternal Value
Definition: vtkDistributedTrivialProducer.cxx:65
cloudViewer::visualization::rendering::LightDescription::intensity
float intensity
Definition: RendererStructs.h:25