mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
28 lines
573 B
C++
28 lines
573 B
C++
#ifndef ELEVATIONGRAPHITEM_H
|
|
#define ELEVATIONGRAPHITEM_H
|
|
|
|
#include "graphitem.h"
|
|
|
|
class ElevationGraphItem : public GraphItem
|
|
{
|
|
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;}
|
|
qreal max() const {return _max;}
|
|
qreal min() const {return _min;}
|
|
|
|
ToolTip info() const;
|
|
|
|
private:
|
|
qreal _ascent, _descent, _min, _max;
|
|
};
|
|
|
|
#endif // ELEVATIONGRAPHITEM_H
|