]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs
#3497 Mesh_tool_ApplyThresholdConnectivity
[creaMaracasVisu.git] / bbtk / bbs / boxes / Mesh_tool_ApplyDeformation.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include vtk
10 include std
11 include creaMaracasVisu
12 include creaVtk
13
14 define Mesh_tool_ApplyDeformation creaMaracasVisu
15
16 author "info-dev@creatis.insa-lyon.fr"
17 description "Show N Points"
18
19 category "demo"
20
21 new wx:LayoutLine Box08
22
23 new vtk:UpdateRender Box11
24   set Box11.Active "true"
25
26 new wx:LayoutLine Box79
27   set Box79.Orientation "H"
28   set Box79.WinTitle "New Surface ( Magenta )"
29
30 new wx:CommandButton Box80
31   set Box80.Label "Refresh"
32
33 new std:MagicBox Box66
34
35 new std:MagicBox Box67
36
37 new vtk:vtkImageDataPointerRelay Box35
38
39 new creaMaracasVisu:PolyDataToActor_Widget Box37
40   set Box37.color "0 1 1"
41
42 new wx:LayoutTab Box40
43
44 new wx:CommandButton Box42
45   set Box42.Label "Apply  (Magenta->To Red)"
46
47 new wx:CommandButton Box43
48   set Box43.Label "Reset Tool"
49
50 new wx:LayoutLine Box44
51   set Box44.Orientation "V"
52   set Box44.WinTitle "Mesh Action"
53
54 new creaVtk:MeshManager_tool Box45
55   set Box45.Tool "32"
56
57 new std:MagicBox Box46
58
59 new std:MultipleInputs Box51
60
61 new std:MagicBox Box63
62
63 new std:MagicBox Box64
64
65 new std:MagicBox Box65
66
67 new std:MagicBox Box69
68
69 new std:MagicBox Box71
70
71 new creaMaracasVisu:MeshContours_Widget Box72
72   set Box72.colorMesh "0 1 1"
73
74 new wx:LayoutLine Box81
75   set Box81.WinTitle "Step 1.   Surface"
76
77 new wx:LayoutTab Box82
78
79 new creaMaracasVisu:wxVtkBaseView_Info Box96
80
81 new creaVtk:MeshManager_tool Box48
82   set Box48.Tool "30"
83
84 new creaVtk:MeshDeformation Box39
85   set Box39.TypeIn "1"
86
87 new wx:Slider Box49
88   set Box49.In "20"
89   set Box49.Label "true"
90   set Box49.Max "40"
91   set Box49.Min "1"
92   set Box49.ReactiveOnTrack "true"
93   set Box49.Title "Size Deformation"
94
95 new wx:CheckBox Box50
96   set Box50.Title "Active"
97
98 new creaVtk:PlaneWidget Box58
99   set Box58.ReactiveType "1"
100   set Box58.Representation "1"
101   set Box58.Resolution "5"
102
103 new std:MultipleInputs Box59
104
105 new wx:CommandButton Box53
106   set Box53.Label "-"
107
108 new wx:CommandButton Box54
109   set Box54.Label "+"
110
111 new wx:LayoutLine Box56
112   set Box56.Orientation "H"
113
114 new creaVtk:PlaneWidget_Base Box57
115   set Box57.Param "-1"
116   set Box57.Type "1"
117
118 new creaVtk:PlaneWidget_Base Box60
119   set Box60.Param "1"
120   set Box60.Type "1"
121
122 new std:MultipleInputs Box61
123
124 new creaVtk:MeshManager Box62
125
126 new std:MultipleInputs Box73
127
128 new creaVtk:PointPickerNearest Box75
129   set Box75.Active "true"
130
131 new creaMaracasVisu:wxVtkBaseView_Info Box76
132   set Box76.InteractionType "6"
133
134 new std:MathOperationVector Box78
135   set Box78.Type "2"
136
137 new vtk:ImageVtkProperties Box83
138
139 new std:SharedMemory Box85
140
141 new std:SharedMemory Box86
142
143 new std:SharedMemory Box87
144
145 new std:MathOperationVector Box88
146   set Box88.Type "3"
147
148 new creaMaracasVisu:SetPosition Box89
149
150 new creaMaracasVisu:wxVtkBaseView_info_tool Box90
151   set Box90.Type "1"
152
153 new creaMaracasVisu:wxVtkBaseView_info_tool Box91
154   set Box91.Type "0"
155
156 new creaVtk:PointPicker Box92
157   set Box92.TypeEvent "2"
158
159 new std:ConcatStrings_tool Box94
160   set Box94.Type "1"
161
162 new std:ConcatStrings Box95
163
164 new std:ConcatStrings_tool Box97
165   set Box97.Type "1"
166
167 new std:ConcatStrings Box98
168
169 new std:ConcatStrings_tool Box99
170   set Box99.Type "1"
171
172 new std:ConcatStrings_tool Box100
173   set Box100.Type "1"
174
175 new std:ConcatStrings_tool Box101
176   set Box101.Type "1"
177
178 new std:ConcatStrings Box102
179
180 new std:ConcatStrings_tool Box103
181   set Box103.Type "1"
182
183 new wx:RadioButton Box104
184   set Box104.In0 "Magenta"
185   set Box104.In1 "Colour"
186   set Box104.In2 "B&W"
187
188 new std:StringSelect Box105
189   set Box105.In0 "false"
190   set Box105.In1 "true"
191   set Box105.In2 "true"
192
193 new vtk:SurfaceTexture Box106
194
195 new std:Add Box107
196   set Box107.In2 "-1"
197
198 new wx:LayoutLine Box108
199   set Box108.Orientation "H"
200
201 new std:MultipleInputs Box109
202
203 new creaMaracasVisu:wxVtkBaseView_Info Box110
204
205 new std:GetVectorDoubleElement Box111
206   set Box111.I "0"
207
208 new std:GetVectorDoubleElement Box112
209   set Box112.I "1"
210
211 new creaMaracasVisu:wxVtkBaseView_Info Box113
212   set Box113.InteractionType "8"
213
214 new creaMaracasVisu:wxVtkBaseView_info_tool Box114
215   set Box114.Type "1"
216
217 new std:MathOperationVector Box115
218   set Box115.Type "2"
219
220 new std:ConcatStrings_tool Box116
221   set Box116.Type "1"
222
223 new std:ConcatStrings Box117
224   set Box117.In1 "true"
225
226 new std:Mul Box118
227
228 new std:ReplaceCleanString Box119
229   set Box119.Replace "1"
230   set Box119.Search "true"
231
232
233 connect Box66.Out Box11.Renderer
234 connect Box66.Out Box37.render
235 connect Box79.Widget Box40.Widget2
236 connect Box80.Widget Box44.Widget5
237 connect Box46.Out Box45.MeshManagerModel
238 connect Box45.BoxChange Box51.In2
239 connect Box71.Out Box72._wxvtkbaseview3D1
240 connect Box64.Out Box72._wxvtkbaseview2D1
241 connect Box65.Out Box72._wxvtkbaseview2D2
242 connect Box69.Out Box72._wxvtkbaseview2D3
243 connect Box72._widget Box79.Widget6
244 connect Box44.Widget Box82.Widget2
245 connect Box82.Widget Box79.Widget2
246 connect Box81.Widget Box08.Widget2
247 connect Box96.vtkRenderer Box66.In
248 connect Box37.widget Box79.Widget7
249 connect Box40.Widget Box81.Widget2
250 connect Box37.boxchange Box11.BoxExecute
251 connect Box49.Out Box39.S
252 connect Box50.Out Box58.Active
253 connect Box50.BoxChange Box59.In2
254 connect Box59.BoxChange Box58.BoxExecute
255 connect Box96.vtkRenderer Box58.Renderer
256 connect Box35.Out Box58.In
257 connect Box53.Widget Box56.Widget2
258 connect Box54.Widget Box56.Widget4
259 connect Box58.Base Box57.In
260 connect Box58.Base Box60.In
261 connect Box53.BoxChange Box57.BoxExecute
262 connect Box54.BoxChange Box60.BoxExecute
263 connect Box58.Center Box39.Center
264 connect Box49.BoxChange Box61.In1
265 connect Box58.BoxChange Box61.In2
266 connect Box61.BoxChange Box39.BoxExecute
267 connect Box67.Out Box62.Mesh
268 connect Box62.MeshTemp Box39.In
269 connect Box62.MeshManagerModel Box48.MeshManagerModel
270 connect Box62.MeshTemp Box37.polydata
271 connect Box62.MeshTemp Box72._polydata
272 connect Box50.Out Box37.active
273 connect Box62.MeshTemp Box45.Mesh
274 connect Box42.BoxChange Box51.BoxExecute
275 connect Box43.BoxChange Box48.BoxExecute
276 connect Box67.Out Box48.Mesh
277 connect Box39.BoxChange Box73.In2
278 connect Box63.BoxChange Box73.In3
279 connect Box73.BoxChange Box72._execute
280 connect Box62.MeshTemp Box75.Mesh
281 connect Box76.Point Box78.In0
282 connect Box35.Out Box83.In
283 connect Box83.Spacing Box78.In1
284 connect Box78.Out Box75.Point
285 connect Box58.Center Box88.In0
286 connect Box83.Spacing Box88.In1
287 connect Box88.Out Box89.Point
288 connect Box58.BoxChange Box89.BoxExecute
289 connect Box76.InteractorwxVtkBaseView_model Box90.InteractorwxVtkBaseView_model
290 connect Box76.InteractorwxVtkBaseView_model2 Box90.InteractorwxVtkBaseView_model2
291 connect Box64.Out Box90.wxVtkBaseView
292 connect Box65.Out Box90.wxVtkBaseView2
293 connect Box69.Out Box90.wxVtkBaseView3
294 connect Box76.InteractorwxVtkBaseView_model3 Box90.InteractorwxVtkBaseView_model3
295 connect Box96.Box_wxVtkBaseView_Info Box91.Box_wxVtkBaseView_Info
296 connect Box71.Out Box91.wxVtkBaseView
297 connect Box50.BoxChange Box91.BoxExecute
298 connect Box50.BoxChange Box90.BoxExecute
299 connect Box75.PointId Box87.In
300 connect Box75.Normal Box86.In
301 connect Box75.PointOut Box85.In
302 connect Box96.wxVtkBaseView Box89.wxVtkBaseView
303 connect Box50.Out Box89.Active
304 connect Box96.vtkRenderer Box92.Renderer
305 connect Box92.Point Box85.In1
306 connect Box92.PointId Box87.In1
307 connect Box92.Normal Box86.In1
308 connect Box75.PointOut Box94.In1
309 connect Box95.Box_ConcatStrings Box94.Box_ConcatString
310 connect Box95.Out Box58.Origin
311 connect Box98.Box_ConcatStrings Box97.Box_ConcatString
312 connect Box92.Normal Box97.In1
313 connect Box95.Box_ConcatStrings Box99.Box_ConcatString
314 connect Box92.Point Box99.In1
315 connect Box98.Box_ConcatStrings Box100.Box_ConcatString
316 connect Box75.Normal Box100.In1
317 connect Box102.Box_ConcatStrings Box101.Box_ConcatString
318 connect Box102.Box_ConcatStrings Box103.Box_ConcatString
319 connect Box102.Out Box39.EdgeId
320 connect Box75.PointId Box101.In1
321 connect Box92.PointId Box103.In1
322 connect Box98.Out Box58.NormalIn
323 connect Box76.BoxChange Box101.BoxExecute
324 connect Box92.BoxChange Box103.BoxExecute
325 connect Box103.BoxChange Box99.BoxExecute
326 connect Box99.BoxChange Box97.BoxExecute
327 connect Box101.BoxChange Box94.BoxExecute
328 connect Box94.BoxChange Box100.BoxExecute
329 connect Box104.Out Box105.In
330 connect Box105.Out Box37.scalarvisibility
331 connect Box104.Out Box107.In1
332 connect Box107.Out Box106.ColorType
333 connect Box62.MeshTemp Box106.Mesh
334 connect Box50.Widget Box108.Widget2
335 connect Box104.Widget Box108.Widget4
336 connect Box35.Out Box106.Image
337 connect Box104.BoxChange Box109.In1
338 connect Box110.BoxChange Box106.BoxExecute
339 connect Box109.BoxChange Box110.BoxExecute
340 connect Box71.Out Box110.wxVtkBaseView
341 connect Box110.WindowColorLevel Box111.In
342 connect Box110.WindowColorLevel Box112.In
343 connect Box112.Out Box106.ColorLevel
344 connect Box111.Out Box106.ColorWindow
345 connect Box63.BoxChange Box109.In2
346 connect Box113.InteractorwxVtkBaseView_model Box114.InteractorwxVtkBaseView_model
347 connect Box113.InteractorwxVtkBaseView_model2 Box114.InteractorwxVtkBaseView_model2
348 connect Box113.InteractorwxVtkBaseView_model3 Box114.InteractorwxVtkBaseView_model3
349 connect Box83.Spacing Box115.In1
350 connect Box113.Point Box115.In0
351 connect Box95.Box_ConcatStrings Box116.Box_ConcatString
352 connect Box115.Out Box116.In1
353 connect Box113.BoxChange Box116.BoxExecute
354 connect Box50.BoxChange Box114.BoxExecute
355 connect Box64.Out Box114.wxVtkBaseView
356 connect Box65.Out Box114.wxVtkBaseView2
357 connect Box69.Out Box114.wxVtkBaseView3
358 connect Box117.Out Box119.In
359 connect Box119.Out Box118.In1
360 connect Box50.Out Box118.In2
361 connect Box118.Out Box39.Active
362 connect Box37.vtkprop3D Box92.Prop3D
363 connect Box97.BoxChange Box59.In3
364 connect Box56.Widget Box44.Widget4
365 connect Box49.Widget Box44.Widget3
366 connect Box108.Widget Box44.Widget2
367 connect Box42.Widget Box44.Widget6
368 connect Box43.Widget Box44.Widget1
369
370 # Complex input ports
371 input mesh Box67.In " "
372 input image Box35.In " "
373 input title Box08.WinTitle " "
374 input meshmanagermodel Box46.In " "
375 input boxChange Box63.In " "
376 input wxvtkbaseview2 Box64.In " "
377 input wxvtkbaseview3 Box65.In " "
378 input wxvtkbaseview4 Box69.In " "
379 input wxvtkbaseview1 Box71.In " "
380
381 # Complex output ports
382 output widget Box08.Widget " "
383 output ExportIsActive_concatstring_tool Box117.Box_ConcatStrings " "
384
385
386 endefine