Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
visualization
rendering
RendererStructs.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.open3d.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 "
open3d/visualization/rendering/RendererHandle.h
"
15
16
namespace
open3d
{
17
18
namespace
geometry
{
19
class
Geometry3D
;
20
}
21
22
namespace
visualization
{
23
namespace
rendering
{
24
25
struct
LightDescription
{
26
enum
eLightType
{
POINT
,
SPOT
,
DIRECTIONAL
};
27
28
eLightType
type
;
29
float
intensity
;
30
float
falloff
;
31
// Spot lights only
32
float
light_cone_inner
;
33
// Spot lights only
34
float
light_cone_outer
;
35
Eigen::Vector3f
color
;
36
Eigen::Vector3f
direction
;
37
Eigen::Vector3f
position
;
38
bool
cast_shadows
;
39
40
Json::Value
custom_attributes
;
41
42
LightDescription
()
43
:
type
(
POINT
),
44
intensity
(10000),
45
falloff
(10),
46
light_cone_inner
(float(M_PI / 4.0)),
47
light_cone_outer
(float(M_PI / 2.0)),
48
color
(1.f, 1.f, 1.f),
49
direction
(0.f, 0.f, -1.f),
50
position
(0.f, 0.f, 0.f),
51
cast_shadows
(true) {}
52
};
53
54
}
// namespace rendering
55
}
// namespace visualization
56
}
// namespace open3d
RendererHandle.h
open3d::geometry::Geometry3D
The base geometry class for 3D geometries.
Definition
Geometry3D.h:28
open3d::geometry
Definition
BoundingVolume.cpp:19
open3d::visualization::rendering
Definition
ModelIO.h:15
open3d::visualization
Definition
ModelIO.h:14
open3d
Definition
PinholeCameraIntrinsic.cpp:16
open3d::visualization::rendering::LightDescription::color
Eigen::Vector3f color
Definition
RendererStructs.h:35
open3d::visualization::rendering::LightDescription::light_cone_inner
float light_cone_inner
Definition
RendererStructs.h:32
open3d::visualization::rendering::LightDescription::position
Eigen::Vector3f position
Definition
RendererStructs.h:37
open3d::visualization::rendering::LightDescription::falloff
float falloff
Definition
RendererStructs.h:30
open3d::visualization::rendering::LightDescription::direction
Eigen::Vector3f direction
Definition
RendererStructs.h:36
open3d::visualization::rendering::LightDescription::eLightType
eLightType
Definition
RendererStructs.h:26
open3d::visualization::rendering::LightDescription::POINT
@ POINT
Definition
RendererStructs.h:26
open3d::visualization::rendering::LightDescription::SPOT
@ SPOT
Definition
RendererStructs.h:26
open3d::visualization::rendering::LightDescription::DIRECTIONAL
@ DIRECTIONAL
Definition
RendererStructs.h:26
open3d::visualization::rendering::LightDescription::cast_shadows
bool cast_shadows
Definition
RendererStructs.h:38
open3d::visualization::rendering::LightDescription::LightDescription
LightDescription()
Definition
RendererStructs.h:42
open3d::visualization::rendering::LightDescription::light_cone_outer
float light_cone_outer
Definition
RendererStructs.h:34
open3d::visualization::rendering::LightDescription::type
eLightType type
Definition
RendererStructs.h:28
open3d::visualization::rendering::LightDescription::intensity
float intensity
Definition
RendererStructs.h:29
open3d::visualization::rendering::LightDescription::custom_attributes
Json::Value custom_attributes
Definition
RendererStructs.h:40
Generated by
1.17.0