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
17 define ThresholdWidget creaMiniTools
19 author "info-team at creatis.insa-lyon.fr"
20 description "Threshod binary widget"
22 category "filter widget"
24 new CommandButton Box00
28 set Box01.WinTitle "Parameters"
30 new BinaryThresholdImageFilter Box02
31 set Box02.InsideValue 255
32 set Box02.LowerThreshold 1500
33 set Box02.OutsideValue 0
34 set Box02.UpperThreshold 10000
37 set Box03.nTypeView "0"
40 set Box05.WinTitle Threshold
42 new SliderMinMax Box07
44 set Box07.InMaxShow 2000
46 set Box07.InMinShow 1000
50 new SaveMHD-Button Box10
53 set Box11.In "Min. Max. Gray level"
55 new IsoSurfaceWidget Box12
56 set Box12.Title "Iso Surface"
58 new vtkImageDataPointerRelay Box13
60 new ImageVtkProperties Box14
62 new GetVectorFloatElement Box15
65 new GetVectorFloatElement Box16
69 connect Box00.Widget Box01.Widget5
70 connect Box00.BoxChange Box03.BoxExecute
71 connect Box02.Out Box03.In
72 connect Box03.Widget Box05.Widget2
73 connect Box01.Widget Box09.Widget1
74 connect Box09.Widget Box05.Widget1
75 connect Box02.Out Box10.In
76 connect Box11.Widget Box01.Widget1
77 connect Box07.Widget Box01.Widget2
78 connect Box02.Out Box12.In
79 connect Box00.BoxChange Box12.BoxExecute
80 connect Box12.Widget Box09.Widget2
81 connect Box10.Widget Box09.Widget3
82 connect Box13.Out Box02.In
83 connect Box13.Out Box14.In
84 connect Box14.MinMax Box15.In
85 connect Box14.MinMax Box16.In
86 connect Box16.Out Box07.InMax
87 connect Box15.Out Box07.InMin
88 connect Box07.OutEnd Box02.UpperThreshold
89 connect Box07.OutStart Box02.LowerThreshold
90 connect Box00.BoxChange Box07.BoxExecute
94 input vtkRenderer Box12.vtkRenderer " "
97 # Complex output ports
98 output Widget Box05.Widget " "
99 output BoxChange Box12.BoxChange " "
100 output OutImage Box02.Out " "