Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Shared::FunctionGraphController Class Referenceabstract

#include <function_graph_controller.h>

Inheritance diagram for Shared::FunctionGraphController:
Shared::InteractiveCurveViewController Shared::InteractiveCurveViewRangeDelegate Shared::FunctionBannerDelegate Shared::SimpleInteractiveCurveViewController ButtonRowDelegate AlternateEmptyViewDelegate ViewController Responder Graph::GraphController Sequence::GraphController

Public Member Functions

 FunctionGraphController (Responder *parentResponder, ButtonRowController *header, InteractiveCurveViewRange *interactiveRange, CurveView *curveView, CurveViewCursor *cursor, int *indexFunctionSelectedByCursor, uint32_t *modelVersion, uint32_t *rangeVersion, Poincare::Expression::AngleUnit *angleUnitVersion)
 
bool isEmpty () const override
 
ViewControllerinitialisationParameterController () override
 
void viewWillAppear () override
 
- Public Member Functions inherited from Shared::InteractiveCurveViewController
 InteractiveCurveViewController (Responder *parentResponder, ButtonRowController *header, InteractiveCurveViewRange *interactiveRange, CurveView *curveView, CurveViewCursor *cursor, uint32_t *modelVersion, uint32_t *rangeVersion)
 
const char * title () override
 
bool handleEvent (Ion::Events::Event event) override
 
void didBecomeFirstResponder () override
 
ViewControllerrangeParameterController ()
 
ViewControllerzoomParameterController ()
 
int numberOfButtons (ButtonRowController::Position position) const override
 
ButtonbuttonAtIndex (int index, ButtonRowController::Position position) const override
 
ResponderdefaultController () override
 
void viewWillAppear () override
 
void viewDidDisappear () override
 
void didEnterResponderChain (Responder *previousFirstResponder) override
 
void willExitResponderChain (Responder *nextFirstResponder) override
 
- Public Member Functions inherited from Shared::SimpleInteractiveCurveViewController
 SimpleInteractiveCurveViewController (Responder *parentResponder, InteractiveCurveViewRange *interactiveRange, CurveView *curveView, CurveViewCursor *cursor)
 
Viewview () override
 
bool handleEvent (Ion::Events::Event event) override
 
- Public Member Functions inherited from ViewController
 ViewController (Responder *parentResponder)
 
virtual DisplayParameter displayParameter ()
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void willResignFirstResponder ()
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 
- Public Member Functions inherited from ButtonRowDelegate
 ButtonRowDelegate (ButtonRowController *header, ButtonRowController *footer)
 
ButtonRowControllerheader ()
 
ButtonRowControllerfooter ()
 
- Public Member Functions inherited from AlternateEmptyViewDelegate
virtual I18n::Message emptyMessage ()=0
 
- Public Member Functions inherited from Shared::InteractiveCurveViewRangeDelegate
bool didChangeRange (InteractiveCurveViewRange *interactiveCurveViewRange)
 
virtual float interestingXRange ()
 

Protected Member Functions

void reloadBannerView () override
 
bool handleEnter () override
 
int indexFunctionSelectedByCursor () const
 
virtual void selectFunctionWithCursor (int functionIndex)
 
- Protected Member Functions inherited from Shared::InteractiveCurveViewController
RespondertabController () const
 
virtual StackViewControllerstackController () const
 
virtual void initCursorParameters ()=0
 
- Protected Member Functions inherited from Shared::SimpleInteractiveCurveViewController
virtual bool handleZoom (Ion::Events::Event event)
 
virtual bool handleLeftRightEvent (Ion::Events::Event event)
 
virtual bool moveCursorHorizontally (int direction)
 
virtual InteractiveCurveViewRangeinteractiveCurveViewRange ()=0
 
- Protected Member Functions inherited from Shared::FunctionBannerDelegate
void reloadBannerViewForCursorOnFunction (CurveViewCursor *cursor, Function *function, char symbol)
 
virtual BannerViewbannerView ()=0
 

Static Protected Attributes

static constexpr float k_cursorTopMarginRatio = 0.068f
 
static constexpr float k_cursorBottomMarginRatio = 0.15f
 

Additional Inherited Members

- Public Types inherited from ViewController
enum  DisplayParameter { DisplayParameter::Default, DisplayParameter::DoNotShowOwnTitle, DisplayParameter::WantsMaximumSpace }
 
- Static Public Attributes inherited from Shared::SimpleInteractiveCurveViewController
static constexpr float k_cursorRightMarginRatio = 0.04f
 
static constexpr float k_cursorLeftMarginRatio = 0.04f
 
static constexpr float k_numberOfCursorStepsInGradUnit = 5.0f
 
- Static Public Attributes inherited from Shared::FunctionBannerDelegate
static constexpr int k_maxNumberOfCharacters = 50
 
static constexpr int k_maxDigitLegendLength = 11
 
- Protected Attributes inherited from Shared::InteractiveCurveViewController
OkView m_okView
 
- Protected Attributes inherited from Shared::SimpleInteractiveCurveViewController
CurveViewCursorm_cursor
 

Detailed Description

Definition at line 14 of file function_graph_controller.h.

Constructor & Destructor Documentation

◆ FunctionGraphController()

Shared::FunctionGraphController::FunctionGraphController ( Responder parentResponder,
ButtonRowController header,
InteractiveCurveViewRange interactiveRange,
CurveView curveView,
CurveViewCursor cursor,
int *  indexFunctionSelectedByCursor,
uint32_t modelVersion,
uint32_t rangeVersion,
Poincare::Expression::AngleUnit angleUnitVersion 
)

Definition at line 11 of file function_graph_controller.cpp.

Member Function Documentation

◆ handleEnter()

bool Shared::FunctionGraphController::handleEnter ( )
overrideprotectedvirtual

◆ indexFunctionSelectedByCursor()

int Shared::FunctionGraphController::indexFunctionSelectedByCursor ( ) const
inlineprotected

Definition at line 25 of file function_graph_controller.h.

◆ initialisationParameterController()

ViewController * Shared::FunctionGraphController::initialisationParameterController ( )
overridevirtual

◆ isEmpty()

bool Shared::FunctionGraphController::isEmpty ( ) const
overridevirtual

Implements AlternateEmptyViewDelegate.

Definition at line 19 of file function_graph_controller.cpp.

◆ reloadBannerView()

void Shared::FunctionGraphController::reloadBannerView ( )
overrideprotectedvirtual

Reimplemented from Shared::SimpleInteractiveCurveViewController.

Definition at line 59 of file function_graph_controller.cpp.

◆ selectFunctionWithCursor()

void Shared::FunctionGraphController::selectFunctionWithCursor ( int  functionIndex)
protectedvirtual

Definition at line 55 of file function_graph_controller.cpp.

◆ viewWillAppear()

void Shared::FunctionGraphController::viewWillAppear ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 30 of file function_graph_controller.cpp.

Member Data Documentation

◆ k_cursorBottomMarginRatio

constexpr float Shared::FunctionGraphController::k_cursorBottomMarginRatio = 0.15f
staticprotected

Definition at line 22 of file function_graph_controller.h.

◆ k_cursorTopMarginRatio

constexpr float Shared::FunctionGraphController::k_cursorTopMarginRatio = 0.068f
staticprotected

Definition at line 21 of file function_graph_controller.h.


The documentation for this class was generated from the following files: