Commit Graph

370 Commits

Author SHA1 Message Date
Quentin Guidée
ab8f731515 Fixed some conflicts 2020-02-12 17:42:58 +01:00
Ruben Dashyan
51698ee8c5 [apps/graph/graph/graph_controller] Fix initial cursor color 2020-02-12 15:13:26 +01:00
Ruben Dashyan
63424fb98b [apps/*/function_graph_controller] Factor selectFunctionWithCursor 2020-02-12 15:13:24 +01:00
Léa Saviot
7665ad6fe0 [apps/graph/graph_controller] Fix interestingRanges step
Scenario
Create an empty f function
Create g(x) = 1/x
Go to the graph
Change f(x) to f(theta) = theta^2 + 3
Go back to the graph -> the axes computation was very long
2020-02-12 15:13:23 +01:00
Émilie Feral
b47ded4074 [apps/calculation] Add a parameter in Shared::CurveView to choose the
curve thickness
2020-02-12 15:13:20 +01:00
Ruben Dashyan
8cb2b99254 [apps/graph/calculation_graph_controller] Remove handleLeftRightEvent 2020-02-12 15:13:16 +01:00
Léa Saviot
1434158bee [apps/graph] Faster curve navigation after some time
If the user presses the LEft/Right keys for a long time, the cursor will
move faster.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
a52fd2c697 [apps/graph/graph_view] Do not draw the functions with undef expression 2020-02-12 15:13:15 +01:00
Quentin Guidée
2c49b8f5c9 New fixes for the themes 2019-11-30 13:31:01 +01:00
Émilie Feral
6befc1e146 [apps/graph] interestingXHalfRange: ignore infinite characteristic x
range
2019-10-18 14:32:57 +02:00
Léa Saviot
19921ec125 [apps/regression/graph] Fix roundCursorView drawing glitch
Scenario:
f(x)=cos(x)
CalculateZeroes -> drawing glitch
Right, Back -> drawing glitch
2019-10-04 09:38:23 +02:00
Léa Saviot
aa8b0964b3 [apps/graph] If only cartesians, use domains range if < default range
The default range is [-10;10], but if all the functions are cartesian
and defined in a smaller range (for instance [-0.1,0.1]), use that
smaller range.
2019-09-26 12:00:06 +02:00
Émilie Feral
4d593a6149 [poincare] PrintFloat: take into account the distinction between char
and glyph length in ConvertFloatToText
2019-09-26 11:26:48 +02:00
Ruben Dashyan
259eb35cf4 Revert ""Almost equal to" sign in banner views"
This reverts commit bd5a247858.
2019-09-26 10:36:17 +02:00
Léa Saviot
b3e72835f0 [apps/graph] Fix expiring pointer that expired 2019-09-24 11:31:15 +02:00
Léa Saviot
6336c385db [apps/graph] jumpToLeftRightCurve takes into account vertical distance 2019-09-23 17:31:35 +02:00
Léa Saviot
e9974a216d [apps/graph] If only cartesians, jump to next curve when out of range
Scenario:

-----------•   ->press "right": the cursor goes on the lower curve

           -*-*-*-*-*-
2019-09-23 17:31:35 +02:00
Léa Saviot
4248128471 [apps/graph] ContinuousFunctionStore::displaysNonCartesianFunctions 2019-09-23 17:31:35 +02:00
Léa Saviot
f79e774971 [apps/graph] Factorize displaysNonCartesianFunctions uses 2019-09-23 17:31:35 +02:00
Léa Saviot
ebfa251db8 [apps/grah} closestCurveIndexVertically renamed as next... 2019-09-23 17:31:35 +02:00
Léa Saviot
936b624fb9 [apps/graph] Block navigation to definition domain 2019-09-23 17:31:35 +02:00
Ruben Dashyan
bd5a247858 "Almost equal to" sign in banner views 2019-09-23 17:31:02 +02:00
Ruben Dashyan
a705109b91 [apps/graph/graph_view] Factor polar and parametric drawing 2019-09-20 17:11:42 +02:00
Ruben Dashyan
a7282e6f33 [apps/graph/graph_view] Do not recompute numberOfActiveFunctions 2019-09-20 17:11:42 +02:00
Ruben Dashyan
df2897925b Rename Shared::CartesianFunction to Shared::ContinuousFunction 2019-09-20 17:11:42 +02:00
Ruben Dashyan
be019cd5cf [apps/graph] Move cartesian_function_store.* to continuous_function_store.* 2019-09-20 17:11:42 +02:00
Ruben Dashyan
3172992e11 [apps] Clean header inclusions 2019-09-20 17:11:42 +02:00
Ruben Dashyan
0466d00588 [apps/graph] Rename CartesianFunctionStore to ContinuousFunctionStore 2019-09-20 17:11:42 +02:00
Ruben Dashyan
1908c9c674 [apps/graph] GraphView gets the function store through App
instead of passing a pointer at contruction.
2019-09-20 17:11:42 +02:00
Ruben Dashyan
8f88f7fea6 [apps/graph/graph_view] Draw parametric curves with evaluateXYAtParameter 2019-09-20 17:11:42 +02:00
Émilie Feral
5dcd983ee3 [apps/graph] GraphView: change the step with which the function is evaluated
to draw curve.
Fix bug: polar function sin(5θ) was not drawn at all
2019-09-17 17:30:29 +02:00
Léa Saviot
274795fcab [apps/graph] setDefault when changing models if non cartesian functions 2019-09-12 09:54:02 +02:00
Ruben Dashyan
2d38419989 [apps/graph/graph] Correct banner view reloading 2019-09-11 17:18:45 +02:00
Léa Saviot
77262b02dc [apps/graph] Fix default zoom for non cartesian + cartesian 2019-09-10 11:04:09 +02:00
Léa Saviot
a72f42d75e [apps/graph] Hangle displayed derivative for non cartesian functions 2019-09-10 10:33:40 +02:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Léa Saviot
fcd82400f5 [apps/graph] Fix typo 2019-09-09 19:13:52 +02:00
Léa Saviot
e67160b878 [apps/graph] Faster cursor scrolling on device
This commit is quite dirty but works well
2019-09-09 16:56:32 +02:00
Léa Saviot
99aee59e5e [apps/graph] Default window is -10..10 / -10..10 2019-09-09 14:07:49 +02:00
Émilie Feral
f38c6ed3d1 [apps/shared] Move sumBetweenBounds from controller (SumGraphController)
to the models (Sequence or CartesianFunction) and
CartesianFunction::sumBetweenBounds takes into account the function
domain
2019-09-09 11:42:16 +02:00
Émilie Feral
111a789f51 [apps/graph] Use CartesianFunction::nextIntersectionFrom in
PreimageGraphController to compute the preimage
2019-09-09 11:42:16 +02:00
Émilie Feral
37fd6f4d76 [apps/graph] Move function min and max computation from the controller
to the model CartesianFunction and take into account function domain
2019-09-09 11:42:16 +02:00
Émilie Feral
901cce9e67 [apps/graph] Move nextRootFrom from the controller to the model
CartesianFunction and take into account function domain
2019-09-09 11:42:16 +02:00
Émilie Feral
7b8973f020 [apps/graph] Move nextIntersectionFrom method from controller to model
and take into account the function domain in the intersection
computation
2019-09-09 10:22:44 +02:00
Émilie Feral
fdaec27ad9 [apps/graph] CurveParameterController: reload data when view appears
rather than set null frame when disappearing in order to reload model
2019-09-06 17:31:38 +02:00
Émilie Feral
236b4b77af [apps/graph] CalculationParameterController: display intersection row
only when all functions are cartesians and there are at least two
functions in the store
2019-09-06 17:29:47 +02:00
Ruben Dashyan
86768b2eec [apps/*/go_to_parameter_controller] Remove I18n::Message parameter from constructor 2019-09-05 11:58:51 +02:00
Ruben Dashyan
8a2ceb0440 [apps/*/go_to_parameter_controller] Use setParameterName 2019-09-05 11:58:51 +02:00
Léa Saviot
4ecf6835e7 [apps] Code cleaning 2019-09-03 14:21:14 +02:00
Léa Saviot
c3ee6a71e7 [apps/graph] Fix computeYRange for polar/cartesian functions
Was very slow, compute only 1000 values to evaluate the yRange
2019-09-03 14:21:14 +02:00