Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
visualization
gui
Native.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 <string>
11
#include <vector>
12
13
#include "
FileDialog.h
"
14
15
struct
GLFWwindow;
16
17
namespace
open3d
{
18
namespace
visualization
{
19
namespace
gui
{
20
21
void
*
GetNativeDrawable
(GLFWwindow* glfw_window);
22
// Note that Windows cannot post an expose event so it must draw immediately.
23
// Therefore this function cannot be called while drawing.
24
void
PostNativeExposeEvent
(GLFWwindow* glfw_window);
25
void
ShowNativeAlert
(
const
char
* message);
26
27
#ifdef __APPLE__
28
void
MacTransformIntoApp
();
29
void
SetNativeMenubar
(
void
* menubar);
30
#endif
// __APPLE_
31
32
#if defined(__APPLE__) || defined(_WIN32)
33
void
ShowNativeFileDialog
(
34
FileDialog::Mode
mode,
35
const
std::string& path,
36
const
std::vector<std::pair<std::string, std::string>>& filters,
37
std::function<
void
(
const
char
*)> on_ok,
38
std::function<
void
()> on_cancel);
39
#endif
// __APPLE__ || _WIN32
40
41
}
// namespace gui
42
}
// namespace visualization
43
}
// namespace open3d
FileDialog.h
open3d::visualization::gui::FileDialog::Mode
Mode
Definition
FileDialog.h:26
open3d::visualization::gui
Definition
Application.cpp:55
open3d::visualization::gui::SetNativeMenubar
void SetNativeMenubar(void *menubar)
Definition
NativeMacOS.mm:112
open3d::visualization::gui::PostNativeExposeEvent
void PostNativeExposeEvent(GLFWwindow *glfw_window)
Definition
NativeLinux.cpp:24
open3d::visualization::gui::ShowNativeAlert
void ShowNativeAlert(const char *message)
Definition
NativeLinux.cpp:37
open3d::visualization::gui::MacTransformIntoApp
void MacTransformIntoApp()
Definition
NativeMacOS.mm:24
open3d::visualization::gui::GetNativeDrawable
void * GetNativeDrawable(GLFWwindow *glfw_window)
Definition
NativeLinux.cpp:20
open3d::visualization::gui::ShowNativeFileDialog
void ShowNativeFileDialog(FileDialog::Mode type, const std::string &path, const std::vector< std::pair< std::string, std::string > > &filters, std::function< void(const char *)> on_ok, std::function< void()> on_cancel)
Definition
NativeMacOS.mm:117
open3d::visualization
Definition
ModelIO.h:14
open3d
Definition
PinholeCameraIntrinsic.cpp:16
Generated by
1.17.0