ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ProgressBar.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 namespace cloudViewer {
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 cloudViewer
Widget::DrawResult Draw(const DrawContext &context) override
Definition: ProgressBar.cpp:40
void SetValue(float value)
ProgressBar values ranges from 0.0 (incomplete) to 1.0 (complete)
Definition: ProgressBar.cpp:30
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: ProgressBar.cpp:34
ImGuiContext * context
Definition: Window.cpp:76
Generic file read and write utility for python interface.