35#include "drain/image/Window.h"
49template <
class W = Window<WindowConfig> >
55 typename W::conf_t conf;
59 this->
parameters.link(
"width", conf.frame.tuple()).fillArray =
true;
64 this->
parameters.link(
"width", conf.frame.tuple()).fillArray =
true;
65 setSize(width, height);
68 WindowOp(
const typename W::conf_t & c,
const std::string &
name = __FUNCTION__,
const std::string &
description=
"") :
70 this->
parameters.link(
"width", conf.frame.tuple()).fillArray =
true;
74 this->
parameters.link(
"width", conf.frame.tuple()).fillArray =
true;
82 void setSize(
unsigned int width){
83 setSize(width, width);
86 void setSize(
unsigned int width,
unsigned int height){
87 conf.frame.set(width, height);
91 const std::string &
getName()
const override {
107 static const std::string &
str(){
const std::string description
Brief, human-readable description of this bean.
Definition BeanLike.h:309
map_t parameters
Parameters (name -> linked variable), typically linked to member variables of the derived class.
Definition BeanLike.h:313
const std::string name
Name of this bean, typically also the name of the (derived) class.
Definition BeanLike.h:306
Definition StringBuilder.h:58
Base class for image processing functions.
Definition ImageOp.h:49
virtual const std::string & getName() const override
Return the name of an instance.
Definition WindowOp.h:91
Default implementation.
Definition TypeName.h:54
static const std::string & str()
Default implementation: name returned by std::type_info::name()
Definition TypeName.h:68