aboutsummaryrefslogtreecommitdiffstats
path: root/stats/zvalues.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-02 10:25:04 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-02 11:04:03 -0800
commit3b26f6a767595012bfe561f790404719f8580746 (patch)
treeedd5808be01c716b4fd34aa1b13cbc5459c5f1d4 /stats/zvalues.h
parentfdde4c23ea570d3fdc25dd3a66019e4500c5982c (diff)
downloadsubsurface-3b26f6a767595012bfe561f790404719f8580746.tar.gz
statistics: add a header file defining z-values
z-values determine the order in which objects on the chart are painted. To reduce chaos, collect all z-values in a header file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/zvalues.h')
-rw-r--r--stats/zvalues.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/stats/zvalues.h b/stats/zvalues.h
new file mode 100644
index 000000000..f4e7d6f09
--- /dev/null
+++ b/stats/zvalues.h
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0
+// Defines the z-values of features in the chart view.
+// Objects with higher z-values are painted on top of objects
+// with smaller z-values. For the same z-value objects are
+// drawn in order of addition to the graphics scene.
+#ifndef ZVALUES_H
+
+struct ZValues {
+ static constexpr double axes = 0.0;
+ static constexpr double series = 11.0;
+ static constexpr double seriesLabels = 12.0;
+ static constexpr double chartFeatures = 13.0; // quartile markers and regression lines
+ static constexpr double informationBox = 14.0;
+ static constexpr double legend = 15.0;
+};
+
+#endif