[apps/shared/values_controller] Move evaluationOfAbscissaAtColumn impl to Sequence

And remove TODO
This commit is contained in:
Ruben Dashyan
2019-09-05 17:52:16 +02:00
parent f579010340
commit ae7d60d7c2
4 changed files with 8 additions and 9 deletions

View File

@@ -250,14 +250,6 @@ int ValuesController::numberOfElementsInColumn(int columnIndex) {
return intervalAtColumn(columnIndex)->numberOfElements();
}
double ValuesController::evaluationOfAbscissaAtColumn(double abscissa, int columnIndex) {
ExpiringPointer<Function> function = functionStore()->modelForRecord(recordAtColumn(columnIndex));
//TODO LEA RUBEN Careful with merge
//TODO LEA RUBEN change with evaluationOfParameterAtColumn? evaluate2DAtParameter ?
Poincare::Coordinate2D<double> xy = function->evaluateXYAtParameter(abscissa, textFieldDelegateApp()->localContext());
return xy.x2();
}
void ValuesController::updateNumberOfColumns() {
m_numberOfColumns = 1+functionStore()->numberOfActiveFunctions();
}