1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00
GPXSee/src/GUI/powergraph.h

33 lines
541 B
C++

#ifndef POWERGRAPH_H
#define POWERGRAPH_H
#include "graphtab.h"
class PowerGraphItem;
class PowerGraph : public GraphTab
{
Q_OBJECT
public:
PowerGraph(QWidget *parent = 0);
~PowerGraph();
QString label() const {return tr("Power");}
QList<GraphItem*> loadData(const Data &data, Map *map);
void clear();
void showTracks(bool show);
private:
qreal avg() const;
qreal max() const {return bounds().bottom();}
void setInfo();
QVector<QPointF> _avg;
bool _showTracks;
QList<PowerGraphItem*> _tracks;
};
#endif // POWERGRAPH_H