1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
4 # ----------------------------------
10 include creaMaracasVisu
11 include creaMiniToolsBase
14 define ThresholdWidget creaMiniTools
16 author "info-team at creatis.insa-lyon.fr"
17 description "Threshod binary widget"
19 category "filter widget"
21 new CommandButton Box00
25 set Box01.WinTitle "Parameters"
27 new BinaryThresholdImageFilter Box02
28 set Box02.InsideValue 255
29 set Box02.LowerThreshold 1500
30 set Box02.OutsideValue 0
31 set Box02.UpperThreshold 10000
34 set Box03.nTypeView "0"
37 set Box05.WinTitle Threshold
39 new SliderMinMax Box07
41 set Box07.InMaxShow 2000
43 set Box07.InMinShow 1000
48 set Box08.Title "Iso Min"
52 new SaveMHD-Button Box10
55 set Box11.In "Min. Max. Gray level"
57 new IsoSurfaceWidget Box12
58 set Box12.Title "Iso Surface"
61 connect Box00.Widget Box01.Widget5
62 connect Box00.BoxChange Box03.BoxExecute
63 connect Box02.Out Box03.In
64 connect Box03.Widget Box05.Widget2
65 connect Box08.Out Box02.LowerThreshold
66 connect Box01.Widget Box09.Widget1
67 connect Box09.Widget Box05.Widget1
68 connect Box02.Out Box10.In
69 connect Box11.Widget Box01.Widget1
70 connect Box07.Widget Box01.Widget2
71 connect Box08.Widget Box01.Widget4
72 connect Box02.Out Box12.In
73 connect Box00.BoxChange Box12.BoxExecute
74 connect Box12.Widget Box09.Widget2
75 connect Box10.Widget Box09.Widget3
79 input vtkRenderer Box12.vtkRenderer " "
82 # Complex output ports
83 output Widget Box05.Widget " "
84 output BoxChange Box12.BoxChange " "
85 output OutImage Box02.Out " "