]> Creatis software - creaMiniTools.git/blob - appli/template_creaPatientsSystem/scripts/00300_Filter.bbs
#3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00300_Filter.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00300_Filter.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include std
12 include wx
13 include creaVtk
14
15 author "Author ??"
16 description "Description ??"
17 category "<VOID>"
18
19 new std:ConcatStrings Box01
20
21 new std:ConcatStrings Box02
22
23 new wx:LayoutLine Box04
24
25 new creaVtk:OutputWindow Box05
26
27 new std:ConcatStrings Box06
28   set Box06.In1 "<CORE>/davila/00100_OriginalImages/Test_01/<PATIENT>/Condition_01"
29
30 new wx:OutputText Box07
31   set Box07.Title "Patient "
32
33 new std:ReplaceCleanString Box08
34   set Box08.Search "<PATIENT>"
35
36 new std:ConcatStrings Box09
37   set Box09.In2 "/results/"
38
39 new std:ConcatStrings Box10
40
41 new std:ReplaceCleanString Box11
42   set Box11.Search "<CORE>"
43
44 new std:Exit Box22
45
46 new wx:CommandButton Box33
47   set Box33.Label "Run Filter"
48
49 new std:MultipleInputs Box34
50
51 new wx:LayoutLine Box35
52   set Box35.WinHeight "300"
53   set Box35.WinTitle "00300_Filter.bbs"
54   set Box35.WinWidth "750"
55
56 new std:ConcatStrings Box36
57   set Box36.In1 "source 00301_Filter.sh  "
58   set Box36.In3 "  "
59   set Box36.In5 "  "
60   set Box36.In7 "  "
61
62 new std:ExecSystemCommand Box37
63
64 new wx:LayoutCenter Box18
65
66
67
68
69 connect Box06.Out Box08.In
70
71 connect Box02.Out Box08.Replace
72
73 connect Box01.Out Box09.In1
74
75 connect Box09.Out Box07.In
76
77
78 connect Box08.Out Box11.In
79
80 connect Box10.Out Box11.Replace
81
82 connect Box11.Out Box09.In3
83
84 connect Box07.Widget Box04.Widget2
85
86 connect Box33.BoxChange Box34.BoxExecute
87
88 connect Box22.BoxChange Box34.In9
89
90 connect Box04.Widget Box35.Widget1
91
92 connect Box01.Out Box36.In2
93
94 connect Box10.Out Box36.In4
95
96 connect Box02.Out Box36.In6
97
98 connect Box36.Out Box37.In
99
100 connect Box37.BoxChange Box34.In1
101
102 connect Box33.Widget Box18.Widget2
103
104 connect Box18.Widget Box04.Widget4
105
106
107
108 # Complex input ports
109 input BaseDir Box01.In1 " "
110 input PatientID Box02.In1 " "
111 input CoreID Box10.In1 " "
112 exec Box05
113 exec Box35