mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
This method of InteractiveCurveViewRangeDelegate was only used to compute the Y range when Yauto was on. Change-Id: I9b688a87e16fc58c7d2b00eb071076b98f945df6
28 lines
747 B
C++
28 lines
747 B
C++
#ifndef SHARED_INTERACTIVE_CURVE_VIEW_DELEGATE_H
|
|
#define SHARED_INTERACTIVE_CURVE_VIEW_DELEGATE_H
|
|
|
|
#include <assert.h>
|
|
|
|
namespace Shared {
|
|
|
|
class InteractiveCurveViewRange;
|
|
|
|
class InteractiveCurveViewRangeDelegate {
|
|
public:
|
|
static constexpr float k_defaultXHalfRange = 10.0f;
|
|
bool didChangeRange(InteractiveCurveViewRange * interactiveCurveViewRange);
|
|
virtual float interestingXMin() const { return -k_defaultXHalfRange; }
|
|
virtual bool defaultRangeIsNormalized() const { return false; }
|
|
virtual void interestingRanges(InteractiveCurveViewRange * range) const { assert(false); }
|
|
virtual float addMargin(float x, float range, bool isVertical, bool isMin) = 0;
|
|
protected:
|
|
struct Range {
|
|
float min;
|
|
float max;
|
|
};
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|