1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00500_Validate.bbs
4 # ----------------------------------
7 # ----------------------
11 include creaMaracasVisu
19 description "Description ??"
22 new creaMaracasVisu:ViewerNV Box02
24 new wx:LayoutSplit Box03
25 set Box03.Orientation "H"
27 new vtk:vtkImageDataPointerRelay Box05
29 new creaVtk:OutputWindow Box08
31 new wx:LayoutLine Box09
32 set Box09.WinTitle "00500_Validate.bbs"
34 new vtk:MarchingCubes Box13
37 new vtk:PolyDataToActor Box14
38 set Box14.Colour "1 1 1"
40 new wx:LayoutLine Box17
45 new std:MultipleInputs Box19
47 new vtk:UpdateRender Box20
48 set Box20.Active "true"
50 new vtk:MetaImageReader Box21
52 new std:ConcatStrings Box34
54 new std:ConcatStrings Box36
56 new std:ConcatStrings Box37
58 new std:ConcatStrings Box38
59 set Box38.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
61 new std:ReplaceCleanString Box39
62 set Box39.Search "<CORE>"
64 new std:ReplaceCleanString Box40
65 set Box40.Search "<PATIENT>"
67 new std:ConcatStrings Box41
68 set Box41.In2 "/results/"
70 new std:ConcatStrings Box42
71 set Box42.In2 "/image.mha"
73 new std:ReplaceCleanString Box44
74 set Box44.Replace "00100_OriginalImages"
75 set Box44.Search "<ALGO>"
77 new std:ConcatStrings Box45
78 set Box45.In2 "/image.mha"
80 new std:ReplaceCleanString Box46
81 set Box46.Replace "00300_Filter"
82 set Box46.Search "<ALGO>"
84 new vtk:vtkImageDataPointerRelay Box47
86 new vtk:MetaImageReader Box48
88 new wx:CommandButton Box58
89 set Box58.Label "Validate & Exit"
91 new std:MultipleInputs Box59
95 new wx:OutputText Box62
96 set Box62.Title "Patient"
98 new std:ConcatStrings Box66
99 set Box66.In2 ".final.mha"
101 new creaMaracasVisu:ColorLayerImageView Box69
102 set Box69.ColorBarPosition "-100 -100"
103 set Box69.TypeControlsInterface "2"
104 set Box69.lstTransparenceBoundaries "0"
106 new std:ConcatStrings Box54
108 new creaMiniTools:WriteStatePatientSystem Box55
109 set Box55.State "Finish"
111 new std:ConcatStrings Box56
112 set Box56.In2 "/Step05_Validation.txt"
115 connect Box02.Widget Box03.Widget2
117 connect Box05.Out Box02.In
119 connect Box03.Widget Box09.Widget1
121 connect Box13.Out Box14.In
123 connect Box17.Widget Box03.Widget1
125 connect Box18.Out Box14.Opacity
127 connect Box19.BoxChange Box14.BoxExecute
129 connect Box14.BoxChange Box20.BoxExecute
131 connect Box02.Renderer1 Box14.Renderer
133 connect Box02.Renderer1 Box20.Renderer
135 connect Box13.BoxChange Box19.In4
137 connect Box02.BoxChange Box13.BoxExecute
142 connect Box38.Out Box39.In
144 connect Box36.Out Box39.Replace
146 connect Box39.Out Box40.In
148 connect Box37.Out Box40.Replace
150 connect Box34.Out Box41.In1
152 connect Box40.Out Box41.In3
154 connect Box42.Out Box21.In
156 connect Box21.Out Box05.In
158 connect Box41.Out Box44.In
160 connect Box44.Out Box42.In1
162 connect Box46.Out Box45.In1
164 connect Box41.Out Box46.In
166 connect Box48.Out Box47.In
168 connect Box47.Out Box13.In
170 connect Box60.BoxChange Box59.In9
172 connect Box58.BoxChange Box59.BoxExecute
174 connect Box42.Out Box62.In
176 connect Box58.Widget Box17.Widget8
178 connect Box62.Widget Box17.Widget1
180 connect Box45.Out Box66.In1
182 connect Box66.Out Box48.In
184 connect Box47.Out Box69.In
186 connect Box02.wxVtkBaseView2 Box69.WxVtkBaseView
188 connect Box02.wxVtkBaseView3 Box69.WxVtkBaseView1
190 connect Box02.wxVtkBaseView4 Box69.WxVtkBaseView2
192 connect Box69.Widget Box17.Widget5
194 connect Box69.OutOpacity Box18.In1
197 connect Box54.Out Box55.User
199 connect Box46.Out Box56.In1
201 connect Box56.Out Box55.Filename
203 connect Box55.boxChange Box59.In2
207 # Complex input ports
208 input BaseDir Box34.In1 " "
209 input CoreID Box36.In1 " "
210 input PatientID Box37.In1 " "
211 input creaUser Box54.In1 " "