aboutsummaryrefslogtreecommitdiff
#ifndef MAPSCALEHANDLER_H
#define MAPSCALEHANDLER_H

#include <armadillo>
#include <nod.hpp>

#include "scale.h"

class MapScaleHandler
{
public:
    MapScaleHandler();

    void getScales(LinearScale<float> &sx, LinearScale<float> &sy) const {
        sx = m_sx;
        sy = m_sy;
    }

    nod::signal<void(const LinearScale<float> &, const LinearScale<float> &)> scaleChanged;

    void scaleToMap(const arma::mat &Y);

private:
    LinearScale<float> m_sx, m_sy;
};

#endif // MAPSCALEHANDLER_H