Commit 4d241004 authored by Victor Poughon's avatar Victor Poughon

ENH: call UpdateParameters inside the python API

parent d8fa32cc
Pipeline #1632 passed with stage
in 9 minutes and 44 seconds
......@@ -203,6 +203,35 @@ public:
#endif
#if SWIGPYTHON
// We want all SetParameterXXX functions to call UpdateParameters automaticaly
// so that using it is not required from the Python API
// for more discussion about this see gitlab issue #1842
%pythonappend Application::SetParameterInt %{
self.UpdateParameters()
%}
%pythonappend Application::SetParameterFloat %{
self.UpdateParameters()
%}
%pythonappend Application::SetParameterString %{
self.UpdateParameters()
%}
%pythonappend Application::SetParameterStringList %{
self.UpdateParameters()
%}
%pythonappend Application::SetParameterOutputImagePixelType %{
self.UpdateParameters()
%}
#endif
class Application: public itkObject
{
public:
......@@ -511,7 +540,6 @@ private:
void operator =(const Application&);
};
DECLARE_REF_COUNT_CLASS( Application )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment