1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// Copyright (c) 2018-2024 www.open3d.org
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
#pragma once
#include "pybind/open3d_pybind.h"
namespace open3d {
namespace geometry {
class Image;
}
namespace visualization {
namespace rendering {
class Open3DScene;
}
namespace gui {
void InitializeForPython(std::string resource_path = "", bool headless = false);
std::shared_ptr<geometry::Image> RenderToImageWithoutWindow(
rendering::Open3DScene *scene, int width, int height);
std::shared_ptr<geometry::Image> RenderToDepthImageWithoutWindow(
rendering::Open3DScene *scene,
int width,
int height,
bool z_in_view_space = false);
void pybind_gui_declarations(py::module &m);
void pybind_gui_definitions(py::module &m);
void pybind_gui_events_declarations(py::module &m);
void pybind_gui_events_definitions(py::module &m);
} // namespace gui
} // namespace visualization
} // namespace open3d
|