mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 06:10:31 +01:00
23 lines
791 B
C++
23 lines
791 B
C++
#ifndef GRAPH_ROOT_GRAPH_CONTROLLER_H
|
|
#define GRAPH_ROOT_GRAPH_CONTROLLER_H
|
|
|
|
#include "calculation_graph_controller.h"
|
|
|
|
namespace Graph {
|
|
|
|
class RootGraphController : public CalculationGraphController {
|
|
public:
|
|
RootGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, Shared::CurveViewCursor * cursor);
|
|
const char * title() override;
|
|
TELEMETRY_ID("Root");
|
|
private:
|
|
Poincare::Coordinate2D<double> computeNewPointOfInterest(double start, double step, double max, Poincare::Context * context) override;
|
|
// Prevent horizontal panning to preserve search interval
|
|
float cursorRightMarginRatio() override { return 0.0f; }
|
|
float cursorLeftMarginRatio() override { return 0.0f; }
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|