mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
fdde4c23ea
commit
3b26f6a767
3 changed files with 23 additions and 3 deletions
17
stats/zvalues.h
Normal file
17
stats/zvalues.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue