aboutsummaryrefslogtreecommitdiff
path: root/mapscalehandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'mapscalehandler.h')
-rw-r--r--mapscalehandler.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/mapscalehandler.h b/mapscalehandler.h
new file mode 100644
index 0000000..3cd8dbd
--- /dev/null
+++ b/mapscalehandler.h
@@ -0,0 +1,32 @@
+#ifndef MAPSCALEHANDLER_H
+#define MAPSCALEHANDLER_H
+
+#include <QObject>
+#include <armadillo>
+
+#include "scale.h"
+
+class MapScaleHandler
+ : public QObject
+{
+ Q_OBJECT
+public:
+ MapScaleHandler();
+
+ void getScales(LinearScale<float> &sx, LinearScale<float> &sy) const {
+ sx = m_sx;
+ sy = m_sy;
+ }
+
+signals:
+ void scaleChanged(const LinearScale<float> &sx,
+ const LinearScale<float> &sy) const;
+
+public slots:
+ void scaleToMap(const arma::mat &Y);
+
+private:
+ LinearScale<float> m_sx, m_sy;
+};
+
+#endif // MAPSCALEHANDLER_H