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
double
mean_interval
= 0;
27
};
28
29
class
StatisticsDialog
:
public
QDialog
30
{
31
Q_OBJECT
32
33
public
:
34
explicit
StatisticsDialog
(
PlotWidget
* parent =
nullptr
);
35
~StatisticsDialog
();
36
37
void
update
(
Range
range);
38
39
void
closeEvent
(QCloseEvent* event);
40
41
void
setTitle
(QString title);
42
43
bool
calcVisibleRange
();
44
45
private
:
46
Ui::statistics_dialog*
ui
;
47
48
PlotWidget
*
_parent
;
49
};
50
51
#endif // STATISTICS_DIALOG_H
StatisticsDialog::calcVisibleRange
bool calcVisibleRange()
Definition:
statistics_dialog.cpp:34
plotwidget.h
Statistics::min
double min
Definition:
statistics_dialog.h:23
StatisticsDialog::_parent
PlotWidget * _parent
Definition:
statistics_dialog.h:48
Statistics
Definition:
statistics_dialog.h:20
StatisticsDialog::setTitle
void setTitle(QString title)
Definition:
statistics_dialog.cpp:118
PlotWidget
Definition:
plotwidget.h:38
StatisticsDialog::StatisticsDialog
StatisticsDialog(PlotWidget *parent=nullptr)
Definition:
statistics_dialog.cpp:12
StatisticsDialog::ui
Ui::statistics_dialog * ui
Definition:
statistics_dialog.h:46
Ui
Definition:
cheatsheet_dialog.h:6
StatisticsDialog
Definition:
statistics_dialog.h:29
Statistics::mean_interval
double mean_interval
Definition:
statistics_dialog.h:26
PJ::Range
Definition:
plotdatabase.h:24
Statistics::mean_tot
double mean_tot
Definition:
statistics_dialog.h:25
Statistics::count
size_t count
Definition:
statistics_dialog.h:22
plotdata.h
StatisticsDialog::~StatisticsDialog
~StatisticsDialog()
Definition:
statistics_dialog.cpp:29
StatisticsDialog::closeEvent
void closeEvent(QCloseEvent *event)
Definition:
statistics_dialog.cpp:127
StatisticsDialog::update
void update(Range range)
Definition:
statistics_dialog.cpp:39
Statistics::max
double max
Definition:
statistics_dialog.h:24
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon May 26 2025 02:22:38