InsideOut::InsideOut():
origin(0,0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
type(TYPE_NORMAL),
clip(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
amount(1,1),
center(0,0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
distort_inside(true),
distort_outside(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
{
sync();
horizon=4;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
Warp::~Warp()
bevel(0),
bevCircle(0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
centers.push_back(Point( 0, -1.5)); radii.push_back(2.5); weights.push_back(1);
centers.push_back(Point(-2, 1)); radii.push_back(2.5); weights.push_back(1);
centers.push_back(Point( 2, 1)); radii.push_back(2.5); weights.push_back(1);
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
center(0,0),
radius(0.5)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
contrast(1.0),
exposure(0.0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
inline Color
if(param=="gamma" && value.get_type()==ValueBase::TYPE_REAL)
{
gamma.set_gamma(1.0/value.get(Real()));
+ set_param_static(param, value.get_static());
return true;
}
return false;
EXPORT(exposure);
if(param=="gamma")
- return 1.0/gamma.get_gamma();
+ {
+ ValueBase ret(1.0/gamma.get_gamma());
+ ret.set_static(get_param_static(param));
+ return ret;
+ }
EXPORT_NAME();
EXPORT_VERSION();
halftone.type=TYPE_SYMMETRIC;
set_blend_method(Color::BLEND_STRAIGHT);
+
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
inline Color
inverse_matrix[i][j]=(j==i)?1.0f:0.0f;
sync();
+
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
void
random.set_seed(time(NULL));
turbulent=false;
displacement=Vector(0.25,0.25);
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
inline Color
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);
NoiseDistort::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);