Exemplo n.º 1
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._icp

        ModuleBase.close(self)
Exemplo n.º 2
0
    def close(self):
        IntrospectModuleMixin.close(self)

        if self._view_frame is not None:
            self._view_frame.Destroy()

        ModuleBase.close(self) 
Exemplo n.º 3
0
    def close(self):
        # we do this just in case...
        self.set_input(0, None)
        self.set_input(1, None)

        ModuleBase.close(self)

        # take care of the IPWs
        self._destroyIPWs()

        # take care of pipeline thingies
        del self._rescaler1
        del self._itkExporter1
        del self._vtkImporter1

        del self._resampler2
        del self._rescaler2
        del self._itkExporter2
        del self._vtkImporter2

        # also take care of our output!
        del self._transformStack

        # nasty trick to take care of RenderWindow
        self._threedRenderer.RemoveAllProps()
        del self._threedRenderer
        self.viewerFrame.threedRWI.GetRenderWindow().WindowRemap()
        self.viewerFrame.Destroy()
        del self.viewerFrame

        # then do the controlFrame
        self.controlFrame.Destroy()
        del self.controlFrame
Exemplo n.º 4
0
    def close(self):
        IntrospectModuleMixin.close(self)

        if self._view_frame is not None:
            self._view_frame.Destroy()

        ModuleBase.close(self)
Exemplo n.º 5
0
    def close(self):
        # we do this just in case...
        self.set_input(0, None)
        self.set_input(1, None)
        
        ModuleBase.close(self)

        # take care of the IPWs
        self._destroyIPWs()

        # take care of pipeline thingies
        del self._rescaler1
        del self._itkExporter1
        del self._vtkImporter1

        del self._resampler2
        del self._rescaler2
        del self._itkExporter2
        del self._vtkImporter2

        # also take care of our output!
        del self._transformStack

        # nasty trick to take care of RenderWindow
        self._threedRenderer.RemoveAllProps()
        del self._threedRenderer
        self.viewerFrame.threedRWI.GetRenderWindow().WindowRemap()
        self.viewerFrame.Destroy()
        del self.viewerFrame
        
        # then do the controlFrame
        self.controlFrame.Destroy()
        del self.controlFrame
Exemplo n.º 6
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._icp

        ModuleBase.close(self)
Exemplo n.º 7
0
    def close(self):
        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)
        
        self._view_frame.Destroy()
        del self._view_frame

        ModuleBase.close(self)
Exemplo n.º 8
0
    def close(self):
        self.set_input(0, None)
        self.set_input(1, None)

        ScriptedConfigModuleMixin.close(self)
        ModuleBase.close(self)

        del self._histogram
Exemplo n.º 9
0
 def close(self):
     # we should disconnect all inputs
     self.set_input(0, None)
     del self._writer
    
     # deinit our mixins
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)
Exemplo n.º 10
0
    def close(self):
        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)

        self._view_frame.Destroy()
        del self._view_frame

        ModuleBase.close(self)
Exemplo n.º 11
0
    def close(self):
        self.set_input(0, None)
        self.set_input(1, None)

        ScriptedConfigModuleMixin.close(self)
        ModuleBase.close(self)

        del self._histogram
Exemplo n.º 12
0
    def close(self):
       # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)

        ModuleBase.close(self)
        
        # get rid of our reference
        del self._reader
Exemplo n.º 13
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._image_threshold
        self._seed_connect.SetInput(None)
        del self._seed_connect

        ModuleBase.close(self)
Exemplo n.º 14
0
    def close(self):
        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)

        # and the baseclass close
        ModuleBase.close(self)

        # remove all bindings
        del self._gaussianKernel
Exemplo n.º 15
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._image_threshold
        self._seed_connect.SetInput(None)
        del self._seed_connect

        ModuleBase.close(self)
Exemplo n.º 16
0
 def close(self):
     # we play it safe... (the graph_editor/module_manager should have
     # disconnected us by now)
     self.set_input(0, None)
     # don't forget to call the close() method of the vtkPipeline mixin
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)
     # get rid of our reference
     del self._polyDataConnect
Exemplo n.º 17
0
    def close(self):
        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)

        # and the baseclass close
        ModuleBase.close(self)

        # remove all bindings
        del self._cubicBCSplineKernel
Exemplo n.º 18
0
 def close(self):
     # we play it safe... (the graph_editor/module_manager should have
     # disconnected us by now)
     self.set_input(0, None)
     # don't forget to call the close() method of the vtkPipeline mixin
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)
     # get rid of our reference
     del self._polyDataConnect
Exemplo n.º 19
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        self.set_input(0, None)
        self.set_input(1, None)
        # don't forget to call the close() method of the vtkPipeline mixin
        NoConfigModuleMixin.close(self)
        # take out our view interface
        del self._imageBacktracker
	ModuleBase.close(self)
