1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaImageIO/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbs
4 # ----------------------------------
8 include Transform3Ddicom
15 define ViewerPlaneContourDicom3D Transform3Ddicom
18 description "Description ??"
22 new Transform3Ddicom:SliceVectorImageDicom3D Box11
23 set Box11.OpacityPlane "0.2"
25 new creaImageIO:ReadImages Box24
26 set Box24.DicomTags "D0020_0032 D0020_0037 D0018_1060"
28 new std:FilesFromDirectory Box30
29 set Box30.FileEnd ".IMA"
30 set Box30.In "/home/davila/CreatisWorks/tmpSIMR/results/creaSIMR-Visu/Genet/Original_Images_Dicom/test_01/p_0001/condition_01/cine_tfi_retro_p3_SA 9"
32 new std:ReplaceString Box46
36 new vtk:Transform Box73
37 set Box73.Scale "1 1 1"
39 new creaVtk:ConcatTransform Box75
41 new std:GetVectorStringElement Box119
43 new wx:LayoutLine Box121
47 set Box124.Label "true"
50 set Box124.ReactiveOnTrack "true"
51 set Box124.Title "Plane Opacity"
56 new wx:LayoutTab Box126
58 new std:MultipleInputs Box129
60 new vtk:PolyDataToActor Box130
61 set Box130.Colour "0 1 1"
62 set Box130.LineWidth "2"
63 set Box130.Opacity "1"
64 set Box130.Representation "1"
66 new creaVtk:Plane Box131
67 set Box131.Origin "0 0 35"
69 new creaVtk:Cutter Box132
71 new vtk:Transform Box134
72 set Box134.Inverse "true"
74 new creaVtk:ConcatTransform Box135
76 new creaVtk:ApplyTransformToPoint3D Box136
78 new std:MultipleInputs Box151
80 new creaVtk:ConcatTransform Box152
82 new vtk:Transform Box153
83 set Box153.Inverse "true"
85 new vtk:PolyDataToActor Box154
86 set Box154.Colour "0 1 1"
87 set Box154.LineWidth "2"
88 set Box154.Opacity "1"
89 set Box154.Representation "1"
91 new vtk:Transform Box155
92 set Box155.Inverse "true"
93 set Box155.Translate "0 0 35"
95 new std:MagicBox Box145
97 new std:MagicBox Box146
99 new std:MagicBox Box147
101 new std:MagicBox Box148
103 new std:ConcatStrings Box150
104 set Box150.In1 "Plan"
106 new std:ConcatStrings Box160
109 new std:MagicBox Box161
111 new std:MagicBox Box53
113 new creaVtk:Cutter Box54
115 new vtk:PolyDataToActor Box57
116 set Box57.Colour "1 1 0"
117 set Box57.LineWidth "2"
118 set Box57.Opacity "1"
119 set Box57.Representation "1"
121 new vtk:PolyDataToActor Box58
122 set Box58.Colour "1 1 0"
123 set Box58.LineWidth "2"
124 set Box58.Opacity "1"
125 set Box58.Representation "1"
127 new wx:LayoutLine Box59
128 set Box59.Orientation "H"
132 set Box60.Label "true"
135 set Box60.ReactiveOnTrack "true"
136 set Box60.Title "Int. Cont .Opacity"
143 set Box62.Label "true"
146 set Box62.ReactiveOnTrack "true"
147 set Box62.Title "Ext. Cont .Opacity"
152 new vtk:UpdateRender Box65
153 set Box65.Active "true"
155 new std:MultipleInputs Box66
157 new std:MagicBox Box67
159 new vtk:UpdateRender Box51
160 set Box51.Active "true"
162 new std:MultipleInputs Box52
164 new std:ConcatStrings Box68
165 set Box68.In2 "/translation.txt"
167 new std:ReplaceCleanString Box69
168 set Box69.Replace "Original_Images_Translations"
169 set Box69.Search "Original_Images_Dicom"
171 new std:ReadLinesString Box70
173 new wx:ComboBox Box71
175 new std:SplitFilePathVector Box72
177 new std:MagicBox Box74
180 connect Box24.DicomInfo Box11.VecDicomMap
181 connect Box24.OutImages Box11.VecImage
182 connect Box30.Out Box46.In
183 connect Box46.Out Box24.LstNameImages
184 connect Box73.Out Box75.In1
185 connect Box124.Out Box125.In1
186 connect Box124.Widget Box121.Widget7
187 connect Box121.Widget Box126.Widget1
188 connect Box124.BoxChange Box129.In3
189 connect Box119.Out Box30.In
190 connect Box125.Out Box11.OpacityPlane
191 connect Box132.Out Box130.In
192 connect Box136.Out Box131.Origin
193 connect Box136.OutDirection Box131.Normal
194 connect Box131.Out Box132.ImplicitFunction
195 connect Box75.Out Box130.Transform
196 connect Box134.Out Box135.In2
197 connect Box11.OutTransform Box135.In1
198 connect Box135.Out Box136.Transform
199 connect Box130.BoxChange Box151.In3
200 connect Box75.Out Box152.In1
201 connect Box153.Out Box152.In2
202 connect Box11.OutTransform Box153.In
203 connect Box132.Out Box154.In
204 connect Box152.Out Box154.Transform
205 connect Box154.BoxChange Box151.In6
206 connect Box11.renderer Box154.Renderer
207 connect Box155.Out Box152.In3
208 connect Box145.Out Box119.In
209 connect Box129.BoxChange Box11.boxExecute
210 connect Box146.BoxChange Box129.In1
211 connect Box147.Out Box11.indexZ
212 connect Box148.Out Box11.render
213 connect Box148.Out Box130.Renderer
214 connect Box150.Out Box121.WinTitle
215 connect Box161.Out Box132.In
216 connect Box53.Out Box54.In
217 connect Box131.Out Box54.ImplicitFunction
218 connect Box54.Out Box57.In
219 connect Box54.Out Box58.In
220 connect Box75.Out Box57.Transform
221 connect Box152.Out Box58.Transform
222 connect Box148.Out Box57.Renderer
223 connect Box57.BoxChange Box151.In1
224 connect Box58.BoxChange Box151.In2
225 connect Box11.renderer Box58.Renderer
226 connect Box59.Widget Box121.Widget8
227 connect Box60.Out Box61.In1
228 connect Box60.Widget Box59.Widget1
229 connect Box62.Out Box63.In1
230 connect Box61.Out Box57.Opacity
231 connect Box61.Out Box58.Opacity
232 connect Box63.Out Box130.Opacity
233 connect Box63.Out Box154.Opacity
234 connect Box62.Widget Box59.Widget3
235 connect Box11.renderer Box65.Renderer
236 connect Box66.BoxChange Box65.BoxExecute
237 connect Box60.BoxChange Box66.In1
238 connect Box62.BoxChange Box66.In3
239 connect Box67.Out Box134.In
240 connect Box67.Out Box75.In2
241 connect Box73.Out Box135.In3
242 connect Box129.BoxChange Box151.In4
243 connect Box148.Out Box51.Renderer
244 connect Box124.BoxChange Box52.In1
245 connect Box52.BoxChange Box51.BoxExecute
246 connect Box66.BoxChange Box52.In4
247 connect Box119.Out Box68.In1
248 connect Box68.Out Box69.In
249 connect Box69.Out Box70.FileName
250 connect Box70.Out Box11.IPP_Correction
251 connect Box145.Out Box72.In
252 connect Box72.BaseName Box71.In
253 connect Box71.Widget Box121.Widget1
254 connect Box74.Out Box30.FileEnd
255 connect Box71.Out Box119.I
256 connect Box71.BoxChange Box52.In3
257 connect Box71.BoxChange Box129.In4
258 connect Box160.Out Box71.Selection
259 connect Box11.boxChange_ImageActor Box151.In5
261 # Complex input ports
262 input lstDirInstans Box145.In " "
263 input StartPlane Box160.In1 " "
264 input TitleWidget Box150.In1 " "
265 input boxchange Box146.In " "
266 input iPlane Box147.In " "
267 input render3D Box148.In " "
268 input surfExternal Box161.In " "
269 input surfInternal Box53.In " "
270 input TransformRefForSurface Box67.In " "
271 input dicomExtension Box74.In " "
273 # Complex output ports
274 output widgetControls Box126.Widget " "
275 output widget2D Box11._widget " "
276 output boxExecuteForRender Box151.BoxChange " "
277 output boxchange_imageactor Box11.boxChange_ImageActor " "