Commit 826b7511987adc269b7297d807dd337b22525348
1 parent
eead43d5
Exists in
master
and in
47 other branches
more cleaning
Showing
1 changed file
with
2 additions
and
9 deletions
Show diff stats
invesalius/data/slice_.py
@@ -157,6 +157,7 @@ class Slice(object): | @@ -157,6 +157,7 @@ class Slice(object): | ||
157 | 157 | ||
158 | Publisher.subscribe(self.UpdateColourTableBackgroundWidget,\ | 158 | Publisher.subscribe(self.UpdateColourTableBackgroundWidget,\ |
159 | 'Change colour table from background image from widget') | 159 | 'Change colour table from background image from widget') |
160 | + | ||
160 | Publisher.subscribe(self._set_projection_type, 'Set projection type') | 161 | Publisher.subscribe(self._set_projection_type, 'Set projection type') |
161 | 162 | ||
162 | Publisher.subscribe(self.InputImageWidget, 'Input Image in the widget') | 163 | Publisher.subscribe(self.InputImageWidget, 'Input Image in the widget') |
@@ -273,10 +274,6 @@ class Slice(object): | @@ -273,10 +274,6 @@ class Slice(object): | ||
273 | 274 | ||
274 | Publisher.sendMessage('Select first item from slice menu') | 275 | Publisher.sendMessage('Select first item from slice menu') |
275 | 276 | ||
276 | - #self.blend_filter = None | ||
277 | - #self.blend_filter = None | ||
278 | - #self.num_gradient = 0 | ||
279 | - | ||
280 | def __set_current_mask_threshold_limits(self, pubsub_evt): | 277 | def __set_current_mask_threshold_limits(self, pubsub_evt): |
281 | thresh_min = pubsub_evt.data[0] | 278 | thresh_min = pubsub_evt.data[0] |
282 | thresh_max = pubsub_evt.data[1] | 279 | thresh_max = pubsub_evt.data[1] |
@@ -284,10 +281,6 @@ class Slice(object): | @@ -284,10 +281,6 @@ class Slice(object): | ||
284 | index = self.current_mask.index | 281 | index = self.current_mask.index |
285 | self.SetMaskEditionThreshold(index, (thresh_min, thresh_max)) | 282 | self.SetMaskEditionThreshold(index, (thresh_min, thresh_max)) |
286 | 283 | ||
287 | - #--------------------------------------------------------------------------- | ||
288 | - # BEGIN PUBSUB_EVT METHODS | ||
289 | - #--------------------------------------------------------------------------- | ||
290 | - | ||
291 | def __add_mask(self, pubsub_evt): | 284 | def __add_mask(self, pubsub_evt): |
292 | mask_name = pubsub_evt.data | 285 | mask_name = pubsub_evt.data |
293 | self.CreateMask(name=mask_name) | 286 | self.CreateMask(name=mask_name) |
@@ -305,7 +298,7 @@ class Slice(object): | @@ -305,7 +298,7 @@ class Slice(object): | ||
305 | def __select_current_mask(self, pubsub_evt): | 298 | def __select_current_mask(self, pubsub_evt): |
306 | mask_index = pubsub_evt.data | 299 | mask_index = pubsub_evt.data |
307 | self.SelectCurrentMask(mask_index) | 300 | self.SelectCurrentMask(mask_index) |
308 | - #--------------------------------------------------------------------------- | 301 | + |
309 | def __set_current_mask_edition_threshold(self, evt_pubsub): | 302 | def __set_current_mask_edition_threshold(self, evt_pubsub): |
310 | if self.current_mask: | 303 | if self.current_mask: |
311 | threshold_range = evt_pubsub.data | 304 | threshold_range = evt_pubsub.data |