aboutsummaryrefslogtreecommitdiffstats
path: root/stats/histogrammarker.h
blob: 14d6410bd50497a42c02a42d54ef1487e0b7d232 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// A line to show median an mean in histograms
#ifndef HISTOGRAM_MARKER_H
#define HISTOGRAM_MARKER_H

#include "chartitem.h"

class StatsAxis;
class StatsView;

// A line marking median or mean in histograms
class HistogramMarker : public ChartLineItem {
public:
	HistogramMarker(StatsView &view, double val, bool horizontal, QColor color, StatsAxis *xAxis, StatsAxis *yAxis);
	void updatePosition();
private:
	StatsAxis *xAxis, *yAxis;
	double val;
	bool horizontal;
};

#endif