Commit Graph

49 Commits

Author SHA1 Message Date
É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
Émilie Feral
9c677a8483 [apps/graph/graph] Improve the position of the 0 label on both axes
Change-Id: I76a4eeec4b2f08b29fd434f1517eebcc92a395fd
2016-12-08 15:21:52 +01:00
Émilie Feral
6b6a60403e [apps/graph/graph] Add labels to axis in graph view
Change-Id: I306f5d06df48c73820b5512c8f069816e746b5da
2016-12-08 15:21:52 +01:00
Émilie Feral
a0c9b858c5 [apps/graph/graph] Draw grids in graph view according to xScale and
yScale

Change-Id: I2c47a4a68fb5ccfa5c7097a959b5a8e222d47193
2016-12-08 15:21:52 +01:00
Émilie Feral
40f7181766 [apps/graph/graph] add a method reload to graph view
Change-Id: I483ad9617992a89a460e33701ce44148e21f3616
2016-12-08 15:21:52 +01:00
Émilie Feral
b7a8b692eb [apps/graph/graph] Draw curves with antialiazing
Change-Id: Ica25684001e993d1c8946f12ccf40725eba7ceb2
2016-11-23 14:29:52 +01:00
Émilie Feral
5c846229cd [apps/graph/graph] Use the axis interval model to parametrize the graph view
Change-Id: I7d4516725fa29988322720e46de70f04aa910094
2016-11-23 14:29:51 +01:00
Émilie Feral
beaedc8888 [apps/graph] Redefinition of active function
Change-Id: I23e83a1107daf85bdf99c7b100d8bca6d724c919
2016-11-23 12:17:31 +01:00
Émilie Feral
f448cb319a [apps/graph] Make continuous curves in graph (instead of dotted curves)
Change-Id: Icc9d85e22b94e8f7d2de1f1a5f5d528c84e3d865
2016-11-21 14:10:32 +01:00
Romain Goyet
d6e96fe143 [kandinsky] Explicit color constructors
Change-Id: Ifd4a0c281a7c6aded225d06295f4d79039e4e848
2016-11-21 14:06:10 +01:00
Émilie Feral
a96490d232 [Kandinsky] change method name: blendRectWithMask
Change-Id: Iea893d2d545aa792c305a7d5880516a7f25e928c
2016-11-18 11:46:30 +01:00
Émilie Feral
f4a95cb43f [apps/graph] Replace multiple pointers to evaluate context by
app()->evaluateContext()

Change-Id: I21035aa357e9d2f2c471ad5751bed59cf05cebf3
2016-11-04 17:37:23 +01:00
Émilie Feral
e5ff8f65c3 [apps/graph] Handle undefined function
Change-Id: Id26e0f81ba5c1446655f33b2c63f97ab5b684e41
2016-10-24 15:24:01 +02:00
Émilie Feral
96a9ac3a9c [apps/graph] Wrap in namespace Graph
Change-Id: I08b37438f42749ff86e105770cd5aa566f84a237
2016-10-14 11:47:19 +02:00
Émilie Feral
fef2e3ae68 [apps/graph] use GraphContext to evaluate function at abscissa
Change-Id: Id9832203bb550a72296d1b9396b6244f9bd8bcce
2016-10-14 10:24:18 +02:00
Émilie Feral
3360275cea [apps/graph/graph] call method to evaluate functions to display curves
Change-Id: I87e6cce28d491b6298ac5a10b2d2b518051d3fd4
2016-10-12 17:39:53 +02:00
Émilie Feral
c2981505c1 [apps/graph] draw only active functions
Change-Id: I83daefa66e17843909c4f2aeab836cbb7affb56e
2016-10-04 12:26:30 +02:00
Romain Goyet
14cf96157c [apps/graph] Function store a color
Change-Id: I1339f999b9c41a4293dfc5211d2183db46300ecf
2016-08-29 13:38:06 +02:00
Romain Goyet
00afebbe2d GraphApp: Use a FunctionStore
Change-Id: Ib75947c40167489726fafc493ccb0ebf2862142b
2016-08-22 14:40:07 +02:00
Romain Goyet
5de28e01db Migrate Kandinsky to C++
Change-Id: I2752a8db84ad0bb817119cf6c2993c1622621150
2016-07-21 13:42:32 +02:00
Romain Goyet
30aa62e3c5 Escher: Introduce the TiledView
Change-Id: I97d612cf89bd9cf45f8b440881918b9626cd65f6
2016-07-21 11:32:33 +02:00
Romain Goyet
8e4b1666bb Kandinsky: KDFillRect takes a pattern, always
Change-Id: I32113345d742f21c0e238c1707bcee0116694d6f
2016-07-05 13:32:47 +02:00
Romain Goyet
1cdb7cac9d Graph: Secondary grid
Change-Id: Ie4c38ce7b0db3c31d85300a89619883b1bf5109e
2016-06-21 14:06:01 +02:00
Romain Goyet
b848463d66 Graph: Factor the axis drawing methods
Change-Id: Ie301b2856d5d769ee82c72a81e31309fdbd3d0b9
2016-06-21 12:18:54 +02:00
Romain Goyet
eed0f4af95 Graph: Draw axis and grid
Change-Id: I06d01dfbf7f45920aa32fd5c85819c75309fbfc4
2016-06-21 11:45:58 +02:00
Romain Goyet
682c3bbc20 App: Move the app in the apps/ folder
Change-Id: I9c6a3eb58c718f1c796652e94534b53a2a302f8b
2016-06-20 18:04:31 +02:00