示例#1
0
 def __init__(self):
     ScriptedModuleGUI.__init__(self)
     self.vtkScriptedModuleGUI.SetCategory("Endoscopy")
     self.FiducialsNodeSelector = slicer.vtkSlicerNodeSelectorWidget()
     self.CameraNodeSelector = slicer.vtkSlicerNodeSelectorWidget()
     self.StepEntry = slicer.vtkKWEntryWithLabel()
     self.ApplyButton = slicer.vtkKWPushButton()
    def __init__(self):

        ScriptedModuleGUI.__init__(self)

        self.SetCategory("Vascular Modeling Toolkit")
        #self.SetModuleName("VMTKEasyLevelSetSegmentation")
        self.SetGUIName("Easy LevelSetSegmentation using VMTK")

        self._moduleFrame = slicer.vtkSlicerModuleCollapsibleFrame()

        self._moduleNodeSelector = slicer.vtkSlicerNodeSelectorWidget()
        self._moduleExistingSetsNodeSelector = slicer.vtkSlicerNodeSelectorWidget()
        self._moduleNewEntry = slicer.vtkKWEntryWithLabel()
        self._moduleNewButton = slicer.vtkKWPushButton()


        self._inVolumeSelector = slicer.vtkSlicerNodeSelectorWidget()
        self._seedsSelector = slicer.vtkSlicerNodeSelectorWidget()
        self._targetSeedsSelector = slicer.vtkSlicerNodeSelectorWidget()
        self._outVolumeSelector = slicer.vtkSlicerNodeSelectorWidget()
        self._outEvolVolumeSelector = slicer.vtkSlicerNodeSelectorWidget()

        self._vrCheckButton = slicer.vtkKWCheckButton()

        self._topFrame = slicer.vtkSlicerModuleCollapsibleFrame()
        self._initFrame = slicer.vtkSlicerModuleCollapsibleFrame()
        self._evolFrame = slicer.vtkSlicerModuleCollapsibleFrame()

        self._sbCheckButton = slicer.vtkKWCheckButton()        
        self._thresholdExtent = slicer.vtkKWExtent()

        self._startButton = slicer.vtkKWPushButton()

        self._evolMethod  = slicer.vtkKWRadioButtonSetWithLabel()   
        self._propagationScale = slicer.vtkKWScaleWithEntry()
        self._curvatureScale = slicer.vtkKWScaleWithEntry()
        self._advectionScale = slicer.vtkKWScaleWithEntry()

        self._iterationsSpinbox = slicer.vtkKWSpinBoxWithLabel()

        self._evolStartButton = slicer.vtkKWPushButton()

        self._helper = VMTKEasyLevelSetSegmentationHelper(self)

        self._logic = VMTKEasyLevelSetSegmentationLogic(self)

        self._presetsScene = None # a new MRML Scene for the self._presetsScene environment

        self._outInitModelDisplay = None

        self._updating = 0

        self._pages = []