Exemplo n.º 20
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        # for input_idx in range(len(self.get_input_descriptions())):
        #    self.set_input(input_idx, None)

        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)

        ModuleBase.close(self)
Exemplo n.º 21
0
 def close(self):
     # we play it safe... (the graph_editor/module_manager should have
     # disconnected us by now)
     self.set_input(0, None)
     self.set_input(1, None)
     # don't forget to call the close() method of the vtkPipeline mixin
     NoConfigModuleMixin.close(self)
     # take out our view interface
     del self._imageBacktracker
     ModuleBase.close(self)
Exemplo n.º 22
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)

        ModuleBase.close(self)
Exemplo n.º 23
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        self.set_input(0, None)

        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)

        ModuleBase.close(self)
        
        # get rid of our reference
        del self._contourFilter
Exemplo n.º 24
0
    def close(self):
        # parameter is exception_printer method
        PythonShellMixin.close(self,
                               self._module_manager.log_error_with_exception)

        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)

        self._view_frame.Destroy()
        del self._view_frame

        ModuleBase.close(self)
Exemplo n.º 25
0
    def close(self):
        # parameter is exception_printer method
        PythonShellMixin.close(self,
                               self._module_manager.log_error_with_exception)
        
        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)

        self._view_frame.Destroy()
        del self._view_frame

        ModuleBase.close(self)
Exemplo n.º 26
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)
        # and the baseclass close
        ModuleBase.close(self)

        # remove all bindings
        del self._gradientMagnitude
Exemplo n.º 27
0
    def close(self):
        # just in case
        self.set_input(0, None)
        self.set_input(1, None)

        # take care of our refs so that things can disappear
        self._destroyPipelines()
        del self._itkExporterStack
        del self._imageAppend

        NoConfigModuleMixin.close(self)

        ModuleBase.close(self)
Exemplo n.º 28
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        ScriptedConfigModuleMixin.close(self)
        # and the baseclass close
        ModuleBase.close(self)
            
        # remove all bindings
        del self._gradientMagnitude
Exemplo n.º 29
0
    def close(self):

        # we took out explicit ITK references, let them go!
        for img in self._imageStack:
            img.UnRegister()

        # take care of other refs to all the loaded images
        self._imageStack.close()
        self._imageStack = []
        # destroy GUI
        self._viewFrame.Destroy()
        # base classes taken care of
        ModuleBase.close(self)
Exemplo n.º 30
0
    def close(self):
        # just in case
        self.set_input(0, None)
        self.set_input(1, None)

        # take care of our refs so that things can disappear
        self._destroyPipelines()
        del self._itkExporterStack
        del self._imageAppend

        NoConfigModuleMixin.close(self)

        ModuleBase.close(self)
Exemplo n.º 31
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        NoConfigModuleMixin.close(self)

        ModuleBase.close(self)

        # get rid of our reference
        del self._imageGradientMagnitude
Exemplo n.º 32
0
    def close(self):

        # we took out explicit ITK references, let them go!
        for img in self._imageStack:
            img.UnRegister()

        # take care of other refs to all the loaded images
        self._imageStack.close()
        self._imageStack = []
        # destroy GUI
        self._viewFrame.Destroy()
        # base classes taken care of
        ModuleBase.close(self)
Exemplo n.º 33
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        NoConfigModuleMixin.close(self)

        ModuleBase.close(self)
        
        # get rid of our reference
        del self._imageGradientMagnitude
Exemplo n.º 34
0
    def close(self):
        # disconnect our inputs
        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)

        self._renderer.RemoveAllViewProps()
        self._viewFrame.rwi.GetRenderWindow().Finalize()
        self._viewFrame.rwi.SetRenderWindow(None)
        del self._viewFrame.rwi

        self._viewFrame.Destroy()

        # call close method of base class
        ModuleBase.close(self)
Exemplo n.º 35
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        self.set_input(0, None)
        # don't forget to call the close() method of the vtkPipeline mixin
        IntrospectModuleMixin.close(self)
        # take out our view interface
        if self._view_frame is not None:
            self._view_frame.Destroy()

        # get rid of our reference
        del self._imageGaussianSmooth
        # and finally call our base dtor
        ModuleBase.close(self)
Exemplo n.º 36
0
 def close(self):
     # we play it safe... (the graph_editor/module_manager should have
     # disconnected us by now)
     self.set_input(0, None)
     # don't forget to call the close() method of the vtkPipeline mixin
     IntrospectModuleMixin.close(self)
     # take out our view interface
     if self._view_frame is not None:
         self._view_frame.Destroy()
         
     # get rid of our reference
     del self._imageGaussianSmooth
     # and finally call our base dtor
     ModuleBase.close(self)
