6663b6c9
adorian
projet complet av...
|
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
|
#ifndef STATISTICS_BOX_RANGE_H
#define STATISTICS_BOX_RANGE_H
#include "../shared/curve_view_range.h"
#include "store.h"
namespace Statistics {
class BoxRange : public Shared::CurveViewRange {
public:
BoxRange(Store * store);
float xMin() override;
float xMax() override;
float yMin() override { return -k_displayBottomMarginRatio; }
float yMax() override { return 1.0f+k_displayTopMarginRatio; }
float xGridUnit() override;
private:
constexpr static float k_displayTopMarginRatio = 0.05f;
constexpr static float k_displayRightMarginRatio = 0.2f;
constexpr static float k_displayBottomMarginRatio = 0.2f;
constexpr static float k_displayLeftMarginRatio = 0.2f;
Store * m_store;
};
}
#endif
|