Open3D (C++ API)  0.18.0+252c867
Dialog.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 
11 
12 namespace open3d {
13 namespace visualization {
14 namespace gui {
15 
16 class Window;
17 
19 class Dialog : public Widget {
20  using Super = Widget;
21 
22 public:
23  explicit Dialog(const char* title);
24  virtual ~Dialog();
25 
27  const Constraints& constraints) const override;
28  void Layout(const LayoutContext& context) override;
29  DrawResult Draw(const DrawContext& context) override;
30 
31  virtual void OnWillShow();
32 
33 private:
34  struct Impl;
35  std::unique_ptr<Impl> impl_;
36 };
37 
38 } // namespace gui
39 } // namespace visualization
40 } // namespace open3d
ImGuiContext * context
Definition: Window.cpp:76
Base class for dialogs.
Definition: Dialog.h:19
virtual ~Dialog()
Definition: Dialog.cpp:25
Dialog(const char *title)
Definition: Dialog.cpp:23
DrawResult Draw(const DrawContext &context) override
Definition: Dialog.cpp:49
void Layout(const LayoutContext &context) override
Definition: Dialog.cpp:37
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: Dialog.cpp:27
virtual void OnWillShow()
Definition: Dialog.cpp:47
Definition: Widget.h:49
Widget()
Definition: Widget.cpp:34
DrawResult
Definition: Widget.h:95
Definition: PinholeCameraIntrinsic.cpp:16