1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - TransformWidget.bbs
4 # ----------------------------------
12 define TransformWidget vtk
15 description "Description ??"
19 new wx:LayoutTab Box00
21 new wx:LayoutLine Box01
22 set Box01.WinTitle "Rotation"
25 set Box03.ChangeResolution "true"
26 set Box03.Label "true"
29 set Box03.ReactiveOnTrack "true"
30 set Box03.Title "Rotation X"
33 set Box04.ChangeResolution "true"
34 set Box04.Label "true"
37 set Box04.ReactiveOnTrack "true"
38 set Box04.Title "Rotation Y"
41 set Box05.ChangeResolution "true"
42 set Box05.Label "true"
45 set Box05.ReactiveOnTrack "true"
46 set Box05.Title "Rotation Z"
48 new wx:LayoutLine Box06
49 set Box06.WinTitle "Translate"
52 set Box07.ChangeResolution "true"
53 set Box07.Label "true"
56 set Box07.ReactiveOnTrack "true"
57 set Box07.Title "Translation X"
60 set Box08.ChangeResolution "true"
61 set Box08.Label "true"
64 set Box08.ReactiveOnTrack "true"
65 set Box08.Title "Translation Y"
68 set Box09.ChangeResolution "true"
69 set Box09.Label "true"
72 set Box09.ReactiveOnTrack "true"
73 set Box09.Title "Translation Z"
75 new wx:LayoutLine Box10
76 set Box10.WinTitle "Scale"
79 set Box11.ChangeResolution "true"
81 set Box11.Label "true"
84 set Box11.ReactiveOnTrack "true"
85 set Box11.Title "Scale X"
88 set Box12.ChangeResolution "true"
90 set Box12.Label "true"
93 set Box12.ReactiveOnTrack "true"
94 set Box12.Title "Scale Y"
97 set Box13.ChangeResolution "true"
99 set Box13.Label "true"
102 set Box13.ReactiveOnTrack "true"
103 set Box13.Title "Scale Z"
105 new vtk:Transform Box14
107 new std:ConcatStrings Box15
109 set Box15.In3 "1 0 0"
111 new std:ConcatStrings Box16
115 new std:MultipleInputs Box17
117 new std:MultipleInputs Box18
119 new std:MultipleInputs Box19
121 new std:MultipleInputs Box20
132 new vtk:Transform Box28
134 new std:ConcatStrings Box29
136 set Box29.In3 "0 1 0"
138 new vtk:Transform Box30
140 new std:ConcatStrings Box31
142 set Box31.In3 "0 0 1"
144 new vtk:Transform Box32
146 new vtk:Transform Box33
148 new vtk:Transform Box34
152 new std:GetVectorDoubleElement Box36
153 set Box36.ErrorValue "0"
158 new std:GetVectorDoubleElement Box41
159 set Box41.ErrorValue "0"
164 new std:GetVectorDoubleElement Box43
165 set Box43.ErrorValue "0"
170 new std:ConcatStrings Box45
174 new std:GetVectorDoubleElement Box47
175 set Box47.ErrorValue "1"
178 new std:GetVectorDoubleElement Box49
179 set Box49.ErrorValue "1"
182 new std:GetVectorDoubleElement Box50
183 set Box50.ErrorValue "1"
186 new std:MagicBox Box52
188 new std:MagicBox Box53
192 new std:GetVectorDoubleElement Box56
193 set Box56.ErrorValue "0"
198 new std:GetVectorDoubleElement Box58
199 set Box58.ErrorValue "0"
202 new std:GetVectorDoubleElement Box59
203 set Box59.ErrorValue "0"
208 new std:MagicBox Box61
217 connect Box01.Widget Box00.Widget1
218 connect Box05.Widget Box01.Widget3
219 connect Box04.Widget Box01.Widget2
220 connect Box03.Widget Box01.Widget1
221 connect Box09.Widget Box06.Widget3
222 connect Box08.Widget Box06.Widget2
223 connect Box07.Widget Box06.Widget1
224 connect Box13.Widget Box10.Widget3
225 connect Box12.Widget Box10.Widget2
226 connect Box11.Widget Box10.Widget1
227 connect Box06.Widget Box00.Widget2
228 connect Box10.Widget Box00.Widget3
229 connect Box16.Out Box14.Translate
230 connect Box03.BoxChange Box17.In1
231 connect Box04.BoxChange Box17.In2
232 connect Box05.BoxChange Box17.In3
233 connect Box07.BoxChange Box18.In1
234 connect Box08.BoxChange Box18.In2
235 connect Box09.BoxChange Box18.In3
236 connect Box11.BoxChange Box19.In1
237 connect Box12.BoxChange Box19.In2
238 connect Box13.BoxChange Box19.In3
239 connect Box17.BoxChange Box20.In1
240 connect Box18.BoxChange Box20.In2
241 connect Box19.BoxChange Box20.In3
242 connect Box11.Out Box22.In1
243 connect Box12.Out Box23.In1
244 connect Box13.Out Box24.In1
245 connect Box15.Out Box28.RotateWXYZ
246 connect Box29.Out Box30.RotateWXYZ
247 connect Box31.Out Box32.RotateWXYZ
248 connect Box28.Out Box30.In
249 connect Box30.Out Box32.In
250 connect Box14.Out Box28.In
251 connect Box20.BoxChange Box33.BoxExecute
252 connect Box32.Out Box33.In
253 connect Box36.Out Box35.In2
254 connect Box07.Out Box35.In1
255 connect Box35.Out Box16.In1
256 connect Box41.Out Box40.In2
257 connect Box08.Out Box40.In1
258 connect Box40.Out Box16.In3
259 connect Box43.Out Box44.In2
260 connect Box09.Out Box44.In1
261 connect Box44.Out Box16.In5
262 connect Box45.Out Box33.Scale
263 connect Box52.Out Box50.In
264 connect Box52.Out Box47.In
265 connect Box52.Out Box49.In
266 connect Box53.Out Box43.In
267 connect Box53.Out Box36.In
268 connect Box53.Out Box41.In
269 connect Box56.Out Box55.In2
270 connect Box58.Out Box57.In2
271 connect Box59.Out Box60.In2
272 connect Box61.Out Box59.In
273 connect Box61.Out Box56.In
274 connect Box61.Out Box58.In
275 connect Box03.Out Box55.In1
276 connect Box55.Out Box15.In1
277 connect Box04.Out Box57.In1
278 connect Box57.Out Box29.In1
279 connect Box05.Out Box60.In1
280 connect Box60.Out Box31.In1
281 connect Box22.Out Box62.In1
282 connect Box23.Out Box63.In1
283 connect Box24.Out Box64.In1
284 connect Box62.Out Box45.In1
285 connect Box63.Out Box45.In3
286 connect Box64.Out Box45.In5
287 connect Box47.Out Box62.In2
288 connect Box49.Out Box63.In2
289 connect Box50.Out Box64.In2
291 # Complex input ports
292 input TitleWindow Box00.WinTitle " "
293 input scaleXYZ Box52.In " "
294 input translateXYZ Box53.In " "
295 input rotateXYZ Box61.In " "
297 # Complex output ports
298 output Window Box00.Widget " "
299 output Transform Box33.Out " "
300 output BoxChange Box33.BoxChange " "