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:
|
|
|
|
TemperatureGraphItem(const Graph &graph, QGraphicsItem *parent = 0);
|
|
|
|
|
|
|
|
qreal max() const {return -bounds().top();}
|
|
|
|
qreal min() const {return -bounds().bottom();}
|
|
|
|
qreal avg() const {return _avg;}
|
|
|
|
|
|
|
|
void setUnits(Units units);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString toolTip(Units units) const;
|
|
|
|
|
|
|
|
qreal _avg;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TEMPERATUREGRAPHITEM_H
|