changeset 86:b3d76ebf2fac

Modifs pour interface parameters determined by complexity
author fsavard <francois.savard@polymtl.ca>
date Wed, 10 Feb 2010 17:50:58 -0500
parents 8aadb0f59a64
children 4775b4195b4b
files transformations/local_elastic_distortions.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/transformations/local_elastic_distortions.py	Wed Feb 10 17:47:57 2010 -0500
+++ b/transformations/local_elastic_distortions.py	Wed Feb 10 17:50:58 2010 -0500
@@ -84,7 +84,7 @@
         self.regenerate_parameters(0.0)
 
     def get_settings_names(self):
-        return ['alpha', 'sigma']
+        return []
 
     def _floor_complexity(self, complexity):
         return self._to_complexity_10(complexity) / 10.0
@@ -120,6 +120,9 @@
         tmp_params = self._initialize_new_params(_floor_complexity(complexity))
         return tmp_params.alpha_sigma()
 
+    def get_settings_names_determined_by_complexity(self, complexity):
+        return ['alpha', 'sigma']
+
     # adapted from http://blenderartists.org/forum/showthread.php?t=163361
     def _gen_gaussian_kernel(self, sigma):
         # the kernel size can change DRAMATICALLY the time