]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
#3471 Add manual option to CompareImageSwitcherWidget
[creaRigidRegistration.git] / PackRecalage / bbs / boxes / CompareImagesSwitcherWidget_3Dp.bbs
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 # ----------------------------------
5
6 include std
7 include itkvtk
8 include PackRecalage
9 include wx
10 include creaMaracasVisu
11 include vtk
12 include std
13
14 define CompareImagesSwitcherWidget_3Dp PackRecalage
15
16 author "info-dev@creatis.insa-lyon.fr"
17 description "creatisRecalage"
18
19 category "example"
20
21 new PackRecalage:ImageSwitcherBox switch
22   set switch.Title "200"
23
24 new wx:CheckBox checkS
25   set checkS.In "true"
26   set checkS.Title "Auto"
27
28 new wx:Slider sdrT
29   set sdrT.In "500"
30   set sdrT.Max "1000"
31   set sdrT.Min "200"
32   set sdrT.ReactiveOnTrack "True"
33
34 new wx:LayoutSplit switchWindow
35   set switchWindow.Proportion "95"
36   set switchWindow.WinTitle "Switcher"
37
38 new wx:LayoutLine Box47
39   set Box47.Orientation H
40
41 new wx:LayoutLine Box48
42
43 new creaMaracasVisu:ViewerNV Box49
44   set Box49.nTypeView "-1"
45
46 new wx:LayoutSplit Box10
47   set Box10.Orientation "H"
48
49 new wx:LayoutSplit Box12
50
51 new PackRecalage:ImageSwitcherFilter Box17
52
53 new vtk:GetVectorVtkImageDataElement Box19
54   set Box19.I "1"
55
56 new vtk:GetVectorVtkImageDataElement Box21
57   set Box21.I "1"
58
59 new std:MagicBox Box22
60
61 new std:MagicBox Box23
62
63 new creaMaracasVisu:ViewerNV Box24
64   set Box24.nTypeView "-1"
65
66 new PackRecalage:ImageSwitcherFilter Box25
67
68 new vtk:GetVectorVtkImageDataElement Box26
69   set Box26.I "0"
70
71 new vtk:GetVectorVtkImageDataElement Box27
72   set Box27.I "0"
73
74 new creaMaracasVisu:ViewerNV Box28
75   set Box28.nTypeView "-1"
76
77 new wx:LayoutSplit Box29
78
79 new PackRecalage:ImageSwitcherFilter Box30
80
81 new vtk:GetVectorVtkImageDataElement Box31
82   set Box31.I "2"
83
84 new vtk:GetVectorVtkImageDataElement Box32
85   set Box32.I "2"
86
87 new creaMaracasVisu:ImageChangeInformation Box37
88
89 new creaMaracasVisu:ImageChangeInformation Box38
90
91 new creaMaracasVisu:ImageChangeInformation Box39
92
93 new wx:LayoutTab Box41
94
95 new wx:LayoutLine Box42
96   set Box42.WinTitle "Plane XZ  (rotation/slice Y)"
97
98 new wx:LayoutTab Box44
99
100 new wx:LayoutLine Box45
101   set Box45.WinTitle "Plane XY  (rotation/slice Z)"
102
103 new wx:LayoutTab Box46
104
105 new wx:LayoutLine Box50
106   set Box50.WinTitle "Plane YZ  (rotation/slice X)"
107
108 new wx:LayoutTab Box51
109
110 new wx:LayoutLine Box52
111   set Box52.WinTitle "Viewer help"
112
113 new creaMaracasVisu:wxVtkBaseView_Info Box54
114   set Box54.InteractionType "12"
115
116 new std:GetVectorDoubleElement Box55
117   set Box55.I "0"
118
119 new std:GetVectorDoubleElement Box56
120   set Box56.I "1"
121
122 new std:MultipleInputs Box57
123
124 new std:MultipleInputs Box59
125
126 new creaMaracasVisu:HelpViewerNV Box60
127
128 new std:MagicBox Box61
129
130 new std:GetVectorDoubleElement Box62
131   set Box62.I "0"
132
133 new std:GetVectorDoubleElement Box63
134   set Box63.I "1"
135
136 new wx:CheckBox Box64
137   set Box64.In "true"
138   set Box64.Title "Interpolate"
139
140 new std:MultipleInputs Box65
141
142 new std:MultipleInputs Box66
143
144 new wx:CommandButton Box67
145   set Box67.Label "Switch"
146
147 new vtk:AddImageToVector Box70
148
149 new vtk:GetVectorVtkImageDataElement Box72
150
151 new std:StringSelect Box73
152   set Box73.In0 "0 0"
153   set Box73.In1 "1 1"
154   set Box73.In2 "0 1"
155   set Box73.In3 "0 1"
156
157 new std:GetVectorIntElement Box75
158   set Box75.I "0"
159
160 new vtk:GetVectorVtkImageDataElement Box76
161
162 new std:GetVectorIntElement Box77
163   set Box77.I "1"
164
165 new vtk:AddImageToVector Box84
166
167 new vtk:GetVectorVtkImageDataElement Box85
168
169 new vtk:GetVectorVtkImageDataElement Box88
170
171 new vtk:AddImageToVector Box90
172
173 new vtk:GetVectorVtkImageDataElement Box91
174
175 new vtk:GetVectorVtkImageDataElement Box94
176
177 new std:Add Box96
178
179 new std:Spin Box97
180   set Box97.End "1"
181   set Box97.Loop "true"
182   set Box97.Start "0"
183   set Box97.Step "1"
184
185 new std:Multiply Box98
186   set Box98.In2 "2"
187
188
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
285
286 # Complex input ports
287 input ImageVector1 Box22.In " "
288 input ImageVector2 Box23.In " "
289 input windowcolorlevel Box61.In " "
290
291 # Complex output ports
292 output Widget switchWindow.Widget " "
293
294
295 endefine