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 | 157 | |
| 158 | 158 | Publisher.subscribe(self.UpdateColourTableBackgroundWidget,\ |
| 159 | 159 | 'Change colour table from background image from widget') |
| 160 | + | |
| 160 | 161 | Publisher.subscribe(self._set_projection_type, 'Set projection type') |
| 161 | 162 | |
| 162 | 163 | Publisher.subscribe(self.InputImageWidget, 'Input Image in the widget') |
| ... | ... | @@ -273,10 +274,6 @@ class Slice(object): |
| 273 | 274 | |
| 274 | 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 | 277 | def __set_current_mask_threshold_limits(self, pubsub_evt): |
| 281 | 278 | thresh_min = pubsub_evt.data[0] |
| 282 | 279 | thresh_max = pubsub_evt.data[1] |
| ... | ... | @@ -284,10 +281,6 @@ class Slice(object): |
| 284 | 281 | index = self.current_mask.index |
| 285 | 282 | self.SetMaskEditionThreshold(index, (thresh_min, thresh_max)) |
| 286 | 283 | |
| 287 | - #--------------------------------------------------------------------------- | |
| 288 | - # BEGIN PUBSUB_EVT METHODS | |
| 289 | - #--------------------------------------------------------------------------- | |
| 290 | - | |
| 291 | 284 | def __add_mask(self, pubsub_evt): |
| 292 | 285 | mask_name = pubsub_evt.data |
| 293 | 286 | self.CreateMask(name=mask_name) |
| ... | ... | @@ -305,7 +298,7 @@ class Slice(object): |
| 305 | 298 | def __select_current_mask(self, pubsub_evt): |
| 306 | 299 | mask_index = pubsub_evt.data |
| 307 | 300 | self.SelectCurrentMask(mask_index) |
| 308 | - #--------------------------------------------------------------------------- | |
| 301 | + | |
| 309 | 302 | def __set_current_mask_edition_threshold(self, evt_pubsub): |
| 310 | 303 | if self.current_mask: |
| 311 | 304 | threshold_range = evt_pubsub.data | ... | ... |