mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
25 lines
843 B
C++
25 lines
843 B
C++
#ifndef GRAPH_GRAPH_CONTROLLER_HELPER_H
|
|
#define GRAPH_GRAPH_CONTROLLER_HELPER_H
|
|
|
|
#include "banner_view.h"
|
|
#include "../../shared/curve_view_cursor.h"
|
|
#include "../../shared/interactive_curve_view_range.h"
|
|
|
|
namespace Graph {
|
|
|
|
class App;
|
|
|
|
class GraphControllerHelper {
|
|
protected:
|
|
bool privateMoveCursorHorizontally(Shared::CurveViewCursor * cursor, int direction, Shared::InteractiveCurveViewRange * range, int numberOfStepsInGradUnit, Ion::Storage::Record record, int scrollSpeed = 1);
|
|
void reloadDerivativeInBannerViewForCursorOnFunction(Shared::CurveViewCursor * cursor, Ion::Storage::Record record);
|
|
virtual BannerView * bannerView() = 0;
|
|
private:
|
|
static constexpr double k_definitionDomainDivisor = 96.0;
|
|
virtual void jumpToLeftRightCurve(double t, int direction, int functionsCount, Ion::Storage::Record record) {}
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|