2019-04-02 00:45:01 +00:00
|
|
|
// Modern effects for a modern Streamer
|
|
|
|
// Copyright (C) 2019 Michael Fabian Dirks
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
|
|
|
|
#include "gfx-blur-base.hpp"
|
2019-09-04 00:59:04 +00:00
|
|
|
#include <stdexcept>
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
void gfx::blur::base::set_step_scale_x(double_t v)
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
this->set_step_scale(v, this->get_step_scale_y());
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
void gfx::blur::base::set_step_scale_y(double_t v)
|
2019-04-19 07:42:15 +00:00
|
|
|
{
|
2019-04-02 00:45:01 +00:00
|
|
|
this->set_step_scale(this->get_step_scale_x(), v);
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
double_t gfx::blur::base::get_step_scale_x()
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
double_t x, y;
|
|
|
|
this->get_step_scale(x, y);
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
double_t gfx::blur::base::get_step_scale_y()
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
double_t x, y;
|
|
|
|
this->get_step_scale(x, y);
|
|
|
|
return y;
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
void gfx::blur::base_center::set_center_x(double_t v)
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
this->set_center(v, this->get_center_y());
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
void gfx::blur::base_center::set_center_y(double_t v)
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
this->set_center(this->get_center_x(), v);
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
double_t gfx::blur::base_center::get_center_x()
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
double_t x, y;
|
|
|
|
this->get_center(x, y);
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
double_t gfx::blur::base_center::get_center_y()
|
2019-04-02 00:45:01 +00:00
|
|
|
{
|
|
|
|
double_t x, y;
|
|
|
|
this->get_center(x, y);
|
|
|
|
return y;
|
|
|
|
}
|