1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-07 20:15:13 +01:00
GPXSee/src/GUI/temperaturegraphitem.h

25 lines
487 B
C++

#ifndef TEMPERATUREGRAPHITEM_H
#define TEMPERATUREGRAPHITEM_H
#include "graphitem.h"
class TemperatureGraphItem : public GraphItem
{
Q_OBJECT
public:
TemperatureGraphItem(const Graph &graph, GraphType type, int width,
const QColor &color, QGraphicsItem *parent = 0);
qreal max() const {return _max;}
qreal min() const {return _min;}
qreal avg() const {return _avg;}
ToolTip info(bool extended) const;
private:
qreal _min, _max, _avg;
};
#endif // TEMPERATUREGRAPHITEM_H