nngn
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_PLOT_WINDOW_H
2#define NNGN_TOOLS_PLOT_WINDOW_H
3
4#include <vector>
5#include <QVector>
6#include <QtWidgets/QMainWindow>
7
8#include "graph.h"
9
10namespace QtCharts {
11 class QAbstractSeries;
12}
13
14class Window : public QMainWindow {
15 Q_OBJECT
16 std::vector<QtCharts::QAbstractSeries*> series = {};
17 qreal timestamp_ms = {};
18 std::size_t i = {}, cols = 4;
19public:
21public slots:
22 void set_grid_size(std::size_t n_cols) { this->cols = n_cols; }
23 void new_graph(Graph::Type type, QString title);
24 void new_frame(qreal timestamp_ms);
25 void new_data(Graph::Type type, qreal value);
26};
27
28#endif
Definition window.h:11
void new_graph(Graph::Type type, QString title)
Definition window.cpp:74
qreal timestamp_ms
Definition window.h:17
std::size_t i
Definition window.h:18
void set_grid_size(std::size_t n_cols)
Definition window.h:22
void new_data(Graph::Type type, qreal value)
Definition window.cpp:110
std::size_t cols
Definition window.h:18
std::vector< QtCharts::QAbstractSeries * > series
Definition window.h:16
void new_frame(qreal timestamp_ms)
Definition window.cpp:105
Definition window.h:10
Type
Definition graph.h:5