Open3D (C++ API)  0.18.0+601516a
ProgressBar.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 
11 
12 namespace open3d {
13 namespace visualization {
14 namespace gui {
15 
16 class ProgressBar : public Widget {
17 public:
18  ProgressBar();
19  ~ProgressBar();
20 
22  void SetValue(float value);
23  float GetValue() const;
24 
26  const Constraints& constraints) const override;
27 
28  Widget::DrawResult Draw(const DrawContext& context) override;
29 
30 private:
31  struct Impl;
32  std::unique_ptr<Impl> impl_;
33 };
34 
35 } // namespace gui
36 } // namespace visualization
37 } // namespace open3d
ImGuiContext * context
Definition: Window.cpp:76
Definition: ProgressBar.h:16
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: ProgressBar.cpp:34
void SetValue(float value)
ProgressBar values ranges from 0.0 (incomplete) to 1.0 (complete)
Definition: ProgressBar.cpp:30
float GetValue() const
Definition: ProgressBar.cpp:32
Widget::DrawResult Draw(const DrawContext &context) override
Definition: ProgressBar.cpp:40
~ProgressBar()
Definition: ProgressBar.cpp:27
ProgressBar()
Definition: ProgressBar.cpp:25
Definition: Widget.h:49
DrawResult
Definition: Widget.h:95
Definition: PinholeCameraIntrinsic.cpp:16
Definition: ProgressBar.cpp:21