1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
4 # ----------------------------------
10 include creaMaracasVisu
16 define ThresholdWidget creaMiniTools
18 author "info-team at creatis.insa-lyon.fr"
19 description "Threshod binary widget"
21 category "filter widget"
23 new CommandButton Box00
27 set Box01.WinTitle "Parameters"
29 new BinaryThresholdImageFilter Box02
30 set Box02.InsideValue 255
31 set Box02.LowerThreshold 1500
32 set Box02.OutsideValue 0
33 set Box02.UpperThreshold 10000
36 set Box03.nTypeView "0"
39 set Box05.WinTitle Threshold
41 new SliderMinMax Box07
43 set Box07.InMaxShow 2000
45 set Box07.InMinShow 1000
49 new SaveMHD-Button Box10
52 set Box11.In "Min. Max. Gray level" "
54 new IsoSurfaceWidget Box12
55 set Box12.Title "Iso Surface"
57 new vtkImageDataPointerRelay Box13
59 new ImageVtkProperties Box14
61 new GetVectorFloatElement Box15
64 new GetVectorFloatElement Box16
68 connect Box00.Widget Box01.Widget5
69 connect Box00.BoxChange Box03.BoxExecute
70 connect Box02.Out Box03.In
71 connect Box03.Widget Box05.Widget2
72 connect Box01.Widget Box09.Widget1
73 connect Box09.Widget Box05.Widget1
74 connect Box02.Out Box10.In
75 connect Box11.Widget Box01.Widget1
76 connect Box07.Widget Box01.Widget2
77 connect Box00.BoxChange Box12.BoxExecute
78 connect Box12.Widget Box09.Widget2
79 connect Box10.Widget Box09.Widget3
80 connect Box13.Out Box02.In
81 connect Box13.Out Box14.In
82 connect Box14.MinMax Box15.In
83 connect Box14.MinMax Box16.In
84 connect Box16.Out Box07.InMax
85 connect Box15.Out Box07.InMin
86 connect Box07.OutEnd Box02.UpperThreshold
87 connect Box07.OutStart Box02.LowerThreshold
88 connect Box00.BoxChange Box07.BoxExecute
89 connect Box02.Out Box12.In
92 input vtkRenderer Box12.vtkRenderer " "
95 # Complex output ports
96 output BoxChange Box12.BoxChange " "
97 output OutImage Box02.Out " "
98 output Widget Box05.Widget " "