]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/boxes/Mesh_tool_ApplySmooth.bbs
c9bb7163e3f4233764a2abd9e22f119c8ca3ae9e
[creaMaracasVisu.git] / bbtk / bbs / boxes / Mesh_tool_ApplySmooth.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySmooth.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_ApplySmooth 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 vtk:ImageVtkProperties Box68
27
28 new wx:LayoutLine Box79
29   set Box79.Orientation "H"
30   set Box79.WinTitle "New Surface ( Magenta )"
31
32 new wx:CommandButton Box80
33   set Box80.Label "Run"
34
35 new std:MagicBox Box66
36
37 new std:MagicBox Box67
38
39 new vtk:vtkImageDataPointerRelay Box35
40
41 new creaMaracasVisu:PolyDataToActor_Widget Box37
42   set Box37.color "0 1 1"
43   set Box37.meshOpacity "100"
44
45 new wx:LayoutTab Box40
46
47 new wx:CommandButton Box42
48   set Box42.Label "Apply  (Magenta->To Red)"
49
50 new wx:CommandButton Box43
51   set Box43.Label "Reset Tool"
52
53 new wx:LayoutLine Box44
54   set Box44.Orientation "V"
55   set Box44.WinTitle "1.1 Mesh Action"
56
57 new creaVtk:MeshManager_tool Box45
58   set Box45.Tool "30"
59
60 new std:MagicBox Box46
61
62 new std:MultipleInputs Box51
63
64 new std:MagicBox Box63
65
66 new std:MagicBox Box64
67
68 new std:MagicBox Box65
69
70 new std:MagicBox Box69
71
72 new std:MagicBox Box71
73
74 new creaMaracasVisu:MeshContours_Widget Box72
75   set Box72.active_widget "1"
76   set Box72.colorMesh "0 1 1"
77
78 new wx:LayoutLine Box81
79   set Box81.WinTitle "Step 1.   Surface"
80
81 new wx:LayoutTab Box82
82
83 new wx:OutputText Box84
84
85 new creaVtk:MeshManager Box92
86
87 new creaVtk:MeshManager_tool Box93
88   set Box93.BoxProcessMode "Manual"
89   set Box93.Tool "35"
90
91 new creaMaracasVisu:wxVtkBaseView_Info Box96
92
93 new creaVtk:PolyDataToImageData Box97
94
95 new vtk:CreateImage Box98
96   set Box98.OutputFormat "VTK_UNSIGNED_CHAR"
97
98 new vtk:ImageGaussianSmooth Box99
99   set Box99.StdDevX "1"
100   set Box99.StdDevY "1"
101   set Box99.StdDevZ "1"
102
103 new vtk:MarchingCubes Box100
104   set Box100.Value "128"
105
106 new creaVtk:MeshReduction_DecimatePro Box41
107   set Box41.TargetReduction "0.8"
108
109 new creaVtk:MeshManager_tool Box47
110   set Box47.Tool "35"
111
112 new creaVtk:MeshManager_tool Box48
113   set Box48.Tool "35"
114
115 new creaVtk:PolyDataNormals Box39
116
117 new wx:LayoutLine Box49
118   set Box49.Orientation "V"
119   set Box49.WinTitle "1.2 Apply Changes"
120
121 new wx:LayoutTab Box50
122
123 new wx:LayoutLine Box52
124   set Box52.Orientation "V"
125   set Box52.WinTitle "Visu"
126
127 new wx:LayoutLine Box53
128   set Box53.Orientation "V"
129   set Box53.WinTitle "conf"
130
131 new wx:LayoutTab Box54
132
133 new wx:OutputText Box55
134
135 new wx:OutputText Box56
136
137 new std:MagicBox Box57
138
139 new std:MagicBox Box58
140
141 new std:MagicBox Box59
142
143
144 connect Box66.Out Box11.Renderer
145 connect Box35.Out Box68.In
146 connect Box66.Out Box37.render
147 connect Box79.Widget Box40.Widget2
148 connect Box80.Widget Box44.Widget5
149 connect Box46.Out Box45.MeshManagerModel
150 connect Box71.Out Box72._wxvtkbaseview3D1
151 connect Box64.Out Box72._wxvtkbaseview2D1
152 connect Box65.Out Box72._wxvtkbaseview2D2
153 connect Box69.Out Box72._wxvtkbaseview2D3
154 connect Box44.Widget Box82.Widget2
155 connect Box82.Widget Box79.Widget2
156 connect Box84.Widget Box44.Widget9
157 connect Box92.MeshManagerModel Box93.MeshManagerModel
158 connect Box92.MeshBase Box72._polydata
159 connect Box92.MeshBase Box37.polydata
160 connect Box81.Widget Box08.Widget2
161 connect Box71.Out Box96.wxVtkBaseView
162 connect Box96.vtkRenderer Box66.In
163 connect Box98.Out Box97.InImage
164 connect Box68.Spacing Box98.Spacing
165 connect Box68.Size Box98.Dimensions
166 connect Box67.Out Box97.InPolyData
167 connect Box97.Out Box99.In
168 connect Box99.Out Box100.In
169 connect Box40.Widget Box81.Widget2
170 connect Box100.Out Box41.In
171 connect Box43.BoxChange Box48.BoxExecute
172 connect Box92.MeshManagerModel Box48.MeshManagerModel
173 connect Box92.MeshBase Box45.Mesh
174 connect Box37.boxchange Box11.BoxExecute
175 connect Box41.Out Box39.In
176 connect Box39.Out Box93.Mesh
177 connect Box43.Widget Box44.Widget2
178 connect Box42.Widget Box49.Widget2
179 connect Box42.BoxChange Box51.BoxExecute
180 connect Box45.BoxChange Box51.In2
181 connect Box80.BoxChange Box93.BoxExecute
182 connect Box47.BoxChange Box51.In5
183 connect Box92.MeshManagerModel Box47.MeshManagerModel
184 connect Box49.Widget Box50.Widget2
185 connect Box50.Widget Box79.Widget4
186 connect Box72._widgetA Box52.Widget2
187 connect Box37.widgetA Box52.Widget4
188 connect Box72._widgetB Box53.Widget2
189 connect Box37.widgetB Box53.Widget4
190 connect Box52.Widget Box54.Widget2
191 connect Box53.Widget Box54.Widget4
192 connect Box54.Widget Box79.Widget7
193 connect Box55.Widget Box52.Widget9
194 connect Box56.Widget Box53.Widget9
195 connect Box57.BoxChange Box72.Freeplane_boxexecute
196 connect Box58.Out Box72.Freeplane_point
197 connect Box59.Out Box72.Freeplane_transform
198 connect Box37.boxchange Box72._execute
199
200 # Complex input ports
201 input mesh Box67.In " "
202 input image Box35.In " "
203 input title Box08.WinTitle " "
204 input meshmanagermodel Box46.In " "
205 input boxChange Box63.In " "
206 input wxvtkbaseview2 Box64.In " "
207 input wxvtkbaseview3 Box65.In " "
208 input wxvtkbaseview4 Box69.In " "
209 input wxvtkbaseview1 Box71.In " "
210 input freeplane_boxexecute Box57.In " "
211 input freeplane_point Box58.In " "
212 input freeplane_transform Box59.In " "
213
214 # Complex output ports
215 output widget Box08.Widget " "
216
217
218 endefine