mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
30 lines
496 B
C++
30 lines
496 B
C++
#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;
|
|
|
|
enum Units _units;
|
|
bool _showTracks;
|
|
};
|
|
|
|
#endif // POWERGRAPH_H
|