当前位置: 首页>>代码示例>>Python>>正文


Python ModuleBase.close方法代码示例

本文整理汇总了Python中module_base.ModuleBase.close方法的典型用法代码示例。如果您正苦于以下问题:Python ModuleBase.close方法的具体用法?Python ModuleBase.close怎么用?Python ModuleBase.close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在module_base.ModuleBase的用法示例。


在下文中一共展示了ModuleBase.close方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    def close(self):
        IntrospectModuleMixin.close(self)

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

        ModuleBase.close(self) 
开发者ID:fvpolpeta,项目名称:devide,代码行数:9,代码来源:EditMedicalMetaData.py

示例2: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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
开发者ID:fvpolpeta,项目名称:devide,代码行数:35,代码来源:register2D.py

示例3: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    def close(self):
        ScriptedConfigModuleMixin.close(self)

        # get rid of our reference
        del self._icp

        ModuleBase.close(self)
开发者ID:fvpolpeta,项目名称:devide,代码行数:9,代码来源:ICPTransform.py

示例4: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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)
开发者ID:fvpolpeta,项目名称:devide,代码行数:10,代码来源:TransferFunctionEditor.py

示例5: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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
开发者ID:fvpolpeta,项目名称:devide,代码行数:10,代码来源:TIFFReader.py

示例6: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
 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)
开发者ID:fvpolpeta,项目名称:devide,代码行数:10,代码来源:metaImageWRT.py

示例7: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    def close(self):
        self.set_input(0, None)
        self.set_input(1, None)

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

        del self._histogram
开发者ID:fvpolpeta,项目名称:devide,代码行数:10,代码来源:histogram2D.py

示例8: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
 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
开发者ID:fvpolpeta,项目名称:devide,代码行数:11,代码来源:polyDataConnect.py

示例9: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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
开发者ID:sanguinariojoe,项目名称:devide,代码行数:11,代码来源:gaussianKernel.py

示例10: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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)
开发者ID:fvpolpeta,项目名称:devide,代码行数:11,代码来源:RegionGrowing.py

示例11: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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)
开发者ID:fvpolpeta,项目名称:devide,代码行数:12,代码来源:imageBacktracker.py

示例12: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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)
开发者ID:sanguinariojoe,项目名称:devide,代码行数:12,代码来源:reconstructionRDR.py

示例13: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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)
开发者ID:fvpolpeta,项目名称:devide,代码行数:14,代码来源:CodeRunner.py

示例14: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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
开发者ID:fvpolpeta,项目名称:devide,代码行数:14,代码来源:marchingCubes.py

示例15: close

# 需要导入模块: from module_base import ModuleBase [as 别名]
# 或者: from module_base.ModuleBase import close [as 别名]
    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
开发者ID:fvpolpeta,项目名称:devide,代码行数:15,代码来源:gradientMagnitudeGaussian.py


注:本文中的module_base.ModuleBase.close方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。