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 initialization methods exist:\n\n**Colliding Fronts**: very effective when it is necessary to initialize the tract of a vessel, side branches will be ignored.\n\n**Fast Marching**: effective when it is necessary to segment round objects such as aneurysms. For example, by simply placing one seed at the center and one target on the wall, the volume will be initialized.\n\n**Threshold**: pixels comprised within two specified thresholds will be selected as the initial level sets.\n\n**Isosurface**: initial level sets will correspond to an isosurface of the image with sub-pixel precision.\n\n**Seeds**: initial deformable model is chosen by placing seeds.")
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