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
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:47
Statistics
Definition:
statistics_dialog.h:20
StatisticsDialog::setTitle
void setTitle(QString title)
Definition:
statistics_dialog.cpp:110
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:45
Ui
Definition:
cheatsheet_dialog.h:6
StatisticsDialog
Definition:
statistics_dialog.h:28
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:119
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 Nov 11 2024 03:23:47