14 #include <IJsonConvertibleIO.h>
20 namespace visualization {
25 std::shared_ptr<visualization::RenderOption>>
26 renderoption(m,
"RenderOption",
27 "Defines rendering options for visualizer.");
28 py::detail::bind_default_constructor<visualization::RenderOption>(
33 return std::string(
"RenderOption");
41 "Function to load visualization::RenderOption from a JSON "
50 "Function to save visualization::RenderOption to a JSON "
56 "float numpy array of size ``(3,)``: Background RGB color.")
58 "bool: Whether to turn on Phong lighting.")
59 .def_readwrite(
"point_size",
61 "float: Point size for ``PointCloud``.")
62 .def_readwrite(
"line_width",
64 "float: Line width for ``LineSet``.")
65 .def_readwrite(
"point_show_normal",
67 "bool: Whether to show normal for ``PointCloud``.")
68 .def_readwrite(
"show_coordinate_frame",
70 "bool: Whether to show coordinate frame.")
72 "mesh_show_back_face",
74 "bool: Whether to show back faces for ``TriangleMesh``.")
76 "mesh_show_wireframe",
78 "bool: Whether to show wireframe for ``TriangleMesh``.")
79 .def_readwrite(
"point_color_option",
81 "``PointColorOption``: Point color option for "
83 .def_readwrite(
"mesh_shade_option",
85 "``MeshShadeOption``: Mesh shading option for "
90 "``MeshColorOption``: Color option for ``TriangleMesh``.");
92 {{
"filename",
"Path to file."}});
94 {{
"filename",
"Path to file."}});
98 py::native_enum<visualization::RenderOption::PointColorOption>
99 enum_point_color_option(
100 m,
"PointColorOption",
"enum.Enum",
101 "Enum class for point color for ``PointCloud``.");
102 enum_point_color_option
107 .value(
"XCoordinate",
109 .value(
"YCoordinate",
111 .value(
"ZCoordinate",
119 py::native_enum<visualization::RenderOption::MeshShadeOption>
120 enum_mesh_shade_option(
121 m,
"MeshShadeOption",
"enum.Enum",
122 "Enum class for mesh shading for ``TriangleMesh``.");
123 enum_mesh_shade_option
132 py::native_enum<visualization::RenderOption::MeshColorOption>
133 enum_mesh_clor_option(m,
"MeshColorOption",
"enum.Enum",
134 "Enum class for color for ``TriangleMesh``.");
135 enum_mesh_clor_option
139 .value(
"XCoordinate",
141 .value(
"YCoordinate",
143 .value(
"ZCoordinate",
Defines rendering options for visualizer.
bool mesh_show_back_face_
Whether to show back faces for TriangleMesh.
Eigen::Vector3d background_color_
Background RGB color.
MeshColorOption mesh_color_option_
Color option for TriangleMesh.
bool point_show_normal_
Whether to show normal for PointCloud.
double point_size_
Point size for PointCloud.
double line_width_
Line width for LineSet.
MeshShadeOption mesh_shade_option_
Mesh shading option for TriangleMesh.
bool show_coordinate_frame_
Whether to show coordinate frame.
bool light_on_
Whether to turn on Phong lighting.
PointColorOption point_color_option_
Point color option for PointCloud.
bool mesh_show_wireframe_
void ClassMethodDocInject(py::module &pybind_module, const std::string &class_name, const std::string &function_name, const std::unordered_map< std::string, std::string > &map_parameter_body_docs)
bool WriteIJsonConvertible(const std::string &filename, const cloudViewer::utility::IJsonConvertible &object)
bool ReadIJsonConvertible(const std::string &filename, cloudViewer::utility::IJsonConvertible &object)
static const std::string path
void pybind_renderoption(py::module &m)
void pybind_renderoption_method(py::module &m)
Generic file read and write utility for python interface.