2023-02-28 01:15:26 +00:00
|
|
|
// AUTOGENERATED COPYRIGHT HEADER START
|
|
|
|
// Copyright (C) 2019-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
2019-04-02 00:45:01 +00:00
|
|
|
|
|
|
|
#include "gfx-blur-base.hpp"
|
2022-08-29 10:29:44 +00:00
|
|
|
|
|
|
|
#include "warning-disable.hpp"
|
2019-09-04 00:59:04 +00:00
|
|
|
#include <stdexcept>
|
2022-08-29 10:29:44 +00:00
|
|
|
#include "warning-enable.hpp"
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
void streamfx::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());
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
void streamfx::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);
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
double_t streamfx::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;
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
double_t streamfx::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;
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
void streamfx::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());
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
void streamfx::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);
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
double_t streamfx::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;
|
|
|
|
}
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
double_t streamfx::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;
|
|
|
|
}
|