projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed trailing whitespace.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
lyr_std
/
zoom.cpp
diff --git
a/synfig-core/trunk/src/modules/lyr_std/zoom.cpp
b/synfig-core/trunk/src/modules/lyr_std/zoom.cpp
index
6e1795b
..
acbe096
100644
(file)
--- a/
synfig-core/trunk/src/modules/lyr_std/zoom.cpp
+++ b/
synfig-core/trunk/src/modules/lyr_std/zoom.cpp
@@
-64,14
+64,14
@@
Zoom::Zoom():
amount(0)
{
}
amount(0)
{
}
-
+
bool
Zoom::set_param(const String & param, const ValueBase &value)
{
IMPORT(center);
IMPORT(amount);
bool
Zoom::set_param(const String & param, const ValueBase &value)
{
IMPORT(center);
IMPORT(amount);
-
+
return false;
}
return false;
}
@@
-83,15
+83,15
@@
Zoom::get_param(const String ¶m)const
EXPORT_NAME();
EXPORT_VERSION();
EXPORT_NAME();
EXPORT_VERSION();
-
- return ValueBase();
+
+ return ValueBase();
}
Layer::Vocab
Zoom::get_param_vocab()const
{
Layer::Vocab ret;
}
Layer::Vocab
Zoom::get_param_vocab()const
{
Layer::Vocab ret;
-
+
ret.push_back(ParamDesc("amount")
.set_local_name(_("Amount"))
.set_description(_("Amount to zoom in"))
ret.push_back(ParamDesc("amount")
.set_local_name(_("Amount"))
.set_description(_("Amount to zoom in"))
@@
-101,7
+101,7
@@
Zoom::get_param_vocab()const
.set_local_name(_("Center"))
.set_description(_("Point to zoom in to"))
);
.set_local_name(_("Center"))
.set_description(_("Point to zoom in to"))
);
-
+
return ret;
}
return ret;
}
@@
-122,12
+122,12
@@
class Zoom_Trans : public Transform
etl::handle<const Zoom> layer;
public:
Zoom_Trans(const Zoom* x):Transform(x->get_guid()),layer(x) { }
etl::handle<const Zoom> layer;
public:
Zoom_Trans(const Zoom* x):Transform(x->get_guid()),layer(x) { }
-
+
synfig::Vector perform(const synfig::Vector& x)const
{
return (x-layer->center)*exp(layer->amount)+layer->center;
}
synfig::Vector perform(const synfig::Vector& x)const
{
return (x-layer->center)*exp(layer->amount)+layer->center;
}
-
+
synfig::Vector unperform(const synfig::Vector& x)const
{
return (x-layer->center)/exp(layer->amount)+layer->center;
synfig::Vector unperform(const synfig::Vector& x)const
{
return (x-layer->center)/exp(layer->amount)+layer->center;