6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef SHARED_INTERACTIVE_CURVE_VIEW_DELEGATE_H
#define SHARED_INTERACTIVE_CURVE_VIEW_DELEGATE_H
namespace Shared {
class InteractiveCurveViewRange;
class InteractiveCurveViewRangeDelegate {
public:
bool didChangeRange(InteractiveCurveViewRange * interactiveCurveViewRange);
protected:
struct Range {
float min;
float max;
};
private:
virtual Range computeYRange(InteractiveCurveViewRange * interactiveCurveViewRange) = 0;
virtual float addMargin(float x, float range, bool isMin) = 0;
};
}
#endif
|