mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 19:49:58 +02:00
[apps/graph] Implement defaultCursorT for FunctionGraphController
This commit is contained in:
@@ -75,4 +75,12 @@ int GraphController::closestCurveIndexVertically(bool goingUp, int currentSelect
|
||||
return nextActiveFunctionIndex >= nbOfActiveFunctions ? -1 : nextActiveFunctionIndex;
|
||||
}
|
||||
|
||||
double GraphController::defaultCursorT(Ion::Storage::Record record) {
|
||||
ExpiringPointer<CartesianFunction> function = functionStore()->modelForRecord(record);
|
||||
if (function->plotType() == CartesianFunction::PlotType::Cartesian) {
|
||||
return FunctionGraphController::defaultCursorT(record);
|
||||
}
|
||||
return function->tMin();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user