Commit Graph

75 Commits

Author SHA1 Message Date
Émilie Feral
578c65d5dd [shared] Clean class names containing storage 2019-05-03 15:53:20 +02:00
Émilie Feral
57da4ea618 [shared] Rename classes:
ExpressionModelHandle --> ExpressionModel
SingleExpressionModelHandle --> ExpressionModelHandle
StorageFunction --> Function
StorageCartesianFunction --> CartesianFunction
StorageFunctionApp --> FunctionApp
2019-05-03 15:53:20 +02:00
Émilie Feral
e8b58a2b5b [shared] Create ExpiringPointer: in DEBUG, check that pointers to
memoized functions are not used when invalid
2018-11-23 12:04:03 +01:00
Émilie Feral
c70278941a [graph] Do not keep a function pointer as member variable but a record.
Indeed, function pointers can become invalid at any point...
2018-11-23 12:04:02 +01:00
Émilie Feral
3412463e84 [graph] Fix Graph controllers to take a StorageCartesianFunction instead
of a CartesianFunction
2018-11-23 12:04:01 +01:00
Émilie Feral
7cd05e520a [apps] Graph: avoid reloading when highlighting the area under curve
(which does change in the Graph app)
2018-01-30 18:19:27 +01:00
Émilie Feral
c9be0f18bc [apps] Graph: implement coloring area under curve in graph view 2018-01-30 18:19:27 +01:00
Émilie Feral
53b90034da [apps] Graph: In graphview, replace the type by a boolean to decide
wether to draw tangent
2018-01-30 18:19:27 +01:00
Émilie Feral
31afd260a4 [apps] Graph: Change tangent color 2018-01-30 18:19:27 +01:00
Émilie Feral
fe509f6488 [apps] Graph: avoid banner blinking when displaying Tangent 2018-01-30 18:19:27 +01:00
Émilie Feral
f19e31f4cd [apps] Specialize GraphView in Type (Tangent, Default ...) instead of
GraphController
2018-01-30 18:19:27 +01:00
Émilie Feral
ef8f5e07c2 [apps] In CurveView, replace the virtual method evaluateModelWithParameter by a function given as parameter (to be able to call Curve view methods with different implementation of evaluateModelWithParameter) 2018-01-30 18:19:27 +01:00
Émilie Feral
0bd796310c [apps/shared] Move partial classes from grpah/graph to shared to be used
by sequence

Change-Id: I0e18be96cfaa92b6a51836ae8aa072fa6cf0f1af
2017-03-03 09:38:46 +01:00
Émilie Feral
6b524737b4 [apps/graph] Change name: function->cartesian_function
Change-Id: I138bd13fec8514144cfde7164ec9aff081454609
2017-02-20 09:39:25 +01:00
Émilie Feral
e5e9f7cc41 [poincare][apps] Make preferences a const object accessible from
anywhere (poincare and apps)

Change-Id: I49cc6bf940d1efeb6b153daac949ffcb23999a8d
2017-02-20 09:39:24 +01:00
Émilie Feral
23026b6718 [apps/shared] Namespace shared
Change-Id: I6dec7ce900bb4e801a25c567fe5e242cb744cf29
2017-02-13 17:15:06 +01:00
Émilie Feral
69e46f4958 [poincare] Namespace Poincare
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
39dab5125c [apps] Add angle unit preference in apps
Change-Id: I25eb760883d164563cb3059d73e8d1fff92ad6da
2017-02-06 16:30:48 +01:00
Émilie Feral
c3008ca360 [apps] Improvements of MVC structure regarding curve views and ranges
Change-Id: Iec8031dbf349c34c18694dffabd02ef9c88ebf2d
2017-01-18 14:31:42 +01:00
Émilie Feral
c19ecaeebe [apps] In curve view, avoid to reload the whole view when reloading
cursor

Change-Id: Ie8c0e100159201cc6b11122eeb567c68092a7b06
2017-01-15 20:09:18 +01:00
Émilie Feral
affda5eae9 [apps] Modular reimplementation of application models (stores and
ranges) and of curve views/curve view controllers.

Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
2017-01-10 13:35:19 +01:00
Émilie Feral
6e9528103b [apps] Factorize banner view implementation.
Change-Id: Iedc4350d2bed0f1b1c597c2492e028293f58d5f2
2017-01-09 15:08:56 +01:00
Émilie Feral
498aa77268 [apps/graph/graph][apps] Factorize methods to draw grid in curve views
to be used in regression app

Change-Id: I5c76c3bb6eb5bdccf799098278734a5c8ad7c32d
2017-01-09 15:08:55 +01:00
Émilie Feral
2293d9f933 [apps] Factorize the reload methods in all subclasses of curve view
Change-Id: I77e04df7ab36b46582c221f7e07797e6d1bce0e2
2017-01-09 15:08:55 +01:00
Émilie Feral
a75e163e32 [apps/graph] Make graph view inherit from curve view with banner and
cursor

Change-Id: Ibc3239a1e0e16d53510f8e1a75699a8a00a6d91e
2017-01-09 15:08:55 +01:00
Émilie Feral
3c313cc50d [apps/graph/graph] Make graph view inherit from curve view with banner
Change-Id: Iec003055a0974d0111f81d68771982192ffb8d1f
2017-01-09 15:08:54 +01:00
Émilie Feral
b8eba2c42a [apps/graph/graph] Make the cursor position belong to th emodel
"GraphWindow"

