1 #ifndef SHARED_INTERACTIVE_CURVE_VIEW_RANGE_H 2 #define SHARED_INTERACTIVE_CURVE_VIEW_RANGE_H 27 void zoom(
float ratio,
float x,
float y);
34 void panToMakePointVisible(
float x,
float y,
float topMarginRatio,
float rightMarginRatio,
float bottomMarginRation,
float leftMarginRation);
35 bool isCursorVisible(
float topMarginRatio,
float rightMarginRatio,
float bottomMarginRation,
float leftMarginRation);
38 static float clipped(
float f,
bool isMax);
41 constexpr
static float k_minFloat = 1E-8f;
42 constexpr
static float k_upperMaxFloat = 1E+8f;
43 constexpr
static float k_lowerMaxFloat = 9E+7f;
44 constexpr
static float k_maxRatioPositionRange = 1E5f;
void setYMax(float f) override
InteractiveCurveViewRangeDelegate * m_delegate
void zoom(float ratio, float x, float y)
void setYAuto(bool yAuto)
void setYMin(float f) override
virtual void setDefault()
void panWithVector(float x, float y)
virtual void setTrigonometric()
uint32_t rangeChecksum() override
void(InteractiveCurveViewRange::* RangeMethodPointer)()
bool isCursorVisible(float topMarginRatio, float rightMarginRatio, float bottomMarginRation, float leftMarginRation)
float(InteractiveCurveViewRange::* ParameterGetterPointer)()
void panToMakePointVisible(float x, float y, float topMarginRatio, float rightMarginRatio, float bottomMarginRation, float leftMarginRation)
InteractiveCurveViewRange(CurveViewCursor *cursor, InteractiveCurveViewRangeDelegate *delegate=nullptr)
void setXMin(float f) override
void setXMax(float f) override
void(InteractiveCurveViewRange::* ParameterSetterPointer)(float)
void centerAxisAround(Axis axis, float position)
virtual void roundAbscissa()
void setDelegate(InteractiveCurveViewRangeDelegate *delegate)
static float clipped(float f, bool isMax)
void setCursor(CurveViewCursor *cursor)