1 from SlicerVMTKAdvancedPageSkeleton import SlicerVMTKAdvancedPageSkeleton
2 from Slicer import slicer
3
4 vtkKWPushButton_InvokedEvent = 10000
5
6
7
8
10
11 - def __init__(self,parentFrame,parentClass):
15
20
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