new_font(family,style,weight);
invert=false;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
Layer_Freetype::~Layer_Freetype()
calc_offset();
use_luma=false;
solid=false;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
void
Import::Import()
{
time_offset=0;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
Import::~Import()
IMPORT(time_offset);
if(param=="filename" && value.same_type_as(filename))
{
+ set_param_static(param, value.get_static());
if(!get_canvas())
{
filename=value.get(filename);
{
if(param=="filename")
{
+ ValueBase ret(ValueBase::TYPE_STRING);
+ ret.set_static(get_param_static(param));
string curpath(cleanup_path(absolute_path(get_canvas()->get_file_path())));
- return relative_path(curpath,abs_filename);
+ ret=relative_path(curpath,abs_filename);
+ return ret;
}
}
else
sin_val (0),
cos_val (1)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
Rotate::~Rotate()
amount=value.get(amount);
sin_val=Angle::sin(amount).get();
cos_val=Angle::cos(amount).get();
+ set_param_static(param, value.get_static());
return true;
}
origin(0.2,-0.2),
invert(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
{
scanline=false;
alpha_aware=true;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
link_time=0;
local_time=0;
duration=1;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
Layer_TimeLoop::~Layer_TimeLoop()
Translate::Translate():origin(0,0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
Translate::~Translate()
origin(0.125,0.125),
size(0.25,0.25)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
center(0,0),
amount(0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
regular_polygon(false)
{
sync();
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
void
{
value.put(&radius1);
sync();
+ set_param_static(param, value.get_static());
return true;
}
{
value.put(&radius2);
sync();
+ set_param_static(param, value.get_static());
return true;
}
value.put(&points);
if(points<2)points=2;
sync();
+ set_param_static(param, value.get_static());
return true;
}
{
value.put(&angle);
sync();
+ set_param_static(param, value.get_static());
return true;
}
{
value.put(®ular_polygon);
sync();
+ set_param_static(param, value.get_static());
return true;
}
angle(Angle::zero()),
symmetric(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
bline_loop=true;
sync();
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
inline Color
zigzag(false)
{
sync();
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
inline Color
if(param=="p1" && value.same_type_as(p1))
{
p1=value.get(p1);
+ set_param_static(param, value.get_static());
sync();
return true;
}
if(param=="p2" && value.same_type_as(p2))
{
p2=value.get(p2);
+ set_param_static(param, value.get_static());
sync();
return true;
}
loop(false),
zigzag(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
angle(Angle::zero()),
clockwise(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
displacement=Vector(1,1);
do_displacement=false;
super_sample=false;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
if(param=="seed" && value.same_type_as(int()))
{
random.set_seed(value.get(int()));
+ set_param_static(param, value.get_static());
return true;
}
IMPORT(size);
Noise::get_param(const String & param)const
{
if(param=="seed")
- return random.get_seed();
+ {
+ ValueBase ret(random.get_seed());
+ ret.set_static(get_param_static(param));
+ return ret;
+ }
EXPORT(size);
EXPORT(speed);
EXPORT(smooth);
sync();
size_as_alpha=false;
reverse=true;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
void
bline=value;
bline_loop=value.get_loop();
needs_sync_=true;
-
+ set_param_static(param, value.get_static());
return true;
}
if(param=="seed" && value.same_type_as(int()))
{
random.set_seed(value.get(int()));
needs_sync_=true;
+ set_param_static(param, value.get_static());
return true;
}
IMPORT(origin);
Plant::get_param(const String& param)const
{
if(param=="seed")
- return random.get_seed();
+ {
+ ValueBase ret(random.get_seed());
+ ret.set_static(get_param_static(param));
+ return ret;
+ }
EXPORT(bline);
EXPORT(origin);
EXPORT(split_angle);
IMPORT(c);
if(param=="gamma_adjust"&& value.get_type()==ValueBase::TYPE_REAL)
{
+ set_param_static(param, value.get_static());
gamma_adjust=1.0/value.get(Real());
//gamma_adjust.set_gamma(1.0/value.get(Real()));
return true;
EXPORT(br);
EXPORT(c);
if(param=="gamma_adjust")
- return 1.0/gamma_adjust;
+ {
+ ValueBase ret(1.0/gamma_adjust);
+ ret.set_static(get_param_static(param));
+ return ret;
+ }
if(param=="_width")
{
- if (trimmed) return int(width);
- return surface.get_w();
+ ValueBase ret1(ValueBase::TYPE_INTEGER);
+ ret1=int(width);
+ ValueBase ret2(surface.get_w());
+ ret1.set_static(get_param_static(param));
+ ret2.set_static(get_param_static(param));
+ if (trimmed) return ret1;
+ return ret2;
}
if(param=="_height")
{
- if (trimmed) return int(height);
- return surface.get_h();
+ ValueBase ret1(ValueBase::TYPE_INTEGER);
+ ret1=int(height);
+ ValueBase ret2(surface.get_h());
+ ret1.set_static(get_param_static(param));
+ ret2.set_static(get_param_static(param));
+ if (trimmed) return ret1;
+ return ret2;
}
return Layer_Composite::get_param(param);