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
14
#include "
visualization/rendering/RendererHandle.h
"
15
16
namespace
cloudViewer
{
17
18
namespace
visualization {
19
namespace
rendering {
20
21
struct
LightDescription
{
22
enum
eLightType
{
POINT
,
SPOT
,
DIRECTIONAL
};
23
24
eLightType
type
;
25
float
intensity
;
26
float
falloff
;
27
// Spot lights only
28
float
light_cone_inner
;
29
// Spot lights only
30
float
light_cone_outer
;
31
Eigen::Vector3f
color
;
32
Eigen::Vector3f
direction
;
33
Eigen::Vector3f
position
;
34
bool
cast_shadows
;
35
36
Json::Value
custom_attributes
;
37
38
LightDescription
()
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
M_PI
constexpr double M_PI
Pi.
Definition:
CVConst.h:19
RendererHandle.h
cloudViewer
Generic file read and write utility for python interface.
Definition:
AutoSegmentationTools.h:16
cloudViewer::visualization::rendering::LightDescription
Definition:
RendererStructs.h:21
cloudViewer::visualization::rendering::LightDescription::direction
Eigen::Vector3f direction
Definition:
RendererStructs.h:32
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::custom_attributes
Json::Value custom_attributes
Definition:
RendererStructs.h:36
cloudViewer::visualization::rendering::LightDescription::intensity
float intensity
Definition:
RendererStructs.h:25
cloudViewer::visualization::rendering::LightDescription::type
eLightType type
Definition:
RendererStructs.h:24
cloudViewer::visualization::rendering::LightDescription::color
Eigen::Vector3f color
Definition:
RendererStructs.h:31
cloudViewer::visualization::rendering::LightDescription::eLightType
eLightType
Definition:
RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription::DIRECTIONAL
@ DIRECTIONAL
Definition:
RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription::SPOT
@ SPOT
Definition:
RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription::POINT
@ POINT
Definition:
RendererStructs.h:22
cloudViewer::visualization::rendering::LightDescription::light_cone_inner
float light_cone_inner
Definition:
RendererStructs.h:28
cloudViewer::visualization::rendering::LightDescription::light_cone_outer
float light_cone_outer
Definition:
RendererStructs.h:30
cloudViewer::visualization::rendering::LightDescription::position
Eigen::Vector3f position
Definition:
RendererStructs.h:33
cloudViewer::visualization::rendering::LightDescription::falloff
float falloff
Definition:
RendererStructs.h:26
libs
cloudViewer
visualization
rendering
RendererStructs.h
Generated on Wed Jan 28 2026 09:00:57 for ACloudViewer by
1.9.1