1 # ----------------------------------
2 # - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
4 # ----------------------------------
10 include creaMaracasVisu
14 define CompareImagesSwitcherWidget_3Dp PackRecalage
16 author "info-dev@creatis.insa-lyon.fr"
17 description "creatisRecalage"
21 new PackRecalage:ImageSwitcherBox switch
22 set switch.Title "200"
24 new wx:CheckBox checkS
26 set checkS.Title "Auto"
32 set sdrT.ReactiveOnTrack "True"
34 new wx:LayoutSplit switchWindow
35 set switchWindow.Proportion "95"
36 set switchWindow.WinTitle "Switcher"
38 new wx:LayoutLine Box47
39 set Box47.Orientation H
41 new wx:LayoutLine Box48
43 new creaMaracasVisu:ViewerNV Box49
44 set Box49.nTypeView "-1"
46 new wx:LayoutSplit Box10
47 set Box10.Orientation "H"
49 new wx:LayoutSplit Box12
51 new PackRecalage:ImageSwitcherFilter Box17
53 new vtk:GetVectorVtkImageDataElement Box19
56 new vtk:GetVectorVtkImageDataElement Box21
59 new std:MagicBox Box22
61 new std:MagicBox Box23
63 new creaMaracasVisu:ViewerNV Box24
64 set Box24.nTypeView "-1"
66 new PackRecalage:ImageSwitcherFilter Box25
68 new vtk:GetVectorVtkImageDataElement Box26
71 new vtk:GetVectorVtkImageDataElement Box27
74 new creaMaracasVisu:ViewerNV Box28
75 set Box28.nTypeView "-1"
77 new wx:LayoutSplit Box29
79 new PackRecalage:ImageSwitcherFilter Box30
81 new vtk:GetVectorVtkImageDataElement Box31
84 new vtk:GetVectorVtkImageDataElement Box32
87 new creaMaracasVisu:ImageChangeInformation Box37
89 new creaMaracasVisu:ImageChangeInformation Box38
91 new creaMaracasVisu:ImageChangeInformation Box39
93 new wx:LayoutTab Box41
95 new wx:LayoutLine Box42
96 set Box42.WinTitle "Plane XZ (rotation/slice Y)"
98 new wx:LayoutTab Box44
100 new wx:LayoutLine Box45
101 set Box45.WinTitle "Plane XY (rotation/slice Z)"
103 new wx:LayoutTab Box46
105 new wx:LayoutLine Box50
106 set Box50.WinTitle "Plane YZ (rotation/slice X)"
108 new wx:LayoutTab Box51
110 new wx:LayoutLine Box52
111 set Box52.WinTitle "Viewer help"
113 new creaMaracasVisu:wxVtkBaseView_Info Box54
114 set Box54.InteractionType "12"
116 new std:GetVectorDoubleElement Box55
119 new std:GetVectorDoubleElement Box56
122 new std:MultipleInputs Box57
124 new std:MultipleInputs Box59
126 new creaMaracasVisu:HelpViewerNV Box60
128 new std:MagicBox Box61
130 new std:GetVectorDoubleElement Box62
133 new std:GetVectorDoubleElement Box63
136 new wx:CheckBox Box64
138 set Box64.Title "Interpolate"
140 new std:MultipleInputs Box65
142 new std:MultipleInputs Box66
144 new wx:CommandButton Box67
145 set Box67.Label "Switch"
147 new vtk:AddImageToVector Box70
149 new vtk:GetVectorVtkImageDataElement Box72
151 new std:StringSelect Box73
156 new wx:RadioButton Box74
161 new std:GetVectorIntElement Box75
164 new vtk:GetVectorVtkImageDataElement Box76
166 new std:GetVectorIntElement Box77
169 new vtk:AddImageToVector Box84
171 new vtk:GetVectorVtkImageDataElement Box85
173 new vtk:GetVectorVtkImageDataElement Box88
175 new vtk:AddImageToVector Box90
177 new vtk:GetVectorVtkImageDataElement Box91
179 new vtk:GetVectorVtkImageDataElement Box94
182 connect checkS.Out switch.On
183 connect sdrT.Out switch.Time
184 connect sdrT.BoxChange switch.BoxExecute
185 connect switch.Widget Box47.Widget1
186 connect sdrT.Widget Box48.Widget2
187 connect Box47.Widget Box48.Widget1
188 connect Box48.Widget switchWindow.Widget2
189 connect Box12.Widget Box10.Widget1
190 connect Box10.Widget switchWindow.Widget1
191 connect Box22.Out Box19.In
192 connect Box23.Out Box21.In
193 connect Box29.Widget Box10.Widget2
194 connect Box22.Out Box26.In
195 connect Box23.Out Box27.In
196 connect Box22.Out Box31.In
197 connect Box23.Out Box32.In
198 connect Box17.Out Box37.In
199 connect Box37.Out Box49.In
200 connect Box25.Out Box38.In
201 connect Box38.Out Box24.In
202 connect Box30.Out Box39.In
203 connect Box39.Out Box28.In
204 connect Box41.Widget Box12.Widget1
205 connect Box49.Widget Box42.Widget1
206 connect Box42.Widget Box41.Widget1
207 connect Box45.Widget Box44.Widget1
208 connect Box24.Widget Box45.Widget1
209 connect Box44.Widget Box12.Widget2
210 connect Box50.Widget Box46.Widget1
211 connect Box52.Widget Box51.Widget1
212 connect Box28.Widget Box50.Widget1
213 connect Box46.Widget Box29.Widget1
214 connect Box51.Widget Box29.Widget2
215 connect Box54.WindowColorLevel Box55.In
216 connect Box54.WindowColorLevel Box56.In
217 connect Box55.Out Box28.WindowLevel
218 connect Box56.Out Box28.ColorLevel
219 connect Box30.BoxChange Box57.In1
220 connect Box57.BoxChange Box28.BoxExecute
221 connect Box54.BoxChange Box57.In2
222 connect Box49.wxVtkBaseView1 Box54.wxVtkBaseView
223 connect Box25.BoxChange Box59.In1
224 connect Box59.BoxChange Box24.BoxExecute
225 connect Box54.BoxChange Box59.In2
226 connect Box56.Out Box24.ColorLevel
227 connect Box55.Out Box24.WindowLevel
228 connect Box60.widget Box52.Widget2
229 connect Box61.Out Box62.In
230 connect Box61.Out Box63.In
231 connect Box64.Out Box49.Interpolate
232 connect Box64.Out Box28.Interpolate
233 connect Box64.Out Box24.Interpolate
234 connect Box64.BoxChange Box57.In3
235 connect Box64.BoxChange Box59.In3
236 connect Box17.BoxChange Box65.In1
237 connect Box65.BoxChange Box49.BoxExecute
238 connect Box64.BoxChange Box65.In3
239 connect switch.BoxChange Box66.In1
240 connect Box64.Widget Box47.Widget7
241 connect checkS.Widget Box47.Widget5
242 connect Box67.Widget Box47.Widget3
243 connect Box67.BoxChange Box66.In2
244 connect Box66.BoxChange Box25.BoxExecute
245 connect Box66.BoxChange Box17.BoxExecute
246 connect Box66.BoxChange Box30.BoxExecute
247 connect Box26.Out Box70.In0
248 connect Box27.Out Box70.In1
249 connect Box70.Out Box72.In
250 connect Box74.Widget Box47.Widget4
251 connect Box74.Out Box73.In
252 connect Box73.Out Box75.In
253 connect Box75.Out Box72.I
254 connect Box77.Out Box76.I
255 connect Box73.Out Box77.In
256 connect Box72.Out Box25.In1
257 connect Box76.Out Box25.In2
258 connect Box70.Out Box76.In
259 connect Box84.Out Box85.In
260 connect Box84.Out Box88.In
261 connect Box90.Out Box91.In
262 connect Box90.Out Box94.In
263 connect Box31.Out Box90.In0
264 connect Box32.Out Box90.In1
265 connect Box91.Out Box30.In1
266 connect Box94.Out Box30.In2
267 connect Box75.Out Box85.I
268 connect Box77.Out Box88.I
269 connect Box75.Out Box91.I
270 connect Box77.Out Box94.I
271 connect Box85.Out Box17.In1
272 connect Box88.Out Box17.In2
273 connect Box19.Out Box84.In0
274 connect Box21.Out Box84.In1
276 # Complex input ports
277 input ImageVector1 Box22.In " "
278 input ImageVector2 Box23.In " "
279 input windowcolorlevel Box61.In " "
281 # Complex output ports
282 output Widget switchWindow.Widget " "