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

33 lines
531 B
C
Raw Normal View History

2016-11-06 03:28:08 +01:00
#ifndef POWERGRAPH_H
#define POWERGRAPH_H
#include "graphtab.h"
class PowerGraphItem;
2016-11-06 03:28:08 +01:00
class PowerGraph : public GraphTab
{
Q_OBJECT
public:
PowerGraph(QWidget *parent = 0);
~PowerGraph();
2016-11-06 03:28:08 +01:00
QString label() const {return tr("Power");}
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<PowerGraphItem*> _tracks;
2016-11-06 03:28:08 +01:00
};
#endif // POWERGRAPH_H