mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-06 23:03:22 +02:00
24 lines
469 B
C
24 lines
469 B
C
|
#ifndef TEMPERATUREGRAPHITEM_H
|
||
|
#define TEMPERATUREGRAPHITEM_H
|
||
|
|
||
|
#include "graphitem.h"
|
||
|
|
||
|
class TemperatureGraphItem : public GraphItem
|
||
|
{
|
||
|
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
|