From 60a0bfb863aa2a05bafd943423c284f5c2d68863 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 25 Jan 2016 19:55:52 +0100 Subject: Scatterplots & splat now share the same scaling. --- mapscalehandler.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mapscalehandler.h (limited to 'mapscalehandler.h') 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 +#include + +#include "scale.h" + +class MapScaleHandler + : public QObject +{ + Q_OBJECT +public: + MapScaleHandler(); + + void getScales(LinearScale &sx, LinearScale &sy) const { + sx = m_sx; + sy = m_sy; + } + +signals: + void scaleChanged(const LinearScale &sx, + const LinearScale &sy) const; + +public slots: + void scaleToMap(const arma::mat &Y); + +private: + LinearScale m_sx, m_sy; +}; + +#endif // MAPSCALEHANDLER_H -- cgit v1.2.3