mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
26 lines
710 B
C++
26 lines
710 B
C++
#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() const override;
|
|
float xMax() const override;
|
|
float yMin() const override { return -k_displayBottomMarginRatio; }
|
|
float yMax() const override { return 1.0f+k_displayTopMarginRatio; }
|
|
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 |