mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[apps/shared] Factorize regression and function did change range method
Change-Id: Ie4ddefe883a4a0c40f50b5b2afe3d6eb7aa78e0e
This commit is contained in:
@@ -16,7 +16,6 @@ public:
|
||||
bool isEmpty() const override;
|
||||
ViewController * initialisationParameterController() override;
|
||||
void viewWillAppear() override;
|
||||
bool didChangeRange(Shared::InteractiveCurveViewRange * interactiveCurveViewRange) override;
|
||||
protected:
|
||||
constexpr static float k_cursorTopMarginRatio = 0.068f; // (cursorHeight/2)/graphViewHeight
|
||||
constexpr static float k_cursorRightMarginRatio = 0.04f; // (cursorWidth/2)/graphViewWidth
|
||||
@@ -32,6 +31,9 @@ private:
|
||||
constexpr static float k_displayTopMarginRatio = 0.09f;
|
||||
constexpr static float k_displayBottomMarginRatio = 0.2f;
|
||||
|
||||
InteractiveCurveViewRangeDelegate::Range computeYRange(InteractiveCurveViewRange * interactiveCurveViewRange) override;
|
||||
float addMargin(float x, float range, bool isMin) override;
|
||||
|
||||
void initRangeParameters() override;
|
||||
bool moveCursorVertically(int direction) override;
|
||||
CurveView * curveView() override;
|
||||
|
||||
Reference in New Issue
Block a user