aboutsummaryrefslogtreecommitdiff
path: root/mapscalehandler.cpp
blob: 9e25c29cb665fac98e4a84227270db35094447ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "mapscalehandler.h"

MapScaleHandler::MapScaleHandler()
    : m_sx(0.0f, 1.0f, 0.0f, 1.0f)
    , m_sy(0.0f, 1.0f, 0.0f, 1.0f)
{
}

void MapScaleHandler::scaleToMap(const arma::mat &Y)
{
    m_sx.setDomain(Y.col(0).min(), Y.col(0).max());
    m_sy.setDomain(Y.col(1).min(), Y.col(1).max());

    emit scaleChanged(m_sx, m_sy);
}