]> 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/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/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   set Box36.In9 "  "
62
63 new std:ExecSystemCommand Box37
64
65 new wx:LayoutCenter Box18
66
67 new std:MagicBox Box19
68
69
70
71
72 connect Box06.Out Box08.In
73
74 connect Box02.Out Box08.Replace
75
76 connect Box01.Out Box09.In1
77
78 connect Box09.Out Box07.In
79
80
81 connect Box08.Out Box11.In
82
83 connect Box10.Out Box11.Replace
84
85 connect Box11.Out Box09.In3
86
87 connect Box07.Widget Box04.Widget2
88
89 connect Box33.BoxChange Box34.BoxExecute
90
91 connect Box22.BoxChange Box34.In9
92
93 connect Box04.Widget Box35.Widget1
94
95 connect Box01.Out Box36.In2
96
97 connect Box10.Out Box36.In4
98
99 connect Box02.Out Box36.In6
100
101 connect Box36.Out Box37.In
102
103 connect Box37.BoxChange Box34.In1
104
105 connect Box33.Widget Box18.Widget2
106
107 connect Box18.Widget Box04.Widget4
108
109
110 connect Box19.Out Box36.In8
111
112
113
114 # Complex input ports
115 input BaseDir Box01.In1 " "
116 input PatientID Box02.In1 " "
117 input CoreID Box10.In1 " "
118 input creaUser Box19.In " "
119 exec Box05
120 exec Box35