Package SlicerVMTKLevelSet :: Module SlicerVMTKEvolutionWelcomeGUI
[hide private]
[frames] | no frames]

Source Code for Module SlicerVMTKLevelSet.SlicerVMTKEvolutionWelcomeGUI

 1  from SlicerVMTKAdvancedPageSkeleton import SlicerVMTKAdvancedPageSkeleton 
 2  from Slicer import slicer 
 3   
 4  vtkKWPushButton_InvokedEvent = 10000 
 5   
 6  ### 
 7  ### curves evolution (derived from skeleton) 
 8  ### 
9 -class SlicerVMTKEvolutionWelcomeGUI(SlicerVMTKAdvancedPageSkeleton):
10
11 - def __init__(self,parentFrame,parentClass):
12 SlicerVMTKAdvancedPageSkeleton.__init__(self,parentFrame,parentClass) 13 14 self._welcomeMessage = slicer.vtkKWTextWithHyperlinksWithScrollbars()
15
16 - def Destructor(self):
17 SlicerVMTKAdvancedPageSkeleton.Destructor(self) 18 19 self._welcomeMessage = None
20
21 - def BuildGUI(self):
22 SlicerVMTKAdvancedPageSkeleton.BuildGUI(self) 23 24 25 self._welcomeMessage.SetParent(self._parentFrame) 26 self._welcomeMessage.Create() 27 self._welcomeMessage.GetWidget().SetWrapToWord() 28 self._welcomeMessage.GetWidget().SetHeight(15) 29 self._welcomeMessage.GetWidget().QuickFormattingOn() 30 self._welcomeMessage.SetHorizontalScrollbarVisibility(0) 31 self._welcomeMessage.SetVerticalScrollbarVisibility(1) 32 self._welcomeMessage.SetText("**Level-Set Segmentation using VMTK** (<a>http://www.vmtk.org</a>):\n\n\nThe following evolution methods exist:\n\n**Geodesic**: evolution using the geodesic active contour filter\n\n**Curves**: evolution using the curves image filter\n\n**Parameters**:\n**Number of iterations** is the number of deformation steps the model will perform.\n\n**Propagation scaling** is the weight you assign to model inflation.\n\n**Curvature scaling** is the weight you assign to model surface regularization\n\n**Advection scaling** regulates the attraction of the surface of the image gradient modulus ridges") 33 self._welcomeMessage.GetWidget().ReadOnlyOn() 34 35 36 slicer.TkCall("pack %s -side top -anchor nw -fill x -padx 2 -pady 2 -in %s" % (self._welcomeMessage.GetWidgetName(),self._parentFrame.GetWidgetName()))
37