1 #ifndef GRAPH_CALCULATION_GRAPH_CONTROLLER_H 2 #define GRAPH_CALCULATION_GRAPH_CONTROLLER_H 6 #include "../../shared/curve_view_cursor.h" 7 #include "../../shared/interactive_curve_view_range.h" 8 #include "../../shared/function_banner_delegate.h" 9 #include "../cartesian_function.h"
void setFunction(CartesianFunction *function)
CalculationGraphController(Responder *parentResponder, GraphView *graphView, BannerView *bannerView, Shared::InteractiveCurveViewRange *curveViewRange, Shared::CurveViewCursor *cursor, I18n::Message defaultMessage)
void viewWillAppear() override
CartesianFunction * m_function
Responder * parentResponder() const
static constexpr float k_cursorTopMarginRatio
virtual void reloadBannerView()
bool handleEvent(Ion::Events::Event event) override
BannerView * bannerView() override
static constexpr float k_cursorBottomMarginRatio
BannerView * m_bannerView
Shared::CurveViewCursor * m_cursor
bool moveCursor(int direction)
CartesianFunction::Point computeNewPointOfInteresetFromAbscissa(double start, int direction)
Shared::InteractiveCurveViewRange * m_graphRange
virtual CartesianFunction::Point computeNewPointOfInterest(double start, double step, double max, Poincare::Context *context)=0
MessageTextView m_defaultBannerView