Open3D (C++ API)  0.18.0+fcf98ee
Native.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 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)
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
Mode
Definition: FileDialog.h:26
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t int32_t int32_t int32_t k4a_color_control_mode_t default_mode mode
Definition: K4aPlugin.cpp:678
void SetNativeMenubar(void *menubar)
Definition: NativeMacOS.mm:131
void PostNativeExposeEvent(GLFWwindow *glfw_window)
Definition: NativeLinux.cpp:24
void ShowNativeAlert(const char *message)
Definition: NativeLinux.cpp:37
void MacTransformIntoApp()
Definition: NativeMacOS.mm:43
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:136
void * GetNativeDrawable(GLFWwindow *glfw_window)
Definition: NativeLinux.cpp:20
Definition: PinholeCameraIntrinsic.cpp:16