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

#include <simple_interactive_curve_view_controller.h>

Inheritance diagram for Shared::SimpleInteractiveCurveViewController:
ViewController Responder Graph::TangentGraphController Shared::InteractiveCurveViewController Shared::SumGraphController Regression::GraphController Shared::FunctionGraphController Graph::IntegralGraphController Sequence::TermSumController Graph::GraphController Sequence::GraphController

Public Member Functions

 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 const char * title ()
 
virtual void viewWillAppear ()
 
virtual void viewDidDisappear ()
 
virtual DisplayParameter displayParameter ()
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void didBecomeFirstResponder ()
 
virtual void willResignFirstResponder ()
 
virtual void didEnterResponderChain (Responder *previousFirstResponder)
 
virtual void willExitResponderChain (Responder *nextFirstResponder)
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 

Static Public Attributes

static constexpr float k_cursorRightMarginRatio = 0.04f
 
static constexpr float k_cursorLeftMarginRatio = 0.04f
 
static constexpr float k_numberOfCursorStepsInGradUnit = 5.0f
 

Protected Member Functions

virtual bool handleZoom (Ion::Events::Event event)
 
virtual bool handleLeftRightEvent (Ion::Events::Event event)
 
virtual void reloadBannerView ()
 
virtual bool moveCursorHorizontally (int direction)
 
virtual InteractiveCurveViewRangeinteractiveCurveViewRange ()=0
 
virtual CurveViewcurveView ()=0
 
virtual bool handleEnter ()=0
 

Protected Attributes

CurveViewCursorm_cursor
 

Additional Inherited Members

- Public Types inherited from ViewController
enum  DisplayParameter { DisplayParameter::Default, DisplayParameter::DoNotShowOwnTitle, DisplayParameter::WantsMaximumSpace }
 

Detailed Description

Definition at line 14 of file simple_interactive_curve_view_controller.h.

Constructor & Destructor Documentation

◆ SimpleInteractiveCurveViewController()

Shared::SimpleInteractiveCurveViewController::SimpleInteractiveCurveViewController ( Responder parentResponder,
InteractiveCurveViewRange interactiveRange,
CurveView curveView,
CurveViewCursor cursor 
)

Definition at line 9 of file simple_interactive_curve_view_controller.cpp.

Member Function Documentation

◆ curveView()

virtual CurveView* Shared::SimpleInteractiveCurveViewController::curveView ( )
protectedpure virtual

◆ handleEnter()

virtual bool Shared::SimpleInteractiveCurveViewController::handleEnter ( )
protectedpure virtual

◆ handleEvent()

bool Shared::SimpleInteractiveCurveViewController::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Reimplemented in Shared::SumGraphController.

Definition at line 19 of file simple_interactive_curve_view_controller.cpp.

◆ handleLeftRightEvent()

bool Shared::SimpleInteractiveCurveViewController::handleLeftRightEvent ( Ion::Events::Event  event)
protectedvirtual

Definition at line 39 of file simple_interactive_curve_view_controller.cpp.

◆ handleZoom()

bool Shared::SimpleInteractiveCurveViewController::handleZoom ( Ion::Events::Event  event)
protectedvirtual

Definition at line 32 of file simple_interactive_curve_view_controller.cpp.

◆ interactiveCurveViewRange()

virtual InteractiveCurveViewRange* Shared::SimpleInteractiveCurveViewController::interactiveCurveViewRange ( )
protectedpure virtual

◆ moveCursorHorizontally()

virtual bool Shared::SimpleInteractiveCurveViewController::moveCursorHorizontally ( int  direction)
inlineprotectedvirtual

Definition at line 29 of file simple_interactive_curve_view_controller.h.

◆ reloadBannerView()

virtual void Shared::SimpleInteractiveCurveViewController::reloadBannerView ( )
inlineprotectedvirtual

Reimplemented in Shared::FunctionGraphController.

Definition at line 25 of file simple_interactive_curve_view_controller.h.

◆ view()

View * Shared::SimpleInteractiveCurveViewController::view ( )
overridevirtual

Implements ViewController.

Definition at line 15 of file simple_interactive_curve_view_controller.cpp.

Member Data Documentation

◆ k_cursorLeftMarginRatio

constexpr float Shared::SimpleInteractiveCurveViewController::k_cursorLeftMarginRatio = 0.04f
static

Definition at line 20 of file simple_interactive_curve_view_controller.h.

◆ k_cursorRightMarginRatio

constexpr float Shared::SimpleInteractiveCurveViewController::k_cursorRightMarginRatio = 0.04f
static

Definition at line 19 of file simple_interactive_curve_view_controller.h.

◆ k_numberOfCursorStepsInGradUnit

constexpr float Shared::SimpleInteractiveCurveViewController::k_numberOfCursorStepsInGradUnit = 5.0f
static

Definition at line 21 of file simple_interactive_curve_view_controller.h.

◆ m_cursor

CurveViewCursor* Shared::SimpleInteractiveCurveViewController::m_cursor
protected

Definition at line 33 of file simple_interactive_curve_view_controller.h.


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