예제 #1
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._icp

        ModuleBase.close(self)
예제 #2
0
    def close(self):
        IntrospectModuleMixin.close(self)

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

        ModuleBase.close(self) 
예제 #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
예제 #4
0
    def close(self):
        IntrospectModuleMixin.close(self)

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

        ModuleBase.close(self)
예제 #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
예제 #6
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._icp

        ModuleBase.close(self)
예제 #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)
예제 #8
0
    def close(self):
        self.set_input(0, None)
        self.set_input(1, None)

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

        del self._histogram
예제 #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)
예제 #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)
예제 #11
0
    def close(self):
        self.set_input(0, None)
        self.set_input(1, None)

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

        del self._histogram
예제 #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
예제 #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)
예제 #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
예제 #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)
예제 #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
예제 #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
예제 #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
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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
예제 #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)
예제 #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)
예제 #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
예제 #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)
예제 #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
예제 #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)
예제 #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)
예제 #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
예제 #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)
예제 #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
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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) 
예제 #39
0
파일: mixins.py 프로젝트: nagyistoce/devide
    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
예제 #40
0
파일: mixins.py 프로젝트: fvpolpeta/devide
    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
예제 #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
예제 #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)
예제 #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
예제 #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)
예제 #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)
예제 #46
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)
        ModuleBase.close(self)

        del self._writer
예제 #47
0
파일: tpgac.py 프로젝트: nagyistoce/devide
 def close(self):
     self._destroyITKPipeline()
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)
예제 #48
0
    def close(self):
        ScriptedConfigModuleMixin.close(self)
        ModuleBase.close(self) 

        del self._writer
예제 #49
0
 def close(self):
     self._destroyITKPipeline()
     ScriptedConfigModuleMixin.close(self)
     ModuleBase.close(self)