PlotWidget Show a graph of the temperature over time.
More...
#include <plotwidget.h>
|
void | update () |
| Update plot list, need to run after ALL plots added. More...
|
|
PlotWidget Show a graph of the temperature over time.
◆ PlotWidget()
PlotWidget::PlotWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~PlotWidget()
PlotWidget::~PlotWidget |
( |
| ) |
|
|
default |
◆ addPlot()
void PlotWidget::addPlot |
( |
const QString & |
name | ) |
|
Create a new plot.
- Parameters
-
◆ appendPoint()
void PlotWidget::appendPoint |
( |
const QString & |
name, |
|
|
float |
value |
|
) |
| |
Append point to plot.
- Parameters
-
name | p_name: plot name |
value | p_value: value |
◆ plots()
QStringList PlotWidget::plots |
( |
| ) |
|
plots
- Returns
- List of all named plots
◆ removePlot()
void PlotWidget::removePlot |
( |
const QString & |
name | ) |
|
Delete plot with name.
- Parameters
-
◆ setMaximumPoints()
void PlotWidget::setMaximumPoints |
( |
const int |
newMax | ) |
|
set The Maximum Number of points per series the plot widget stores
- Parameters
-
newMax | new maximum Number (default:120) |
◆ setMaximumTemperature()
void PlotWidget::setMaximumTemperature |
( |
const uint |
maxTemp | ) |
|
set the maximum temperature shown on the plot
- Parameters
-
maxTemp | : number greater then 0 |
◆ update()
void PlotWidget::update |
( |
| ) |
|
|
private |
Update plot list, need to run after ALL plots added.
◆ _axisX
QDateTimeAxis* PlotWidget::_axisX |
|
private |
◆ _axisY
QValueAxis* PlotWidget::_axisY |
|
private |
◆ _chart
QChartView* PlotWidget::_chart |
|
private |
◆ _plots
QMap<QString, plot> PlotWidget::_plots |
|
private |
◆ m_maximumPoints
int PlotWidget::m_maximumPoints |
|
private |
The documentation for this class was generated from the following files: