Commit Graph

134 Commits

Author SHA1 Message Date
Léa Saviot
a72f42d75e [apps/graph] Hangle displayed derivative for non cartesian functions 2019-09-10 10:33:40 +02:00
Léa Saviot
99aee59e5e [apps/graph] Default window is -10..10 / -10..10 2019-09-09 14:07:49 +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
Léa Saviot
a4099c4c3e [apps/graph] xAuto and YAuto for polar/param 2019-09-03 14:21:14 +02:00
Léa Saviot
18a458bae5 [apps/graph] init Range to -5..5 if polar/param 2019-09-02 17:56:56 +02:00
Émilie Feral
a7285ba1ca [apps/graph] Implement defaultCursorT for FunctionGraphController 2019-09-02 16:55:39 +02:00
Émilie Feral
f017ac014d [apps/graph] GraphController: when moving cursor vertically (on non
cartesian functions), going down increases the function index (to mimic
their vertical order in the function list)
2019-09-02 16:55:39 +02:00
Émilie Feral
0f43a04225 [apps/graph] Implement move cursor vertically on graph with
parametric/polar curves
2019-08-30 17:15:12 +02:00
Léa Saviot
2071a65d43 [apps] Code cleaning 2019-08-30 13:49:49 +02:00
Ruben Dashyan
366daa9c88 [apps] Remove dummy checks in graph/graph_controller and shared/function_graph_controller 2019-08-29 15:13:40 +02:00
Léa Saviot
61cf762eef [poincare] Expression::ReductionContext 2019-08-08 16:29:37 +02:00
Ruben Dashyan
3e992a3560 [apps] Replace app() by textFieldDelegateApp() in TextFieldDelegates 2019-07-19 15:06:25 +02:00
Ruben Dashyan
2c9489966d [apps/graph/graph] GraphController accesses the app directly 2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a [apps] Get rid of App casts 2019-07-19 15:06:25 +02:00
Ruben Dashyan
633dfaf043 [apps/graph] Replace magic numbers 2019-05-03 15:54:21 +02:00
Ruben Dashyan
4d640e2916 [apps] XYBannerView: prepare constructor so the class may contain TextField 2019-05-03 15:54:21 +02:00
Ruben Dashyan
f6ceae3b8b [apps] Factorize SimpleInteractiveCurveView::moveCursorHorizontally 2019-05-03 15:54:21 +02:00
Ruben Dashyan
e7add02912 [apps] Remove FunctionGraphController::cursorView() virtual method
It was implemented by the Graph and Sequence GraphController derived
classes and was used
  1) in FunctionGraphController::viewWillAppear to set the cursorView
specific to each derived class,
  2) in FunctionGraphController::cursor/displayBottomMarginRatio()
methods.

Instead
  1) the viewWillAppear method of each derived classes sets its
cursorView itself
  2) one may already get the cursorView through curveView().
2019-05-03 15:54:21 +02:00
É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
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
869e534b4b [apps] MAke some InteractiveCurveViewRangeDelegate methods const 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
303ab7f009 [apps/graph] Clean code in graph/graph_controller.cpp 2019-01-10 11:42:02 +01:00
Émilie Feral
90befab6ce [shared] Change name: StorageExpressionModel::expression --> expressionReduced 2018-11-23 12:04:08 +01: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
698332c355 [escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
InputTextDelegate to avoid diamond inheritance
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
Léa Saviot
8bffbf6ae7 [apps/graph] Display all data in banner view 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
Léa Saviot
522f5e781e [poincare] Function expression 2018-11-23 12:03:58 +01:00
Émilie Feral
1d92883aed [graph] Fix GraphController with new Poincare API 2018-09-06 14:23:57 +02:00
Émilie Feral
48f890ef93 [poincare] AngleUnit, FormatComplex and PrintFloatMode are now
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Émilie Feral
e61a408a0a [poincare] Get rid of AngleUnit::Default 2018-07-18 17:09:07 +02:00
Émilie Feral
66d920a280 [shared] Factorize GraphController::initCursorParameters of Graph and
Sequence
2018-07-06 14:00:32 +02:00
Émilie Feral
9dc775295b [graph] Graph: try to avoid selecting function whose value is infinite
by default
2018-07-06 14:00:32 +02:00
Émilie Feral
d36c0c8746 [graph] Fix bug when initializing the selected function on graph 2018-07-06 14:00:32 +02:00
Léa Saviot
a166903659 [apps/graph] Fix graph selection when a function is undef
For instance, input f(x)=1/0 and g(x)=1, the graph tab now selects g
correctly
2018-06-26 13:46:00 +02:00
Émilie Feral
2d580faf51 [solver] Ignore empty equation when resolving systems 2018-06-07 14:46:14 +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
Émilie Feral
9cd50d8d9a [apps] Graph/Sequence: set different cursors for Sequence and Graph 2018-01-30 18:53:28 +01:00
Émilie Feral
95f0efaf9f [apps] Graph/Sequence: the function selected by the cursor has to be
save in the Snapshot to avoid weird selection when rebulding the app
2018-01-30 18:53:28 +01:00
Émilie Feral
89c201a7f7 [apps] Graph: create an IntersectionGraphController 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
5c64f76735 [apps] Graph: redesign TangentGraphController implementation: use
different controller with common parent class
2018-01-30 18:19:27 +01:00
Émilie Feral
7ce68d0a11 [apps] Graph: break GraphController into GraphControllerHelper and
GraphController
2018-01-30 18:19:27 +01:00
Émilie Feral
e1b09b639d [apps] Graph: setType of the graph controller before updating the stack
(to reload the right banner view)
2018-01-30 18:19:27 +01:00
Émilie Feral
d1808ae26f [apps] Graph: change banner view when displaying Tangent in graph view 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