 |
AtCore
1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
|
Go to the documentation of this file.
13 #include "atcorewidgets_export.h"
23 explicit PlotWidget(QWidget *parent =
nullptr);
30 void addPlot(
const QString &name);
36 void removePlot(
const QString &name);
43 void appendPoint(
const QString &name,
float value);
55 void setMaximumPoints(
const int newMax);
61 void setMaximumTemperature(
const uint maxTemp);
68 : _series(new QLineSeries())
79 QDateTime now = QDateTime::currentDateTime();
80 _series->append(now.toMSecsSinceEpoch(), value);
86 _series->setName(_name);
89 QDateTime now = QDateTime::currentDateTime();
90 _series->append(now.toMSecsSinceEpoch() - 2 * 60e3, 0.0);
91 _series->append(now.toMSecsSinceEpoch() - 60e3, 0.0);
92 _series->append(now.toMSecsSinceEpoch(), 0.0);