summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-07 20:52:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-07 21:36:46 +0200
commit7eb9227aab7b18c9ab6fe31775f1d0b85cc5b7d0 (patch)
treebbe97174e79bb07300044af98892d48bf1328810 /qfunctionconfigurator/functionconfig.h
parent3b094d1012fdd67994560b73f820b62019601fde (diff)
qfc: revert to floats as in rc15
Issue: #248 Issue: #231
Diffstat (limited to 'qfunctionconfigurator/functionconfig.h')
-rw-r--r--qfunctionconfigurator/functionconfig.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h
index 886ce06a..25e072d2 100644
--- a/qfunctionconfigurator/functionconfig.h
+++ b/qfunctionconfigurator/functionconfig.h
@@ -19,19 +19,16 @@
class Map {
private:
- static constexpr int value_count = 5000;
- using num = double;
- using integral = std::uint32_t;
- static constexpr integral integral_max = std::numeric_limits<integral>::max();
+ static constexpr int value_count = 10000;
struct State {
QList<QPointF> input;
- std::vector<integral> data;
+ std::vector<float> data;
};
int precision() const;
void reload();
- num getValueInternal(int x);
+ float getValueInternal(int x);
MyMutex _mutex;
QPointF last_input_value;
@@ -52,7 +49,7 @@ public:
lazy_reload = true;
}
- num getValue(num x);
+ float getValue(float x);
bool getLastPoint(QPointF& point);
void removePoint(int i);
void removeAllPoints() {