plotjuggler_app
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
);
34
~
StatisticsDialog
();
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
47
PlotWidget
*
_parent
;
48
};
49
50
#endif // STATISTICS_DIALOG_H
PJ::Range
Definition:
plotdatabase.h:29
plotdata.h
Ui
Definition:
cheatsheet_dialog.h:6
update
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
plotwidget.h
Statistics
Definition:
statistics_dialog.h:20
count
constexpr auto count() -> size_t
Definition:
core.h:1050
StatisticsDialog
Definition:
statistics_dialog.h:28
StatisticsDialog::ui
Ui::statistics_dialog * ui
Definition:
statistics_dialog.h:45
StatisticsDialog::_parent
PlotWidget * _parent
Definition:
statistics_dialog.h:47
PlotWidget
Definition:
plotwidget.h:38
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:53