subsurface/stats/zvalues.h
Berthold Stoeger 7eecc85464 cleanup: fix include guards for stats/zvalues.h
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-11 10:35:04 +02:00

26 lines
670 B
C

// 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 scene.
#ifndef ZVALUES_H
#define ZVALUES_H
// Encapsulating an enum in a struct is stupid, but allows us
// to not poison the namespace and yet autoconvert to int
// (in constrast to enum class). enum is so broken!
struct ChartZValue {
enum ZValues {
Grid = 0,
Series,
Axes,
SeriesLabels,
ChartFeatures, // quartile markers and regression lines
Selection,
InformationBox,
Legend,
Count
};
};
#endif