]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/exampleMeshDeformation.bbs
#3472 MeshDeformation
[creaMaracasVisu.git] / bbtk / bbs / appli / exampleMeshDeformation.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleMeshDeformation.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMaracasVisu
13 include creaVtk
14 include wx
15 include std
16
17 author "Author ??"
18 description "Description ??"
19 category "<VOID>"
20
21 new vtk:LoadHola Box00
22
23 new creaMaracasVisu:ViewerNV Box01
24
25 new creaVtk:OutputWindow Box02
26
27 new wx:LayoutSplit Box03
28   set Box03.Orientation "H"
29
30 new wx:LayoutLine Box04
31
32 new vtk:PolyDataToActor Box06
33
34 new wx:Slider Box07
35   set Box07.Label "true"
36   set Box07.Max "100"
37   set Box07.ReactiveOnTrack "true"
38   set Box07.Title "Opacity"
39
40 new std:Div Box08
41   set Box08.In2 "100"
42
43 new vtk:UpdateRender Box09
44   set Box09.Active "true"
45
46 new creaVtk:PointPicker Box10
47   set Box10.TypeEvent "2"
48
49 new creaVtk:PlaneWidget Box11
50   set Box11.Active "true"
51   set Box11.Origin "30 30 30"
52   set Box11.Resolution "10"
53
54 new vtk:vtkImageDataPointerRelay Box12
55
56 new wx:CheckBox Box13
57   set Box13.In "false"
58   set Box13.Title "Picker"
59
60 new creaMaracasVisu:SetPosition Box14
61
62 new std:MathOperationVector Box16
63   set Box16.Type "3"
64
65 new vtk:ImageVtkProperties Box17
66
67 new wx:CheckBox Box18
68   set Box18.In "false"
69   set Box18.Title "Plane"
70
71 new wx:ComboBox Box19
72   set Box19.In "Outline Wireframe Surface"
73   set Box19.Selection "1"
74
75 new std:MultipleInputs Box20
76
77 new std:MultipleInputs Box21
78
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"
84
85 new vtk:ImageGaussianSmooth Box66
86   set Box66.StdDevX "3"
87   set Box66.StdDevY "3"
88   set Box66.StdDevZ "3"
89
90 new vtk:MarchingCubes Box67
91   set Box67.Value "128"
92
93 new creaVtk:MeshDeformation Box26
94   set Box26.TypeIn "1"
95
96 new wx:Slider Box28
97   set Box28.In "30"
98   set Box28.Label "true"
99   set Box28.Max "40"
100   set Box28.ReactiveOnTrack "true"
101   set Box28.Title "S"
102
103 new wx:CheckBox Box29
104   set Box29.Title "Deformation ON/OFF"
105
106 new wx:LayoutLine Box30
107
108
109 connect Box01.Widget Box03.Widget2
110
111 connect Box04.Widget Box03.Widget1
112
113 connect Box01.Renderer1 Box06.Renderer
114
115 connect Box07.Out Box08.In1
116
117 connect Box08.Out Box06.Opacity
118
119 connect Box07.BoxChange Box06.BoxExecute
120
121 connect Box01.Renderer1 Box09.Renderer
122
123 connect Box01.Renderer1 Box10.Renderer
124
125 connect Box01.Renderer1 Box11.Renderer
126
127 connect Box00.Out Box12.In
128
129 connect Box12.Out Box01.In
130
131 connect Box12.Out Box11.In
132
133 connect Box13.Widget Box04.Widget4
134
135 connect Box07.Widget Box04.Widget2
136
137 connect Box13.Out Box10.Active
138
139 connect Box01.wxVtkBaseView1 Box14.wxVtkBaseView
140
141 connect Box10.BoxChange Box14.BoxExecute
142
143 connect Box12.Out Box17.In
144
145 connect Box17.Spacing Box16.In1
146
147 connect Box10.Point Box16.In0
148
149 connect Box16.Out Box14.Point
150
151 connect Box18.Widget Box04.Widget6
152
153 connect Box18.Out Box11.Active
154
155 connect Box06.Out Box10.Prop3D
156
157 connect Box19.Widget Box04.Widget7
158
159 connect Box19.Out Box11.Representation
160
161 connect Box19.BoxChange Box20.In1
162
163 connect Box18.BoxChange Box20.In2
164
165 connect Box20.BoxChange Box11.BoxExecute
166
167 connect Box06.BoxChange Box21.In2
168
169 connect Box11.BoxChange Box21.In1
170
171 connect Box21.BoxChange Box09.BoxExecute
172
173 connect Box10.Point Box11.Origin
174
175 connect Box10.BoxChange Box21.In3
176
177 connect Box12.Out Box65.In
178
179 connect Box65.Out Box66.In
180
181 connect Box66.Out Box67.In
182
183 connect Box67.Out Box06.In
184
185 connect Box67.Out Box26.In
186
187 connect Box11.BoxChange Box26.BoxExecute
188
189 connect Box10.PointId Box26.EdgeId
190
191 connect Box28.Out Box26.S
192
193 connect Box28.Widget Box30.Widget2
194
195 connect Box29.Widget Box30.Widget4
196
197 connect Box30.Widget Box04.Widget8
198
199 connect Box29.Out Box26.Active
200
201 connect Box11.Center Box26.Center
202
203
204
205 # Complex input ports
206 exec Box02
207 exec Box03