mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
23 lines
646 B
C++
23 lines
646 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;
|
|
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;
|
|
virtual void updateZoomButtons() = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|