def __init__(self, parentFrame, parentClass):
        SlicerVMTKAdvancedPageSkeleton.__init__(self, parentFrame, parentClass)

        self._sourceFiducialList = None
        self._targetFiducialList = None

        self._currentFiducialList = None

        #top frame starts
        self._firstRowFrame = slicer.vtkKWFrame()

        # source frame starts
        self._sourcePointsFrame = slicer.vtkKWFrameWithLabel()

        self._addSourcePointButton = slicer.vtkKWPushButton()
        self._delSourcePointButton = slicer.vtkKWPushButton()
        self._sourcePointsList = slicer.vtkKWListBoxWithScrollbars()

        # target frame starts
        self._targetPointsFrame = slicer.vtkKWFrameWithLabel()

        self._addTargetPointButton = slicer.vtkKWPushButton()
        self._delTargetPointButton = slicer.vtkKWPushButton()
        self._targetPointsList = slicer.vtkKWListBoxWithScrollbars()

        #middle frame starts
        self._secondRowFrame = slicer.vtkKWFrame()

        #threshold frame starts
        self._thresholdFrame = slicer.vtkKWFrameWithLabel()
        self._thresholdSlider = slicer.vtkKWExtent()

        self._startButton = slicer.vtkKWPushButton()
        self._resetButton = slicer.vtkKWPushButton()
    def __init__(self,parentFrame,parentClass):
        SlicerVMTKAdvancedPageSkeleton.__init__(self,parentFrame,parentClass)

        self._sourceFiducialList = None
        self._targetFiducialList = None

        self._currentFiducialList = None

        #top frame starts
        self._firstRowFrame = slicer.vtkKWFrame()

        # source frame starts
        self._sourcePointsFrame = slicer.vtkKWFrameWithLabel()

        self._addSourcePointButton = slicer.vtkKWPushButton()
        self._delSourcePointButton = slicer.vtkKWPushButton()
        self._sourcePointsList = slicer.vtkKWListBoxWithScrollbars()
   

        # target frame starts
        self._targetPointsFrame = slicer.vtkKWFrameWithLabel()

        self._addTargetPointButton = slicer.vtkKWPushButton()
        self._delTargetPointButton = slicer.vtkKWPushButton()
        self._targetPointsList = slicer.vtkKWListBoxWithScrollbars()

        #middle frame starts
        self._secondRowFrame = slicer.vtkKWFrame()

        #threshold frame starts
        self._thresholdFrame = slicer.vtkKWFrameWithLabel()
        self._thresholdSlider = slicer.vtkKWExtent()

        self._startButton = slicer.vtkKWPushButton()
        self._resetButton = 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 = []
Ejemplo n.º 4
0
    def __init__(self,parentFrame,parentClass):
        SlicerVMTKAdvancedPageSkeleton.__init__(self,parentFrame,parentClass)

        #top frame starts
        self._firstRowFrame = slicer.vtkKWFrame()

        #middle frame starts
        self._secondRowFrame = slicer.vtkKWFrame()

        #threshold frame starts
        self._thresholdFrame = slicer.vtkKWFrameWithLabel()
        self._thresholdSlider = slicer.vtkKWExtent()

        self._startButton = slicer.vtkKWPushButton()
        self._resetButton = slicer.vtkKWPushButton()
    def __init__(self, parentFrame, parentClass):
        SlicerVMTKAdvancedPageSkeleton.__init__(self, parentFrame, parentClass)

        self._firstRowFrame = slicer.vtkKWFrame()
        self._addSourcePointButton = slicer.vtkKWPushButton()
        self._addTargetPointButton = slicer.vtkKWPushButton()
        self._secondRowFrame = slicer.vtkKWFrame()
        self._thresholdFrame = slicer.vtkKWFrameWithLabel()
        self._thresholdSlider = slicer.vtkKWExtent()
        self._startButton = slicer.vtkKWPushButton()
        self._resetButton = slicer.vtkKWPushButton()

        self._sourceFiducialList = None
        self._targetFiducialList = None

        self._state = 0
    def __init__(self,parentFrame,parentClass):
        SlicerVMTKAdvancedPageSkeleton.__init__(self,parentFrame,parentClass)

        self._firstRowFrame = slicer.vtkKWFrame()
        self._addSourcePointButton = slicer.vtkKWPushButton()
        self._addTargetPointButton = slicer.vtkKWPushButton()
        self._secondRowFrame = slicer.vtkKWFrame()
        self._thresholdFrame = slicer.vtkKWFrameWithLabel()
        self._thresholdSlider = slicer.vtkKWExtent()
        self._startButton = slicer.vtkKWPushButton()
        self._resetButton = slicer.vtkKWPushButton()

        self._sourceFiducialList = None
        self._targetFiducialList = None


        self._state = 0