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

28 lines
573 B
C
Raw Normal View History

#ifndef ELEVATIONGRAPHITEM_H
#define ELEVATIONGRAPHITEM_H
#include "graphitem.h"
class ElevationGraphItem : public GraphItem
{
2017-09-24 20:13:13 +02:00
Q_OBJECT
public:
enum DataType {GPS, DEM};
ElevationGraphItem(const Graph &graph, GraphType type, int width,
const QColor &color, Qt::PenStyle style, QGraphicsItem *parent = 0);
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;}
QString info() const;
private:
qreal _ascent, _descent, _min, _max;
};
#endif // ELEVATIONGRAPHITEM_H