[poincare/zoom] Move automatic zoom to Poincare

Change-Id: I7a70ab54b33b9150682cc4f999ff4999a8288b7f
This commit is contained in:
Gabriel Ozouf
2020-09-28 15:18:17 +02:00
committed by Émilie Feral
parent 7499a9e0a4
commit d2b36be846
9 changed files with 299 additions and 256 deletions

View File

@@ -55,7 +55,7 @@ public:
virtual Poincare::Expression sumBetweenBounds(double start, double end, Poincare::Context * context) const = 0;
// Range
virtual void rangeForDisplay(float * xMin, float * xMax, float * yMin, float * yMax, Poincare::Context * context, bool tuneXRange = true) const;
virtual void rangeForDisplay(float * xMin, float * xMax, float * yMin, float * yMax, Poincare::Context * context, bool tuneXRange = true) const = 0;
protected:
/* RecordDataBuffer is the layout of the data buffer of Record
@@ -93,11 +93,9 @@ protected:
bool m_active;
};
void protectedRefinedYRangeForDisplay(float xMin, float xMax, float * yMin, float * yMax, Poincare::Context * context, bool boundByMagnitude) const;
void protectedRangeForDisplay(float * xMin, float * xMax, float * yMin, float * yMax, Poincare::Context * context, bool tuneXRange, bool boundByMagnitude) const;
private:
virtual void refinedYRangeForDisplay(float xMin, float xMax, float * yMin, float * yMax, Poincare::Context * context) const = 0;
RecordDataBuffer * recordData() const;
};