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

33 lines
550 B
C
Raw Normal View History

2016-11-06 03:28:08 +01:00
#ifndef CADENCEGRAPH_H
#define CADENCEGRAPH_H
#include "graphtab.h"
class CadenceGraphItem;
2016-11-06 03:28:08 +01:00
class CadenceGraph : public GraphTab
{
Q_OBJECT
public:
CadenceGraph(QWidget *parent = 0);
~CadenceGraph();
2016-11-06 03:28:08 +01:00
QString label() const {return tr("Cadence");}
QList<GraphItem*> loadData(const Data &data);
2016-11-06 03:28:08 +01:00
void clear();
void showTracks(bool show);
private:
qreal avg() const;
qreal max() const {return bounds().bottom();}
void setInfo();
2019-03-15 19:43:17 +01:00
QVector<QPointF> _avg;
2016-11-06 03:28:08 +01:00
bool _showTracks;
QList<CadenceGraphItem *> _tracks;
2016-11-06 03:28:08 +01:00
};
#endif // CADENCEGRAPH_H