2017-09-24 19:54:13 +02:00
|
|
|
#ifndef ELEVATIONGRAPHITEM_H
|
|
|
|
#define ELEVATIONGRAPHITEM_H
|
|
|
|
|
|
|
|
#include "graphitem.h"
|
|
|
|
|
|
|
|
class ElevationGraphItem : public GraphItem
|
|
|
|
{
|
2017-09-24 20:13:13 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2017-09-24 19:54:13 +02:00
|
|
|
public:
|
2020-03-25 23:08:26 +01:00
|
|
|
enum DataType {GPS, DEM};
|
|
|
|
|
2019-08-25 10:54:25 +02:00
|
|
|
ElevationGraphItem(const Graph &graph, GraphType type, int width,
|
2020-03-25 23:08:26 +01:00
|
|
|
const QColor &color, Qt::PenStyle style, QGraphicsItem *parent = 0);
|
2017-09-24 19:54:13 +02:00
|
|
|
|
|
|
|
qreal ascent() const {return _ascent;}
|
|
|
|
qreal descent() const {return _descent;}
|
2019-02-11 23:53:10 +01:00
|
|
|
qreal max() const {return _max;}
|
|
|
|
qreal min() const {return _min;}
|
2017-09-24 19:54:13 +02:00
|
|
|
|
2021-08-04 08:57:42 +02:00
|
|
|
ToolTip info() const;
|
2017-09-24 19:54:13 +02:00
|
|
|
|
2019-10-13 20:20:32 +02:00
|
|
|
private:
|
2018-10-26 09:15:23 +02:00
|
|
|
qreal _ascent, _descent, _min, _max;
|
2017-09-24 19:54:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ELEVATIONGRAPHITEM_H
|