1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/GUI/speedgraphitem.h

30 lines
566 B
C
Raw Normal View History

#ifndef SPEEDGRAPHITEM_H
#define SPEEDGRAPHITEM_H
2017-09-25 19:56:04 +02:00
#include "timetype.h"
#include "graphitem.h"
class SpeedGraphItem : public GraphItem
{
2017-09-24 20:13:13 +02:00
Q_OBJECT
public:
SpeedGraphItem(const Graph &graph, GraphType type, int width,
const QColor &color, Qt::PenStyle style, qreal movingTime,
QGraphicsItem *parent = 0);
qreal avg() const {return _avg;}
qreal mavg() const {return _mavg;}
2019-02-11 23:28:08 +01:00
qreal max() const {return _max;}
QString info() const;
2017-09-25 19:56:04 +02:00
void setTimeType(TimeType type);
private:
qreal _avg, _mavg, _max;
2017-09-25 19:56:04 +02:00
TimeType _timeType;
};
#endif // SPEEDGRAPHITEM_H