summaryrefslogtreecommitdiffstats
path: root/stats/zvalues.h
blob: d6e9c7d605076657cdd72f107aad1bd373f73b35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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 grid = -1.0;
	static constexpr double series = 0.0;
	static constexpr double axes = 1.0;
	static constexpr double seriesLabels = 2.0;
	static constexpr double chartFeatures = 3.0;	// quartile markers and regression lines
	static constexpr double informationBox = 4.0;
	static constexpr double legend = 5.0;
};

enum class ChartZValue {
	Grid = 0,
	Series,
	Axes,
	SeriesLabels,
	ChartFeatures,	// quartile markers and regression lines
	InformationBox,
	Legend,
	Count
};

#endif