1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
4 # ----------------------------------
9 include creaMaracasVisu
15 define ConnectivityWidget 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 Box03.nTypeView "0"
29 set Box05.WinTitle Connectivity
31 new SegmentationConnectivity Box07
33 new SaveMHD-Button Box10
37 new IsoSurfaceWidget Box14
38 set Box14.Title "Iso Surface"
41 set Box15.Orientation H
42 set Box15.WinTitle "Parameters"
46 new SliderMinMax Box18
48 set Box18.ShowActual false
50 new ConcatStrings Box19
59 new vtkImageDataPointerRelay Box24
61 new GetVectorIntElement Box25
64 new GetVectorIntElement Box26
67 new GetVectorIntElement Box27
70 new ConcatStrings Box28
75 set Box29.Title "3D Point"
79 new ImageVtkProperties Box32
81 new GetVectorFloatElement Box35
84 new GetVectorFloatElement Box36
88 set Box37.In "Min. Max gray level"
91 connect Box00.BoxChange Box03.BoxExecute
92 connect Box03.Widget Box05.Widget2
93 connect Box07.Out Box03.In
94 connect Box07.Out Box10.In
95 connect Box11.Widget Box05.Widget1
96 connect Box07.Out Box14.In
97 connect Box10.Widget Box11.Widget3
98 connect Box14.Widget Box11.Widget2
99 connect Box00.BoxChange Box14.BoxExecute
100 connect Box18.OutEnd Box19.In3
101 connect Box18.OutStart Box19.In1
102 connect Box19.Out Box07.ThresholdMinMax
103 connect Box21.Widget Box15.Widget1
104 connect Box17.Out Box21.In
105 connect Box23.Out Box14.vtkRenderer
106 connect Box23.Out Box21.Renderer
107 connect Box24.Out Box07.In
108 connect Box24.Out Box21.Image
109 connect Box21.lstPointsX Box25.In
110 connect Box21.lstPointsY Box26.In
111 connect Box21.lstPointsZ Box27.In
112 connect Box25.Out Box28.In1
113 connect Box26.Out Box28.In3
114 connect Box27.Out Box28.In5
115 connect Box28.Out Box07.PositionXYZ
116 connect Box21.BoxChange Box29.BoxExecute
117 connect Box30.Widget Box15.Widget2
118 connect Box15.Widget Box11.Widget1
119 connect Box28.Out Box29.In
120 connect Box24.Out Box32.In
121 connect Box32.MinMax Box35.In
122 connect Box32.MinMax Box36.In
123 connect Box36.Out Box18.InMax
124 connect Box35.Out Box18.InMin
125 connect Box00.Widget Box30.Widget4
126 connect Box18.Widget Box30.Widget2
127 connect Box29.Widget Box30.Widget1
128 connect Box37.Widget Box30.Widget3
129 connect Box00.BoxChange Box18.BoxExecute
132 # Complex input ports
133 input point Box17.In " "
134 input vtkRenderer Box23.In " "
135 input In Box24.In " "
136 input end Box18.InMaxShow " "
137 input start Box18.InMinShow " "
139 # Complex output ports
140 output Widget Box05.Widget " "
141 output BoxChange Box14.BoxChange " "
142 output OutImage Box07.Out " "