1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00
GPXSee/src/GUI/heartrategraph.h
2019-08-25 10:54:25 +02:00

33 lines
568 B
C++

#ifndef HEARTRATEGRAPH_H
#define HEARTRATEGRAPH_H
#include "graphtab.h"
class HeartRateGraphItem;
class HeartRateGraph : public GraphTab
{
Q_OBJECT
public:
HeartRateGraph(QWidget *parent = 0);
~HeartRateGraph();
QString label() const {return tr("Heart rate");}
QList<GraphItem*> loadData(const Data &data);
void clear();
void showTracks(bool show);
private:
qreal avg() const;
qreal max() const {return bounds().bottom();}
void setInfo();
QVector<QPointF> _avg;
bool _showTracks;
QList<HeartRateGraphItem*> _tracks;
};
#endif // HEARTRATEGRAPH_H