1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/GUI/heartrategraph.h

33 lines
568 B
C
Raw Normal View History

#ifndef HEARTRATEGRAPH_H
#define HEARTRATEGRAPH_H
2016-06-24 00:55:44 +02:00
#include "graphtab.h"
class HeartRateGraphItem;
2016-06-24 00:55:44 +02:00
class HeartRateGraph : public GraphTab
{
Q_OBJECT
public:
HeartRateGraph(QWidget *parent = 0);
~HeartRateGraph();
2016-06-24 00:55:44 +02:00
QString label() const {return tr("Heart rate");}
QList<GraphItem*> loadData(const Data &data);
void clear();
void showTracks(bool show);
2016-06-24 00:55:44 +02:00
private:
qreal avg() const;
2016-03-27 13:23:00 +02:00
qreal max() const {return bounds().bottom();}
2016-08-09 01:16:19 +02:00
void setInfo();
2019-03-15 19:43:17 +01:00
QVector<QPointF> _avg;
2016-08-19 19:48:44 +02:00
bool _showTracks;
QList<HeartRateGraphItem*> _tracks;
};
#endif // HEARTRATEGRAPH_H