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

29 lines
476 B
C
Raw Normal View History

2016-11-06 03:28:08 +01:00
#ifndef POWERGRAPH_H
#define POWERGRAPH_H
#include "graphtab.h"
class PowerGraph : public GraphTab
{
Q_OBJECT
public:
PowerGraph(QWidget *parent = 0);
QString label() const {return tr("Power");}
void loadData(const Data &data, const QList<PathItem *> &paths);
void clear();
void showTracks(bool show);
private:
qreal avg() const;
qreal max() const {return bounds().bottom();}
void setInfo();
QList<QPointF> _avg;
bool _showTracks;
};
#endif // POWERGRAPH_H