Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
visualization
visualizer
RenderOptionWithEditing.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 <Eigen/Core>
11
12
#include "
open3d/visualization/visualizer/RenderOption.h
"
13
14
namespace
open3d
{
15
namespace
visualization
{
16
17
class
RenderOptionWithEditing
:
public
RenderOption
{
18
public
:
19
static
const
double
PICKER_SPHERE_SIZE_MIN
;
20
static
const
double
PICKER_SPHERE_SIZE_MAX
;
21
static
const
double
PICKER_SPHERE_SIZE_DEFAULT
;
22
23
public
:
24
RenderOptionWithEditing
() {}
25
~RenderOptionWithEditing
()
override
{}
26
27
public
:
28
bool
ConvertToJsonValue
(Json::Value &value)
const override
;
29
bool
ConvertFromJsonValue
(
const
Json::Value &value)
override
;
30
void
IncreaseSphereSize
() {
31
pointcloud_picker_sphere_size_
= std::min(
32
pointcloud_picker_sphere_size_
* 2.0,
PICKER_SPHERE_SIZE_MAX
);
33
}
34
void
DecreaseSphereSize
() {
35
pointcloud_picker_sphere_size_
= std::max(
36
pointcloud_picker_sphere_size_
* 0.5,
PICKER_SPHERE_SIZE_MIN
);
37
}
38
39
public
:
40
// Selection polygon
41
Eigen::Vector3d
selection_polygon_boundary_color_
=
42
Eigen::Vector3d(0.3, 0.3, 0.3);
43
Eigen::Vector3d
selection_polygon_mask_color_
=
44
Eigen::Vector3d(0.3, 0.3, 0.3);
45
double
selection_polygon_mask_alpha_
= 0.5;
46
47
// PointCloud Picker
48
double
pointcloud_picker_sphere_size_
=
PICKER_SPHERE_SIZE_DEFAULT
;
49
};
50
51
}
// namespace visualization
52
}
// namespace open3d
RenderOption.h
open3d::visualization::RenderOption::RenderOption
RenderOption()
Default Constructor.
Definition
RenderOption.h:89
open3d::visualization::RenderOptionWithEditing::PICKER_SPHERE_SIZE_MIN
static const double PICKER_SPHERE_SIZE_MIN
Definition
RenderOptionWithEditing.h:19
open3d::visualization::RenderOptionWithEditing::RenderOptionWithEditing
RenderOptionWithEditing()
Definition
RenderOptionWithEditing.h:24
open3d::visualization::RenderOptionWithEditing::pointcloud_picker_sphere_size_
double pointcloud_picker_sphere_size_
Definition
RenderOptionWithEditing.h:48
open3d::visualization::RenderOptionWithEditing::DecreaseSphereSize
void DecreaseSphereSize()
Definition
RenderOptionWithEditing.h:34
open3d::visualization::RenderOptionWithEditing::PICKER_SPHERE_SIZE_DEFAULT
static const double PICKER_SPHERE_SIZE_DEFAULT
Definition
RenderOptionWithEditing.h:21
open3d::visualization::RenderOptionWithEditing::PICKER_SPHERE_SIZE_MAX
static const double PICKER_SPHERE_SIZE_MAX
Definition
RenderOptionWithEditing.h:20
open3d::visualization::RenderOptionWithEditing::~RenderOptionWithEditing
~RenderOptionWithEditing() override
Definition
RenderOptionWithEditing.h:25
open3d::visualization::RenderOptionWithEditing::ConvertFromJsonValue
bool ConvertFromJsonValue(const Json::Value &value) override
Definition
RenderOptionWithEditing.cpp:38
open3d::visualization::RenderOptionWithEditing::IncreaseSphereSize
void IncreaseSphereSize()
Definition
RenderOptionWithEditing.h:30
open3d::visualization::RenderOptionWithEditing::selection_polygon_boundary_color_
Eigen::Vector3d selection_polygon_boundary_color_
Definition
RenderOptionWithEditing.h:41
open3d::visualization::RenderOptionWithEditing::selection_polygon_mask_color_
Eigen::Vector3d selection_polygon_mask_color_
Definition
RenderOptionWithEditing.h:43
open3d::visualization::RenderOptionWithEditing::ConvertToJsonValue
bool ConvertToJsonValue(Json::Value &value) const override
Definition
RenderOptionWithEditing.cpp:21
open3d::visualization::RenderOptionWithEditing::selection_polygon_mask_alpha_
double selection_polygon_mask_alpha_
Definition
RenderOptionWithEditing.h:45
open3d::visualization
Definition
ModelIO.h:14
open3d
Definition
PinholeCameraIntrinsic.cpp:16
Generated by
1.17.0