Commit 25c692a7f318de5d668de442b1a82396c4cdebfa

Authored by Thiago Franco de Moraes
1 parent 826b7511

More cleaning on slice

Showing 1 changed file with 0 additions and 23 deletions   Show diff stats
invesalius/data/slice_.py
@@ -160,8 +160,6 @@ class Slice(object): @@ -160,8 +160,6 @@ class Slice(object):
160 160
161 Publisher.subscribe(self._set_projection_type, 'Set projection type') 161 Publisher.subscribe(self._set_projection_type, 'Set projection type')
162 162
163 - Publisher.subscribe(self.InputImageWidget, 'Input Image in the widget')  
164 -  
165 Publisher.subscribe(self.OnExportMask,'Export mask to file') 163 Publisher.subscribe(self.OnExportMask,'Export mask to file')
166 164
167 Publisher.subscribe(self.OnCloseProject, 'Close project data') 165 Publisher.subscribe(self.OnCloseProject, 'Close project data')
@@ -314,7 +312,6 @@ class Slice(object): @@ -314,7 +312,6 @@ class Slice(object):
314 312
315 to_reload = False 313 to_reload = False
316 if threshold_range != self.current_mask.threshold_range: 314 if threshold_range != self.current_mask.threshold_range:
317 - print "<<<<<<<<<<<<<<<< DIFERENT >>>>>>>>>>>>>>>>>>>>>>>"  
318 to_reload = True 315 to_reload = True
319 for orientation in self.buffer_slices: 316 for orientation in self.buffer_slices:
320 self.buffer_slices[orientation].discard_vtk_mask() 317 self.buffer_slices[orientation].discard_vtk_mask()
@@ -938,26 +935,6 @@ class Slice(object): @@ -938,26 +935,6 @@ class Slice(object):
938 935
939 Publisher.sendMessage('Reload actual slice') 936 Publisher.sendMessage('Reload actual slice')
940 937
941 - def InputImageWidget(self, pubsub_evt):  
942 - widget, orientation = pubsub_evt.data  
943 -  
944 - original_orientation = Project().original_orientation  
945 -  
946 - img = self.buffer_slices[orientation].vtk_image  
947 -  
948 - cast = vtk.vtkImageCast()  
949 - cast.SetInput(img)  
950 - cast.SetOutputScalarTypeToDouble()  
951 - cast.ClampOverflowOn()  
952 - cast.Update()  
953 -  
954 - flip = vtk.vtkImageFlip()  
955 - flip.SetInput(cast.GetOutput())  
956 - flip.SetFilteredAxis(1)  
957 - flip.FlipAboutOriginOn()  
958 - flip.Update()  
959 - widget.SetInput(flip.GetOutput())  
960 -  
961 def UpdateSlice3D(self, pubsub_evt): 938 def UpdateSlice3D(self, pubsub_evt):
962 widget, orientation = pubsub_evt.data 939 widget, orientation = pubsub_evt.data
963 img = self.buffer_slices[orientation].vtk_image 940 img = self.buffer_slices[orientation].vtk_image