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

30 lines
435 B
C
Raw Normal View History

#ifndef HEARTRATEGRAPH_H
#define HEARTRATEGRAPH_H
#include "graphview.h"
#include "units.h"
class GPX;
class HeartRateGraph : public GraphView
{
Q_OBJECT
public:
HeartRateGraph(QWidget *parent = 0);
void loadGPX(const GPX &gpx);
void clear();
void setUnits(enum Units units);
qreal avg() const;
2016-03-27 13:23:00 +02:00
qreal max() const {return bounds().bottom();}
private:
void addInfo();
QList<QPointF> _avg;
};
#endif // HEARTRATEGRAPH_H