diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 03:09:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 03:09:09 +0100 |
commit | ff0d3aefe8d14796f636b890595f12b5b08d6d2f (patch) | |
tree | f9b2483b5926c6e7627f49aaf4121463b20a31b1 /spline-widget/spline.hpp | |
parent | cb5873922f4528b80d40e13b05bd7590421d79ee (diff) |
spline-widget: remove camel case
My eyes bleed a bit less
Diffstat (limited to 'spline-widget/spline.hpp')
-rw-r--r-- | spline-widget/spline.hpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/spline-widget/spline.hpp b/spline-widget/spline.hpp index adabd33c..660757f2 100644 --- a/spline-widget/spline.hpp +++ b/spline-widget/spline.hpp @@ -44,7 +44,7 @@ class OPENTRACK_SPLINE_EXPORT spline final { double precision(const QList<QPointF>& points) const; void update_interp_data(); - float getValueInternal(int x); + float get_value_internal(int x); void add_lone_point(); static bool sort_fn(const QPointF& one, const QPointF& two); @@ -72,8 +72,8 @@ public: void save(); void set_bundle(bundle b); - qreal maxInput() const; - qreal maxOutput() const; + qreal max_input() const; + qreal max_output() const; spline(); spline(qreal maxx, qreal maxy, const QString& name); ~spline(); @@ -81,20 +81,20 @@ public: spline& operator=(const spline&) = default; spline(const spline&) = default; - float getValue(double x); + float get_value(double x); float get_value_no_save(double x); - bool getLastPoint(QPointF& point); - void removePoint(int i); - 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); - void setMaxOutput(qreal MaxOutput); - - void setTrackingActive(bool blnActive); + DEFUN_WARN_UNUSED bool get_last_value(QPointF& point); + void remove_point(int i); + void clear(); + + void add_point(QPointF pt); + void add_point(double x, double y); + void move_point(int idx, QPointF pt); + QList<QPointF> get_points() const; + void set_max_input(qreal MaxInput); + void set_max_output(qreal MaxOutput); + + void set_tracking_active(bool value); bundle get_bundle(); void recompute(); |