mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
218c844ad4
This is in analogy to the quartile markers. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
21 lines
479 B
C++
21 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
|