mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
22 lines
479 B
C
22 lines
479 B
C
|
// 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
|