mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
37 lines
911 B
C++
37 lines
911 B
C++
#ifndef SHARED_MEMOIZED_CURVE_VIEW_RANGE_H
|
|
#define SHARED_MEMOIZED_CURVE_VIEW_RANGE_H
|
|
|
|
#include "curve_view_range.h"
|
|
|
|
namespace Shared {
|
|
|
|
class MemoizedCurveViewRange : public CurveViewRange {
|
|
public:
|
|
MemoizedCurveViewRange();
|
|
//CurveViewWindow
|
|
float xMin() const override { return m_xMin; }
|
|
float xMax() const override { return m_xMax; }
|
|
float yMin() const override { return m_yMin; }
|
|
float yMax() const override { return m_yMax; }
|
|
float xGridUnit() const override { return m_xGridUnit; }
|
|
float yGridUnit() const override { return m_yGridUnit; }
|
|
virtual void setXMin(float f);
|
|
virtual void setXMax(float f);
|
|
virtual void setYMin(float f);
|
|
virtual void setYMax(float f);
|
|
float defaultRangeLengthFor(float position) const;
|
|
|
|
protected:
|
|
// Window bounds of the data
|
|
float m_xMin;
|
|
float m_xMax;
|
|
float m_yMin;
|
|
float m_yMax;
|
|
float m_xGridUnit;
|
|
float m_yGridUnit;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|