Exemplo n.º 37
0
    def close(self):
        # disconnect our inputs
        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)

        self._renderer.RemoveAllViewProps()
        self._viewFrame.rwi.GetRenderWindow().Finalize()
        self._viewFrame.rwi.SetRenderWindow(None)
        del self._viewFrame.rwi

        self._viewFrame.Destroy()

        # call close method of base class
        ModuleBase.close(self)
Exemplo n.º 38
0
    def close(self):
        IntrospectModuleMixin.close(self)

        # we just delete our binding.  Destroying the view_frame
        # should also take care of this one.
        del self._file_dialog

        if self._view_frame is not None:
            self._view_frame.Destroy()

        self._output_mmd.close() 
        del self._output_mmd

        del self._reader

        ModuleBase.close(self) 
Exemplo n.º 39
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        PickleVTKObjectsModuleMixin.close(self)
        IntrospectModuleMixin.close(self)

        if self._viewFrame is not None:
            self._configVtkObj.close()
            self._viewFrame.Destroy()

        ModuleBase.close(self)
        # get rid of our binding to the vtkObject
        del self._theFilter
Exemplo n.º 40
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)
        
        PickleVTKObjectsModuleMixin.close(self)
        IntrospectModuleMixin.close(self)

        if self._viewFrame is not None:
            self._configVtkObj.close()
            self._viewFrame.Destroy()
            
        ModuleBase.close(self)
        # get rid of our binding to the vtkObject
        del self._theFilter
Exemplo n.º 41
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        NoConfigModuleMixin.close(self)

        ModuleBase.close(self)

        #
        self._imageThreshold.RemoveObserver(self._imageThresholdObserverID)

        # get rid of our reference
        del self._dualGreyReconstruct
        del self._markerSource
        del self._maskSource
        del self._imageThreshold
Exemplo n.º 42
0
    def close(self):
        # with this complicated de-init, we make sure that VTK is 
        # properly taken care of
        self._image_viewer.GetRenderer().RemoveAllViewProps()
        self._image_viewer.SetupInteractor(None)
        self._image_viewer.SetRenderer(None)
        # this finalize makes sure we don't get any strange X
        # errors when we kill the module.
        self._image_viewer.GetRenderWindow().Finalize()
        self._image_viewer.SetRenderWindow(None)
        self._image_viewer.DebugOn()
        del self._image_viewer
        # done with VTK de-init
     
        self._view_frame.Destroy()
        del self._view_frame

        IntrospectModuleMixin.close(self)
        ModuleBase.close(self)
Exemplo n.º 43
0
    def close(self):
        # we play it safe... (the graph_editor/module_manager should have
        # disconnected us by now)
        for input_idx in range(len(self.get_input_descriptions())):
            self.set_input(input_idx, None)

        # this will take care of all display thingies
        NoConfigModuleMixin.close(self)

        ModuleBase.close(self)

        #
        self._imageThreshold.RemoveObserver(self._imageThresholdObserverID)

        # get rid of our reference
        del self._dualGreyReconstruct
        del self._markerSource
        del self._maskSource
        del self._imageThreshold
Exemplo n.º 44
0
    def close(self):
        # with this complicated de-init, we make sure that VTK is
        # properly taken care of
        self._image_viewer.GetRenderer().RemoveAllViewProps()
        self._image_viewer.SetupInteractor(None)
        self._image_viewer.SetRenderer(None)
        # this finalize makes sure we don't get any strange X
        # errors when we kill the module.
        self._image_viewer.GetRenderWindow().Finalize()
        self._image_viewer.SetRenderWindow(None)
        self._image_viewer.DebugOn()
        del self._image_viewer
        # done with VTK de-init

        self._view_frame.Destroy()
        del self._view_frame

        IntrospectModuleMixin.close(self)
        ModuleBase.close(self)
Exemplo n.º 45
0
    def close(self):
        for i in range(len(self.get_input_descriptions())):
            self.set_input(i, None)

        # with this complicated de-init, we make sure that VTK is 
        # properly taken care of
        self._viewer.GetRenderer().RemoveAllViewProps()
        self._viewer.SetupInteractor(None)
        self._viewer.SetRenderer(None)
        # this finalize makes sure we don't get any strange X
        # errors when we kill the module.
        self._viewer.GetRenderWindow().Finalize()
        self._viewer.SetRenderWindow(None)
        del self._viewer
        # done with VTK de-init

       
        self._view_frame.Destroy()
        del self._view_frame

        ModuleBase.close(self)
Exemplo n.º 46
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)
        ModuleBase.close(self)

        del self._writer
Exemplo n.º 47
0
 def close(self):
     self._destroyITKPipeline()
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)
Exemplo n.º 48
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)
        ModuleBase.close(self) 

        del self._writer
Exemplo n.º 49
0
 def close(self):
     self._destroyITKPipeline()
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)