mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Define static app() accessor in FunctionApp class
This commit is contained in:
committed by
EmilieNumworks
parent
2c9489966d
commit
ff887ec4a0
@@ -66,7 +66,7 @@ bool SumGraphController::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
|
||||
bool SumGraphController::moveCursorHorizontallyToPosition(double x) {
|
||||
FunctionApp * myApp = static_cast<FunctionApp *>(app());
|
||||
FunctionApp * myApp = FunctionApp::app();
|
||||
assert(!m_record.isNull());
|
||||
ExpiringPointer<Function> function = myApp->functionStore()->modelForRecord(m_record);
|
||||
double y = function->evaluateAtAbscissa(x, myApp->localContext());
|
||||
@@ -138,7 +138,7 @@ void SumGraphController::reloadBannerView() {
|
||||
double result;
|
||||
Poincare::Layout functionLayout;
|
||||
if (m_step == Step::Result) {
|
||||
FunctionApp * myApp = static_cast<FunctionApp *>(app());
|
||||
FunctionApp * myApp = FunctionApp::app();
|
||||
assert(!m_record.isNull());
|
||||
ExpiringPointer<Function> function = myApp->functionStore()->modelForRecord(m_record);
|
||||
result = function->sumBetweenBounds(m_startSum, m_endSum, myApp->localContext());
|
||||
|
||||
Reference in New Issue
Block a user