1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-12-01 07:01:16 +01:00
GPXSee/src/GUI/temperaturegraph.h
2019-08-25 10:54:25 +02:00

36 lines
694 B
C++

#ifndef TEMPERATUREGRAPH_H
#define TEMPERATUREGRAPH_H
#include "graphtab.h"
class TemperatureGraphItem;
class TemperatureGraph : public GraphTab
{
Q_OBJECT
public:
TemperatureGraph(QWidget *parent = 0);
~TemperatureGraph();
QString label() const {return tr("Temperature");}
QList<GraphItem*> loadData(const Data &data);
void clear();
void setUnits(enum Units units);
void showTracks(bool show);
private:
qreal avg() const;
qreal min() const {return bounds().top();}
qreal max() const {return bounds().bottom();}
void setYUnits(Units units);
void setInfo();
QVector<QPointF> _avg;
bool _showTracks;
QList<TemperatureGraphItem *> _tracks;
};
#endif // TEMPERATUREGRAPH_H