Gabriel Ozouf
a6db9688cd
[apps/function] Factorize zoom in Function class
...
The new zoom implemented for ContinuousFunction is now factorized inside
Function to benefit the Sequence class. The same things is done to code
added to Graph::GraphController, which is moved into
FunctionGraphController.
This removes the reimplementation of several methods, most notably
computeYRange, as the implementation for function is general enough to
work on sequences.
Change-Id: I9b8211354064f46c3fa3dde3191dcb39d627a1d2
2020-11-04 15:30:53 +01:00
Romain Goyet
950862f8d0
Use std::min and std::max
2020-04-14 09:31:02 -04:00
Léa Saviot
97b495a4dc
[apps/interactive_curve_view_range] Orthonormal keep max grid unit
...
When setting the axes then putting on the orthnormalization, 2 * (max of
the two axes units) is put to 1 cm instead of doing 2 units = 1cm. This
roughly keeps the configuration of the window.
2020-02-12 15:13:21 +01:00
Émilie Feral
3998877740
[apps/sequence] CurveViewRange: update the grid unit when change the
...
range
2019-09-06 16:16:26 +02:00
Émilie Feral
45d42287e2
[apps/shared] MemoizedCurveViewRange is composed of two Range1D to
...
factorize setters and getters
2019-09-03 15:34:35 +02:00
Ruben Dashyan
5dc429dae5
[apps/*curve_view_range] Use existing method
2019-08-29 15:13:41 +02:00
Ruben Dashyan
cf09961e16
[apps/sequence/graph/curve_view_range] Use existing method
2019-08-29 15:13:41 +02:00
Ruben Dashyan
554175d725
[apps/sequence/graph/curve_view_range] Do not set m_xMin|Max twice
2019-08-29 15:13:41 +02:00
Ruben Dashyan
8957cb9fea
[apps/shared/curve_view_range] Define and use x|yCenter accessors
2019-08-29 15:13:41 +02:00
Ruben Dashyan
e99196b2ea
[apps/interactive_curve_view_range] Clean yAuto
2019-08-29 15:13:41 +02:00
Ruben Dashyan
67f9f79322
[apps] Implement InteractiveCurveViewController::isCursorVisible
...
It was a pure virtual method implemented in derived classes
Shared::FunctionGraphController,
Regression::GraphController.
InteractiveCurveViewRange does not need anymore to hold CurveViewCursor
* m_cursor.
2019-05-03 15:54:21 +02:00
Léa Saviot
5d1ef0f3f0
[apps/sequence] Use first ranks when computing graph range
...
Put two sequences u(n+1)=u(n) and v(n+1) = v(n), u(100) = 50, v(50) = 8.
Basic settings computed the x range as [0,10] before, now it is
[50,110].
2019-01-10 11:42:05 +01:00
Léa Saviot
6720ad7b38
[apps] Rename interestingXRange as interestingXHalfRange
2019-01-10 11:42:05 +01:00
Léa Saviot
f2310a8814
[apps] Change CurveViewRange::computeGridUnit parameters
2019-01-10 11:42:02 +01:00
Léa Saviot
cea413e91d
[apps] Fix Orthonormal setting in graphs
...
It was not perfectly orthormal.
2019-01-10 11:42:02 +01:00
Lionel Debroux
1a8c6b6ae9
[poincare, escher, ion, apps] Split the huge umbrella header poincare.h, to reduce build time.
...
This should be a NFC, but surprisingly, it also reduces size... so what does it change ?
2018-10-23 11:49:09 +02:00
Émilie Feral
48f890ef93
[poincare] AngleUnit, FormatComplex and PrintFloatMode are now
...
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Léa Saviot
b67e04214f
[apps] Coding style.
...
Change-Id: I020cc98f87999b69e9c0d969126e9c1ae2f811f2
2018-04-06 14:31:48 +02:00
Zhaofeng Li
6679cb0a20
[apps] Fix exam mode
2018-04-04 13:42:00 +02:00
Émilie Feral
05055c387f
[apps] Graph: when setting default range of a function, take
...
into account the potential periodicity
2018-03-22 10:48:06 +01:00
Jacob Young
da1e66e798
Fix #115 by fixing the math.h and cmath includes.
2017-10-13 18:08:15 +02:00
Émilie Feral
1964d61fdc
[libaxx] add cmath and use cmath instead of math.h when required
...
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
0ec90c36f8
[apps/shared] In range, never set NAN values
...
Change-Id: I7511952acafdedb5b85aeee38232abe153523a49
2017-04-13 16:04:49 +02:00
Émilie Feral
bb718b07c7
[apps/sequence] Clip default range initialisation to 0 on X range for
...
sequences
Change-Id: I501a397ce3016ba605bd9aca950b87a2ca295000
2017-03-28 14:49:27 +02:00
Émilie Feral
5600e52014
[apps/sequence] Create a class curve view range
...
Change-Id: I72786a6efb6379604634abae63eb93ba758691a4
2017-03-03 09:38:52 +01:00