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
157 new std:GetVectorIntElement Box75
160 new vtk:GetVectorVtkImageDataElement Box76
162 new std:GetVectorIntElement Box77
165 new vtk:AddImageToVector Box84
167 new vtk:GetVectorVtkImageDataElement Box85
169 new vtk:GetVectorVtkImageDataElement Box88
171 new vtk:AddImageToVector Box90
173 new vtk:GetVectorVtkImageDataElement Box91
175 new vtk:GetVectorVtkImageDataElement Box94
181 set Box97.Loop "true"
185 new std:Multiply Box98
189 connect checkS.Out switch.On
190 connect sdrT.Out switch.Time
191 connect sdrT.BoxChange switch.BoxExecute
192 connect switch.Widget Box47.Widget1
193 connect sdrT.Widget Box48.Widget2
194 connect Box47.Widget Box48.Widget1
195 connect Box48.Widget switchWindow.Widget2
196 connect Box12.Widget Box10.Widget1
197 connect Box10.Widget switchWindow.Widget1
198 connect Box22.Out Box19.In
199 connect Box23.Out Box21.In
200 connect Box29.Widget Box10.Widget2
201 connect Box22.Out Box26.In
202 connect Box23.Out Box27.In
203 connect Box22.Out Box31.In
204 connect Box23.Out Box32.In
205 connect Box17.Out Box37.In
206 connect Box37.Out Box49.In
207 connect Box25.Out Box38.In
208 connect Box38.Out Box24.In
209 connect Box30.Out Box39.In
210 connect Box39.Out Box28.In
211 connect Box41.Widget Box12.Widget1
212 connect Box49.Widget Box42.Widget1
213 connect Box42.Widget Box41.Widget1
214 connect Box45.Widget Box44.Widget1
215 connect Box24.Widget Box45.Widget1
216 connect Box44.Widget Box12.Widget2
217 connect Box50.Widget Box46.Widget1
218 connect Box52.Widget Box51.Widget1
219 connect Box28.Widget Box50.Widget1
220 connect Box46.Widget Box29.Widget1
221 connect Box51.Widget Box29.Widget2
222 connect Box54.WindowColorLevel Box55.In
223 connect Box54.WindowColorLevel Box56.In
224 connect Box55.Out Box28.WindowLevel
225 connect Box56.Out Box28.ColorLevel
226 connect Box30.BoxChange Box57.In1
227 connect Box57.BoxChange Box28.BoxExecute
228 connect Box54.BoxChange Box57.In2
229 connect Box49.wxVtkBaseView1 Box54.wxVtkBaseView
230 connect Box25.BoxChange Box59.In1
231 connect Box59.BoxChange Box24.BoxExecute
232 connect Box54.BoxChange Box59.In2
233 connect Box56.Out Box24.ColorLevel
234 connect Box55.Out Box24.WindowLevel
235 connect Box60.widget Box52.Widget2
236 connect Box61.Out Box62.In
237 connect Box61.Out Box63.In
238 connect Box64.Out Box49.Interpolate
239 connect Box64.Out Box28.Interpolate
240 connect Box64.Out Box24.Interpolate
241 connect Box64.BoxChange Box57.In3
242 connect Box64.BoxChange Box59.In3
243 connect Box17.BoxChange Box65.In1
244 connect Box65.BoxChange Box49.BoxExecute
245 connect Box64.BoxChange Box65.In3
246 connect switch.BoxChange Box66.In1
247 connect Box64.Widget Box47.Widget7
248 connect checkS.Widget Box47.Widget5
249 connect Box67.Widget Box47.Widget3
250 connect Box67.BoxChange Box66.In2
251 connect Box66.BoxChange Box25.BoxExecute
252 connect Box66.BoxChange Box17.BoxExecute
253 connect Box66.BoxChange Box30.BoxExecute
254 connect Box26.Out Box70.In0
255 connect Box27.Out Box70.In1
256 connect Box70.Out Box72.In
257 connect Box73.Out Box75.In
258 connect Box75.Out Box72.I
259 connect Box77.Out Box76.I
260 connect Box73.Out Box77.In
261 connect Box72.Out Box25.In1
262 connect Box76.Out Box25.In2
263 connect Box70.Out Box76.In
264 connect Box84.Out Box85.In
265 connect Box84.Out Box88.In
266 connect Box90.Out Box91.In
267 connect Box90.Out Box94.In
268 connect Box31.Out Box90.In0
269 connect Box32.Out Box90.In1
270 connect Box91.Out Box30.In1
271 connect Box94.Out Box30.In2
272 connect Box75.Out Box85.I
273 connect Box77.Out Box88.I
274 connect Box75.Out Box91.I
275 connect Box77.Out Box94.I
276 connect Box85.Out Box17.In1
277 connect Box88.Out Box17.In2
278 connect Box19.Out Box84.In0
279 connect Box21.Out Box84.In1
280 connect Box97.Out Box96.In1
281 connect Box96.Out Box73.In
282 connect Box66.BoxChange Box97.BoxExecute
283 connect checkS.Out Box98.In1
284 connect Box98.Out Box96.In2
286 # Complex input ports
287 input ImageVector1 Box22.In " "
288 input ImageVector2 Box23.In " "
289 input windowcolorlevel Box61.In " "
291 # Complex output ports
292 output Widget switchWindow.Widget " "