summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r--spline-widget/functionconfig.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h
index 145ee14e..cac3c65c 100644
--- a/spline-widget/functionconfig.h
+++ b/spline-widget/functionconfig.h
@@ -39,23 +39,15 @@ private:
MyMutex _mutex;
QPointF last_input_value;
- volatile bool activep;
double max_x;
double max_y;
-
+ volatile bool activep;
State cur, saved;
public:
double maxInput() const { return max_x; }
double maxOutput() const { return max_y; }
Map();
- Map(double maxx, double maxy)
- {
- setMaxInput(maxx);
- setMaxOutput(maxy);
- if (cur.input.size() == 0)
- cur.input.push_back(QPointF(maxx, maxy));
- reload();
- }
+ Map(double maxx, double maxy);
float getValue(float x);
bool getLastPoint(QPointF& point);