statistics_dialog.h
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5  */
6 
7 #ifndef STATISTICS_DIALOG_H
8 #define STATISTICS_DIALOG_H
9 
10 #include <QDialog>
11 #include <QCloseEvent>
12 #include "PlotJuggler/plotdata.h"
13 #include "plotwidget.h"
14 
15 namespace Ui
16 {
17 class statistics_dialog;
18 }
19 
20 struct Statistics
21 {
22  size_t count = 0;
23  double min = 0;
24  double max = 0;
25  double mean_tot = 0;
26 };
27 
28 class StatisticsDialog : public QDialog
29 {
30  Q_OBJECT
31 
32 public:
33  explicit StatisticsDialog(PlotWidget* parent = nullptr);
35 
36  void update(Range range);
37 
38  void closeEvent(QCloseEvent* event);
39 
40  void setTitle(QString title);
41 
42  bool calcVisibleRange();
43 
44 private:
45  Ui::statistics_dialog* ui;
46 
48 };
49 
50 #endif // STATISTICS_DIALOG_H
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
constexpr auto count() -> size_t
Definition: core.h:1050
Ui::statistics_dialog * ui
PlotWidget * _parent


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:53