2017-09-24 19:54:13 +02:00
|
|
|
#ifndef TEMPERATUREGRAPHITEM_H
|
|
|
|
#define TEMPERATUREGRAPHITEM_H
|
|
|
|
|
|
|
|
#include "graphitem.h"
|
|
|
|
|
|
|
|
class TemperatureGraphItem : public GraphItem
|
|
|
|
{
|
2017-09-24 20:13:13 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2017-09-24 19:54:13 +02:00
|
|
|
public:
|
2019-08-25 10:54:25 +02:00
|
|
|
TemperatureGraphItem(const Graph &graph, GraphType type, int width,
|
|
|
|
const QColor &color, QGraphicsItem *parent = 0);
|
2017-09-24 19:54:13 +02:00
|
|
|
|
2018-10-26 09:15:23 +02:00
|
|
|
qreal max() const {return _max;}
|
|
|
|
qreal min() const {return _min;}
|
2017-09-24 19:54:13 +02:00
|
|
|
qreal avg() const {return _avg;}
|
|
|
|
|
2019-10-15 23:59:15 +02:00
|
|
|
QString info() const;
|
2017-09-24 19:54:13 +02:00
|
|
|
|
2019-10-13 20:20:32 +02:00
|
|
|
private:
|
2019-02-11 23:28:08 +01:00
|
|
|
qreal _min, _max, _avg;
|
2017-09-24 19:54:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TEMPERATUREGRAPHITEM_H
|