subsurface/stats/histogrammarker.h
Berthold Stoeger d060a3a3cb profile: rename stats/chartitem.* to stats/statsitem.*
Android uses qmake and apparently that doesn't support source files
with the same name. We already have chart/chartitem.*.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-12 15:17:15 +02:00

20 lines
462 B
C++

// A line to show median an mean in histograms
#ifndef HISTOGRAM_MARKER_H
#define HISTOGRAM_MARKER_H
#include "statsitem.h"
class StatsAxis;
// A line marking median or mean in histograms
class HistogramMarker : public ChartLineItem {
public:
HistogramMarker(ChartView &view, double val, bool horizontal, QColor color, StatsAxis *xAxis, StatsAxis *yAxis);
void updatePosition();
private:
StatsAxis *xAxis, *yAxis;
double val;
bool horizontal;
};
#endif