mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 08:41:01 +01:00
The new zoom implemented for ContinuousFunction is now factorized inside Function to benefit the Sequence class. The same things is done to code added to Graph::GraphController, which is moved into FunctionGraphController. This removes the reimplementation of several methods, most notably computeYRange, as the implementation for function is general enough to work on sequences. Change-Id: I9b8211354064f46c3fa3dde3191dcb39d627a1d2
21 lines
486 B
C++
21 lines
486 B
C++
#ifndef SEQUENCE_CURVE_VIEW_RANGE_H
|
|
#define SEQUENCE_CURVE_VIEW_RANGE_H
|
|
|
|
#include "../../shared/interactive_curve_view_range.h"
|
|
|
|
namespace Sequence {
|
|
|
|
class CurveViewRange : public Shared::InteractiveCurveViewRange {
|
|
public:
|
|
CurveViewRange(Shared::InteractiveCurveViewRangeDelegate * delegate = nullptr);
|
|
void roundAbscissa() override;
|
|
void normalize() override;
|
|
void setTrigonometric() override;
|
|
private:
|
|
constexpr static float k_displayLeftMarginRatio = 0.1f;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|