]> 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 1"
153   set Box73.In1 "0 0"
154   set Box73.In2 "1 1"
155
156 new wx:RadioButton Box74
157   set Box74.In0 "A B"
158   set Box74.In1 "A A"
159   set Box74.In2 "B B"
160
161 new std:GetVectorIntElement Box75
162   set Box75.I "0"
163
164 new vtk:GetVectorVtkImageDataElement Box76
165
166 new std:GetVectorIntElement Box77
167   set Box77.I "1"
168
169 new vtk:AddImageToVector Box84
170
171 new vtk:GetVectorVtkImageDataElement Box85
172
173 new vtk:GetVectorVtkImageDataElement Box88
174
175 new vtk:AddImageToVector Box90
176
177 new vtk:GetVectorVtkImageDataElement Box91
178
179 new vtk:GetVectorVtkImageDataElement Box94
180
181
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
275
276 # Complex input ports
277 input ImageVector1 Box22.In " "
278 input ImageVector2 Box23.In " "
279 input windowcolorlevel Box61.In " "
280
281 # Complex output ports
282 output Widget switchWindow.Widget " "
283
284
285 endefine