summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-08 05:37:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-08 05:37:46 +0100
commitec4c9bb2b53d351dd20f3db342a79a9a75fbc5b9 (patch)
treef2a48069188b5eedb6eda4ede3dc91b19371773a /spline-widget/spline.hpp
parentbe051e0b0d1207c2cc1932e647ddfeeb16b0b3fe (diff)
spline-widget: lazy-recompute spline buckets
Diffstat (limited to 'spline-widget/spline.hpp')
-rw-r--r--spline-widget/spline.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/spline-widget/spline.hpp b/spline-widget/spline.hpp
index 37789c00..adabd33c 100644
--- a/spline-widget/spline.hpp
+++ b/spline-widget/spline.hpp
@@ -62,6 +62,7 @@ class OPENTRACK_SPLINE_EXPORT spline final
QPointF last_input_value;
qreal max_x, max_y;
volatile bool activep;
+ bool validp;
public:
using settings = spline_detail::settings;
@@ -87,6 +88,7 @@ public:
void removeAllPoints();
void addPoint(QPointF pt);
+ void addPoint(double x, double y);
void movePoint(int idx, QPointF pt);
QList<QPointF> getPoints() const;
void setMaxInput(qreal MaxInput);
@@ -99,6 +101,6 @@ public:
mem<settings> get_settings();
mem<const settings> get_settings() const;
- using points_t = decltype(s->points.get());
+ using points_t = decltype(s->points());
int get_point_count() const;
};