diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-14 09:48:44 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | 218c844ad4fa3f562c375b97694025f6cdaa3ca1 (patch) | |
tree | a09ddbcc1c09d04d89691a1ce0980d99950d6675 /stats/histogrammarker.h | |
parent | 790d2b2ddb36fd39fe8f002290288603ba1f0065 (diff) | |
download | subsurface-218c844ad4fa3f562c375b97694025f6cdaa3ca1.tar.gz |
statistics: convert HistogramMarkers to QSGNodes
This is in analogy to the quartile markers.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/histogrammarker.h')
-rw-r--r-- | stats/histogrammarker.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stats/histogrammarker.h b/stats/histogrammarker.h new file mode 100644 index 000000000..14d6410bd --- /dev/null +++ b/stats/histogrammarker.h @@ -0,0 +1,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 |