Change-Id: I8cdcda85f0e29e4b678829f39b8bd212cd8d1086
2017-01-09 15:08:54 +01:00
Émilie Feral
699ee7ddc5 [apps] CHange name in curve view:
evaluateCurveAtAbscissa->evaluateModelWithParameter

Change-Id: Iface679b85d20fc59e8197eb14b516ad86d97862
2017-01-09 15:08:54 +01:00
Émilie Feral
e8bb416bec [apps] In cuve view, always put KDContext and KDRect as first parameters
Change-Id: I606f6bbe798fba9c75cd98e8857cd020b0eb0ca0
2017-01-09 15:08:54 +01:00
Émilie Feral
4d62c6c9bd [apps] Use curve view window in the abstract class curve view
Change-Id: I2c54cb111944f294e00d45244f23cdda9984bf02
2016-12-21 14:50:36 +01:00
Émilie Feral
ba67ef4a2e [apps/graph/graph] Add a banner view in the graph view
Change-Id: Iafa0dcfc730911264d5b045c14bde54f432f53a2
2016-12-21 14:50:35 +01:00
Émilie Feral
c38adbd6c5 [apps] In curve view, add a boolean to decide whether to shift the
origin label

Change-Id: Id5701df32e08030cfd3a2c9e3f7fbc08fc1e2136
2016-12-16 15:15:55 +01:00
Émilie Feral
38b8c6dbd7 [apps] Change curve view API
Change-Id: I77984536d1a8b4197b02e2f005590537a46d8084
2016-12-15 13:51:41 +01:00
Émilie Feral
7af3979d3b [poincare] Change Context API
Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
2016-12-15 13:51:41 +01:00
Émilie Feral
ca4b5d511a [apps/graph/graph] Optimize the redrawing of the graph view when only
the cursor has changed

Change-Id: I34fbe3d4599474ae821f508078d5236362260dc0
2016-12-15 13:51:32 +01:00
Émilie Feral
50513126d7 [apps/graph/graph] Delete antialiasing on cursor
Change-Id: If2f69c07997f8c8f6298cb64743a767747e4e72a
2016-12-13 15:10:03 +01:00
Émilie Feral
140e943021 [apps/graph/graph] Merge two redundant methods in graph view
Change-Id: Icc154656143e81696abba18574c3806bcfdd4c7a
2016-12-13 15:10:03 +01:00
Émilie Feral
32d9f9516a [apps] Change name: scale->gridUnit
Change-Id: I1616bdf2c317fa2c8d35ff243ca5ae125ef9a799
2016-12-13 15:10:02 +01:00
Émilie Feral
9b2e39f2cf [apps/graph/graph] Add methods to the graph window model
Change-Id: I3361b76c87a79d0f997e51ad62c7687b2ac313e5
2016-12-12 15:31:25 +01:00
Émilie Feral
7554046ecd [apps/graph/graph] Change name: AxisInterval-> GraphWindow
Change-Id: Ia67c7a3feaeb5a0db34099f65e6335fdbf91e1ef
2016-12-09 11:26:03 +01:00
Émilie Feral
4bef23b7e2 [apps] Make the abstract curve view hold methods to draw labels
Change-Id: Ib1451b51c6d16db27487b5c9d34cd345fcf379f0
2016-12-08 15:21:52 +01:00
Émilie Feral
58185a6237 [apps/graph/graph] Draw labels directly in graph view instead of using
subviews

Change-Id: Ic500d480e898b95995d8dbfb88bebb4b7fb9b3c5
2016-12-08 15:21:52 +01:00
Émilie Feral
eeb17625d1 [apps] Create a curve view to draw curves from any expression
Change-Id: I6e1183a560042688c596e3aa2385ab3bf0dcda2c
2016-12-08 15:21:52 +01:00
Émilie Feral
cb4eb743fb [apps] clean
Change-Id: I0f1709c1559109628ffe0f21a0b29751cfca46aa
2016-12-08 15:21:52 +01:00
Émilie Feral
89248a9072 [apps/graph/graph] Implement "aller a (abscisse)"
Change-Id: I167f38b61be530fecb8c276f61785a7d1c373c36
2016-12-08 15:21:52 +01:00
Émilie Feral
8942c00a46 [apps/graph/graph] Move window when the cursor goes out of view
Change-Id: I098f1911fcefeb2f42886a33f078fa12b34fc273
2016-12-08 15:21:52 +01:00
Émilie Feral
df790ac071 [apps/graph/graph] display correctly cursor at the right position
Change-Id: I9244d06fd92f51b7fd3cc5d8093b41e0818d962d
2016-12-08 15:21:52 +01:00
Émilie Feral
4b84f63ef1 [apps/graph/graph] anti-aliasing on the cursor in graph view
Change-Id: I9943d0dc09b0b950910b988f348374b1fcfc3d85
2016-12-08 15:21:52 +01:00
Émilie Feral
70aa44390d [apps/graph/graph] Improve cursor drawing
Change-Id: I6f8e29d107bac410bd502bf54b5f9b955ff9c9d7
2016-12-08 15:21:52 +01:00
Émilie Feral
f7079bf876 [apps/graph/graph] Handle the cursor moves in the graph view
Change-Id: I5db563e4b88a6dd33dd6fc9ce5a4cf1337d43c31
2016-12-08 15:21:52 +01:00