ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
gui.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 
11 
12 namespace cloudViewer {
13 namespace geometry {
14 class Image;
15 }
16 
17 namespace visualization {
18 namespace rendering {
19 class CloudViewerScene;
20 }
21 
22 namespace gui {
23 
24 void InitializeForPython(std::string resource_path = "", bool headless = false);
25 std::shared_ptr<geometry::Image> RenderToImageWithoutWindow(
26  rendering::CloudViewerScene *scene, int width, int height);
27 std::shared_ptr<geometry::Image> RenderToDepthImageWithoutWindow(
28  rendering::CloudViewerScene *scene,
29  int width,
30  int height,
31  bool z_in_view_space = false);
32 
33 void pybind_gui(py::module &m);
34 
35 void pybind_gui_events(py::module &m);
36 void pybind_gui_classes(py::module &m);
37 
38 } // namespace gui
39 } // namespace visualization
40 } // namespace cloudViewer
int width
int height
void pybind_gui_events(py::module &m)
Definition: events.cpp:19
std::shared_ptr< geometry::Image > RenderToImageWithoutWindow(rendering::CloudViewerScene *scene, int width, int height)
Definition: gui.cpp:158
void pybind_gui(py::module &m)
std::shared_ptr< geometry::Image > RenderToDepthImageWithoutWindow(rendering::CloudViewerScene *scene, int width, int height, bool z_in_view_space)
Definition: gui.cpp:165
void pybind_gui_classes(py::module &m_gui)
Definition: gui.cpp:309
void InitializeForPython(std::string resource_path, bool headless)
Definition: gui.cpp:136
Generic file read and write utility for python interface.