1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00500_Validate.bbs
4 # ----------------------------------
7 # ----------------------
11 include creaMaracasVisu
18 description "Description ??"
21 new creaMaracasVisu:ViewerNV Box02
23 new wx:LayoutSplit Box03
24 set Box03.Orientation "H"
26 new vtk:vtkImageDataPointerRelay Box05
28 new creaVtk:OutputWindow Box08
30 new wx:LayoutLine Box09
31 set Box09.WinTitle "00500_Validate.bbs"
33 new vtk:MarchingCubes Box13
36 new vtk:PolyDataToActor Box14
37 set Box14.Colour "1 1 1"
39 new wx:LayoutLine Box17
44 new std:MultipleInputs Box19
46 new vtk:UpdateRender Box20
47 set Box20.Active "true"
49 new vtk:MetaImageReader Box21
51 new std:ConcatStrings Box34
53 new std:ConcatStrings Box36
55 new std:ConcatStrings Box37
57 new std:ConcatStrings Box38
58 set Box38.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
60 new std:ReplaceCleanString Box39
61 set Box39.Search "<CORE>"
63 new std:ReplaceCleanString Box40
64 set Box40.Search "<PATIENT>"
66 new std:ConcatStrings Box41
67 set Box41.In2 "/results/"
69 new std:ConcatStrings Box42
70 set Box42.In2 "/image.mha"
72 new std:ReplaceCleanString Box44
73 set Box44.Replace "00100_OriginalImages"
74 set Box44.Search "<ALGO>"
76 new std:ConcatStrings Box45
77 set Box45.In2 "/image.mha"
79 new std:ReplaceCleanString Box46
80 set Box46.Replace "00300_Filter"
81 set Box46.Search "<ALGO>"
83 new vtk:vtkImageDataPointerRelay Box47
85 new vtk:MetaImageReader Box48
87 new wx:CommandButton Box58
88 set Box58.Label "Validate & Exit"
90 new std:MultipleInputs Box59
94 new wx:OutputText Box62
95 set Box62.Title "Patient"
97 new std:ConcatStrings Box66
98 set Box66.In2 ".final.mha"
100 new creaMaracasVisu:ColorLayerImageView Box69
101 set Box69.ColorBarPosition "-100 -100"
102 set Box69.TypeControlsInterface "2"
103 set Box69.lstTransparenceBoundaries "0"
106 connect Box02.Widget Box03.Widget2
108 connect Box05.Out Box02.In
110 connect Box03.Widget Box09.Widget1
112 connect Box13.Out Box14.In
114 connect Box17.Widget Box03.Widget1
116 connect Box18.Out Box14.Opacity
118 connect Box19.BoxChange Box14.BoxExecute
120 connect Box14.BoxChange Box20.BoxExecute
122 connect Box02.Renderer1 Box14.Renderer
124 connect Box02.Renderer1 Box20.Renderer
126 connect Box13.BoxChange Box19.In4
128 connect Box02.BoxChange Box13.BoxExecute
133 connect Box38.Out Box39.In
135 connect Box36.Out Box39.Replace
137 connect Box39.Out Box40.In
139 connect Box37.Out Box40.Replace
141 connect Box34.Out Box41.In1
143 connect Box40.Out Box41.In3
145 connect Box42.Out Box21.In
147 connect Box21.Out Box05.In
149 connect Box41.Out Box44.In
151 connect Box44.Out Box42.In1
153 connect Box46.Out Box45.In1
155 connect Box41.Out Box46.In
157 connect Box48.Out Box47.In
159 connect Box47.Out Box13.In
161 connect Box60.BoxChange Box59.In9
163 connect Box58.BoxChange Box59.BoxExecute
165 connect Box42.Out Box62.In
167 connect Box58.Widget Box17.Widget8
169 connect Box62.Widget Box17.Widget1
171 connect Box45.Out Box66.In1
173 connect Box66.Out Box48.In
175 connect Box47.Out Box69.In
177 connect Box02.wxVtkBaseView2 Box69.WxVtkBaseView
179 connect Box02.wxVtkBaseView3 Box69.WxVtkBaseView1
181 connect Box02.wxVtkBaseView4 Box69.WxVtkBaseView2
183 connect Box69.Widget Box17.Widget5
185 connect Box69.OutOpacity Box18.In1
189 # Complex input ports
190 input BaseDir Box34.In1 " "
191 input CoreID Box36.In1 " "
192 input PatientID Box37.In1 " "