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
15 define ThresholdWidget creaMiniTools
17 author "info-team at creatis.insa-lyon.fr"
18 description "Threshod binary widget"
20 category "filter widget"
22 new CommandButton Box00
26 set Box01.WinTitle "Parameters"
28 new BinaryThresholdImageFilter Box02
29 set Box02.InsideValue 255
30 set Box02.LowerThreshold 1500
31 set Box02.OutsideValue 0
32 set Box02.UpperThreshold 10000
35 set Box03.nTypeView "0"
38 set Box05.WinTitle Threshold
40 new SliderMinMax Box07
42 set Box07.InMaxShow 2000
44 set Box07.InMinShow 1000
49 set Box08.Title "Iso Min"
53 new SaveMHD-Button Box10
56 set Box11.In "Min. Max. Gray level"
58 new IsoSurfaceWidget Box12
59 set Box12.Title "Iso Surface"
62 connect Box00.Widget Box01.Widget5
63 connect Box00.BoxChange Box03.BoxExecute
64 connect Box02.Out Box03.In
65 connect Box03.Widget Box05.Widget2
66 connect Box08.Out Box02.LowerThreshold
67 connect Box01.Widget Box09.Widget1
68 connect Box09.Widget Box05.Widget1
69 connect Box02.Out Box10.In
70 connect Box11.Widget Box01.Widget1
71 connect Box07.Widget Box01.Widget2
72 connect Box08.Widget Box01.Widget4
73 connect Box02.Out Box12.In
74 connect Box00.BoxChange Box12.BoxExecute
75 connect Box12.Widget Box09.Widget2
76 connect Box10.Widget Box09.Widget3
80 input vtkRenderer Box12.vtkRenderer " "
83 # Complex output ports
84 output Widget Box05.Widget " "
85 output BoxChange Box12.BoxChange " "
86 output OutImage Box02.Out " "