Numworks Epsilon  1.4.1
Graphing Calculator Operating System
interactive_curve_view_range_delegate.h
Go to the documentation of this file.
1 #ifndef SHARED_INTERACTIVE_CURVE_VIEW_DELEGATE_H
2 #define SHARED_INTERACTIVE_CURVE_VIEW_DELEGATE_H
3 
4 namespace Shared {
5 
6 class InteractiveCurveViewRange;
7 
9 public:
10  bool didChangeRange(InteractiveCurveViewRange * interactiveCurveViewRange);
11  virtual float interestingXRange();
12 protected:
13  struct Range {
14  float min;
15  float max;
16  };
17 private:
18  virtual Range computeYRange(InteractiveCurveViewRange * interactiveCurveViewRange) = 0;
19  virtual float addMargin(float x, float range, bool isMin) = 0;
20 };
21 
22 }
23 
24 #endif
bool didChangeRange(InteractiveCurveViewRange *interactiveCurveViewRange)