aboutsummaryrefslogtreecommitdiff
path: root/mapscalehandler.h
blob: 3cd8dbdd0da740eec48d6ddf320d7418449b28a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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