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 # ----------------------------------
11 include creaMaracasVisu
14 define Mesh_tool_ApplySmooth creaMaracasVisu
16 author "info-dev@creatis.insa-lyon.fr"
17 description "Show N Points"
21 new wx:LayoutLine Box08
23 new vtk:UpdateRender Box11
24 set Box11.Active "true"
26 new vtk:ImageVtkProperties Box68
28 new wx:LayoutLine Box79
29 set Box79.Orientation "H"
30 set Box79.WinTitle "New Surface ( Magenta )"
32 new wx:CommandButton Box80
35 new std:MagicBox Box66
37 new std:MagicBox Box67
39 new vtk:vtkImageDataPointerRelay Box35
41 new creaMaracasVisu:PolyDataToActor_Widget Box37
42 set Box37.color "0 1 1"
43 set Box37.meshOpacity "100"
45 new wx:LayoutTab Box40
47 new wx:CommandButton Box42
48 set Box42.Label "Apply (Magenta->To Red)"
50 new wx:CommandButton Box43
51 set Box43.Label "Reset Tool"
53 new wx:LayoutLine Box44
54 set Box44.Orientation "V"
55 set Box44.WinTitle "1.1 Mesh Action"
57 new creaVtk:MeshManager_tool Box45
60 new std:MagicBox Box46
62 new std:MultipleInputs Box51
64 new std:MagicBox Box63
66 new std:MagicBox Box64
68 new std:MagicBox Box65
70 new std:MagicBox Box69
72 new std:MagicBox Box71
74 new creaMaracasVisu:MeshContours_Widget Box72
75 set Box72.active_widget "1"
76 set Box72.colorMesh "0 1 1"
78 new wx:LayoutLine Box81
79 set Box81.WinTitle "Step 1. Surface"
81 new wx:LayoutTab Box82
83 new wx:OutputText Box84
85 new creaVtk:MeshManager Box92
87 new creaVtk:MeshManager_tool Box93
88 set Box93.BoxProcessMode "Manual"
91 new creaMaracasVisu:wxVtkBaseView_Info Box96
93 new creaVtk:PolyDataToImageData Box97
95 new vtk:CreateImage Box98
96 set Box98.OutputFormat "VTK_UNSIGNED_CHAR"
98 new vtk:ImageGaussianSmooth Box99
100 set Box99.StdDevY "1"
101 set Box99.StdDevZ "1"
103 new vtk:MarchingCubes Box100
104 set Box100.Value "128"
106 new creaVtk:MeshReduction_DecimatePro Box41
107 set Box41.TargetReduction "0.8"
109 new creaVtk:MeshManager_tool Box47
112 new creaVtk:MeshManager_tool Box48
115 new creaVtk:PolyDataNormals Box39
117 new wx:LayoutLine Box49
118 set Box49.Orientation "V"
119 set Box49.WinTitle "1.2 Apply Changes"
121 new wx:LayoutTab Box50
123 new wx:LayoutLine Box52
124 set Box52.Orientation "V"
125 set Box52.WinTitle "Visu"
127 new wx:LayoutLine Box53
128 set Box53.Orientation "V"
129 set Box53.WinTitle "conf"
131 new wx:LayoutTab Box54
133 new wx:OutputText Box55
135 new wx:OutputText Box56
137 new std:MagicBox Box57
139 new std:MagicBox Box58
141 new std:MagicBox Box59
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
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 " "
214 # Complex output ports
215 output widget Box08.Widget " "