1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleMeshDeformation.bbs
4 # ----------------------------------
7 # ----------------------
12 include creaMaracasVisu
18 description "Description ??"
21 new vtk:LoadHola Box00
23 new creaMaracasVisu:ViewerNV Box01
25 new creaVtk:OutputWindow Box02
27 new wx:LayoutSplit Box03
28 set Box03.Orientation "H"
30 new wx:LayoutLine Box04
32 new vtk:PolyDataToActor Box06
35 set Box07.Label "true"
37 set Box07.ReactiveOnTrack "true"
38 set Box07.Title "Opacity"
43 new vtk:UpdateRender Box09
44 set Box09.Active "true"
46 new creaVtk:PointPicker Box10
47 set Box10.TypeEvent "2"
49 new creaVtk:PlaneWidget Box11
50 set Box11.Active "true"
51 set Box11.Origin "30 30 30"
52 set Box11.Resolution "10"
54 new vtk:vtkImageDataPointerRelay Box12
58 set Box13.Title "Picker"
60 new creaMaracasVisu:SetPosition Box14
62 new std:MathOperationVector Box16
65 new vtk:ImageVtkProperties Box17
69 set Box18.Title "Plane"
72 set Box19.In "Outline Wireframe Surface"
73 set Box19.Selection "1"
75 new std:MultipleInputs Box20
77 new std:MultipleInputs Box21
79 new creaVtk:ImageThreshold Box65
80 set Box65.InValue "255"
81 set Box65.Lower "1200"
82 set Box65.OutValue "0"
83 set Box65.Upper "5000"
85 new vtk:ImageGaussianSmooth Box66
90 new vtk:MarchingCubes Box67
93 new creaVtk:MeshDeformation Box26
98 set Box28.Label "true"
100 set Box28.ReactiveOnTrack "true"
103 new wx:CheckBox Box29
104 set Box29.Title "Deformation ON/OFF"
106 new wx:LayoutLine Box30
107 set Box30.Orientation "H"
110 connect Box01.Widget Box03.Widget2
112 connect Box04.Widget Box03.Widget1
114 connect Box01.Renderer1 Box06.Renderer
116 connect Box07.Out Box08.In1
118 connect Box08.Out Box06.Opacity
120 connect Box07.BoxChange Box06.BoxExecute
122 connect Box01.Renderer1 Box09.Renderer
124 connect Box01.Renderer1 Box10.Renderer
126 connect Box01.Renderer1 Box11.Renderer
128 connect Box00.Out Box12.In
130 connect Box12.Out Box01.In
132 connect Box12.Out Box11.In
134 connect Box13.Widget Box04.Widget4
136 connect Box07.Widget Box04.Widget2
138 connect Box13.Out Box10.Active
140 connect Box01.wxVtkBaseView1 Box14.wxVtkBaseView
142 connect Box10.BoxChange Box14.BoxExecute
144 connect Box12.Out Box17.In
146 connect Box17.Spacing Box16.In1
148 connect Box10.Point Box16.In0
150 connect Box16.Out Box14.Point
152 connect Box18.Widget Box04.Widget6
154 connect Box18.Out Box11.Active
156 connect Box06.Out Box10.Prop3D
158 connect Box19.Widget Box04.Widget7
160 connect Box19.Out Box11.Representation
162 connect Box19.BoxChange Box20.In1
164 connect Box18.BoxChange Box20.In2
166 connect Box20.BoxChange Box11.BoxExecute
168 connect Box06.BoxChange Box21.In2
170 connect Box11.BoxChange Box21.In1
172 connect Box21.BoxChange Box09.BoxExecute
174 connect Box10.Point Box11.Origin
176 connect Box10.BoxChange Box21.In3
178 connect Box12.Out Box65.In
180 connect Box65.Out Box66.In
182 connect Box66.Out Box67.In
184 connect Box67.Out Box06.In
186 connect Box67.Out Box26.In
188 connect Box11.BoxChange Box26.BoxExecute
190 connect Box10.PointId Box26.EdgeId
192 connect Box28.Out Box26.S
194 connect Box28.Widget Box30.Widget2
196 connect Box29.Widget Box30.Widget4
198 connect Box30.Widget Box04.Widget8
200 connect Box29.Out Box26.Active
202 connect Box11.Center Box26.Center
206 # Complex input ports