]> Creatis software - creaMiniTools.git/blobdiff - appli/template_creaPatientsSystem/scripts/00010_Menu.bbs
#3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00010_Menu.bbs
diff --git a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs
new file mode 100644 (file)
index 0000000..1f81269
--- /dev/null
@@ -0,0 +1,653 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00010_Menu.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include wx
+include std
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new wx:LayoutLine Box00
+  set Box00.WinTitle "B. Segmentation"
+
+new wx:CommandButton Box01
+  set Box01.Label "Step 2.   Initial Parameters"
+
+new wx:ComboBox Box03
+  set Box03.In "void"
+  set Box03.Selection "0"
+  set Box03.Title "Patient"
+
+new std:FilesFromDirectory Box05
+  set Box05.Recursive "false"
+  set Box05.Type "1"
+
+new std:ConcatStrings Box06
+  set Box06.In2 "/results"
+
+new std:ExecSystemCommand Box07
+
+new std:ExecSystemCommand Box09
+
+new std:ConcatStrings Box10
+  set Box10.In2 "results"
+
+new std:ConcatStrings Box11
+
+new std:ConcatStrings Box12
+  set Box12.In1 "mkdir "
+
+new wx:CommandButton Box18
+  set Box18.Label "Step 5. Validation"
+
+new std:ExecSystemCommand Box19
+
+new std:ConcatStrings Box20
+  set Box20.In1 "bbi 00500_Validate.bbs  "
+  set Box20.In6 " &"
+
+new wx:CommandButton Box21
+  set Box21.Label "Step 3.  Filter"
+
+new std:ExecSystemCommand Box22
+
+new wx:CommandButton Box26
+  set Box26.Label "Report"
+
+new std:ExecSystemCommand Box27
+
+new std:ConcatStrings Box28
+  set Box28.In1 "bbi Report.bbs  "
+  set Box28.In2 "BaseDir="
+  set Box28.In4 "  &"
+
+new wx:CommandButton Box29
+  set Box29.Label "Comments"
+
+new std:ExecSystemCommand Box30
+
+new std:ConcatStrings Box31
+  set Box31.In1 "bbi Comments.bbs  "
+  set Box31.In6 " &"
+
+new wx:LayoutLine Box32
+  set Box32.WinTitle "C. Summary"
+
+new wx:LayoutTab Box33
+  set Box33.WinTitle "B. Segmentation"
+
+new wx:OutputText Box35
+
+new wx:CommandButton Box39
+  set Box39.Label "Step 4.   Correction"
+
+new std:ExecSystemCommand Box43
+
+new std:StringSelect Box45
+  set Box45.In1 "hola"
+
+new std:Configuration Box47
+
+new std:StringSelect Box50
+
+new std:ConcatStrings Box51
+  set Box51.In1 "start /b  "
+
+new std:ConcatStrings Box52
+  set Box52.In1 "start /b  "
+
+new std:StringSelect Box53
+
+new std:ConcatStrings Box54
+  set Box54.In1 "start /b  "
+
+new std:StringSelect Box55
+
+new std:ConcatStrings Box56
+  set Box56.In1 "start /b  "
+
+new std:StringSelect Box57
+
+new std:ConcatStrings Box58
+  set Box58.In1 "start /b  "
+
+new std:StringSelect Box61
+
+new std:ConcatStrings Box62
+  set Box62.In1 "start /b  "
+
+new wx:CommandButton Box63
+  set Box63.Label "Reset Patient"
+
+new std:ExecSystemCommand Box64
+
+new std:ConcatStrings Box65
+  set Box65.In1 "bbi ResetPatient.bbs  "
+  set Box65.In6 " &"
+
+new std:StringSelect Box66
+
+new std:ConcatStrings Box67
+  set Box67.In1 "start /b  "
+
+new std:ConcatStrings Box73
+  set Box73.In1 "<VOID>"
+  set Box73.In2 "  "
+
+new wx:CommandButton Box84
+  set Box84.Label "6. Push DB"
+
+new std:ExecSystemCommand Box85
+
+new std:ConcatStrings Box86
+  set Box86.In1 "bbi 00600_PushData.bbs  "
+  set Box86.In4 "  Hospital="
+  set Box86.In6 " &"
+
+new std:StringSelect Box87
+
+new std:ConcatStrings Box88
+  set Box88.In1 "start /b  "
+
+new wx:LayoutLine Box89
+  set Box89.Orientation "H"
+
+new wx:ComboBox Box90
+  set Box90.In "void"
+  set Box90.Selection "0"
+  set Box90.Title "Core"
+
+new wx:CommandButton Box91
+  set Box91.Label "Step 1.  Insert Data"
+
+new std:ExecSystemCommand Box92
+
+new std:ConcatStrings Box93
+  set Box93.In1 "bbi  "
+  set Box93.In2 "00100_InsertDataA.bbs "
+  set Box93.In4 " ProjectDir="
+  set Box93.In9 " & "
+
+new std:StringSelect Box94
+
+new std:ConcatStrings Box95
+  set Box95.In1 "start /b  "
+
+new wx:LayoutTab Box97
+
+new wx:LayoutTab Box98
+
+new wx:LayoutLine Box99
+  set Box99.WinHeight "550"
+  set Box99.WinTitle "A. InputData"
+  set Box99.WinWidth "450"
+
+new wx:CommandButton Box102
+  set Box102.Label "Myriad Girder DB"
+
+new std:ExecSystemCommand Box103
+
+new std:StringSelect Box105
+
+new wx:OutputText Box108
+
+new std:GetVectorStringElement Box112
+
+new std:FilesFromDirectory Box113
+  set Box113.Type "1"
+
+new std:ConcatStrings Box114
+  set Box114.In1 "<VOID>"
+  set Box114.In2 "  "
+
+new wx:CommandButton Box115
+  set Box115.Label "Refresh"
+
+new std:ConcatStrings Box116
+  set Box116.In1 "BaseDir="
+  set Box116.In3 "  "
+
+new std:ConcatStrings Box117
+  set Box117.In1 "PatientID="
+  set Box117.In4 "  "
+
+new std:ConcatStrings Box118
+  set Box118.In2 "   "
+
+new std:ConcatStrings Box119
+  set Box119.In1 "bbi  "
+  set Box119.In2 "00200_InitialParameters.bbs   "
+  set Box119.In9 " & "
+
+new std:MultipleInputs Box120
+
+new std:ConcatStrings Box121
+  set Box121.In1 "bbi  "
+  set Box121.In2 "00300_Filter.bbs    "
+  set Box121.In9 " & "
+
+new std:ConcatStrings Box122
+  set Box122.In1 "bbi  "
+  set Box122.In2 "00400_Correction.bbs  "
+  set Box122.In9 " & "
+
+new wx:CommandButton Box124
+  set Box124.Label "Results Dir"
+
+new std:ExecSystemCommand Box125
+
+new std:StringSelect Box126
+
+new std:ConcatStrings Box127
+  set Box127.In1 "xdg-open  "
+  set Box127.In3 "  &"
+
+new std:ConcatStrings Box128
+  set Box128.In2 "/results/"
+
+new std:ConcatStrings Box129
+  set Box129.In1 "start  /b  "
+
+new std:ReplaceCleanString Box130
+  set Box130.Search "<VOID>"
+
+new std:ReplaceCleanString Box131
+  set Box131.Replace "\"
+  set Box131.Search "/"
+
+new std:Configuration Box133
+
+new std:Configuration Box139
+
+new wx:StaticBox Box135
+
+new wx:StaticBox Box136
+
+new wx:StaticBox Box137
+
+new std:ConcatStrings Box138
+  set Box138.In1 "../"
+
+new std:ConcatStrings Box140
+  set Box140.In1 "/Users/davila/CreatisWork/tmpCharly/"
+
+new std:ConcatStrings Box141
+  set Box141.In1 "VOID"
+  set Box141.In2 "  "
+
+new std:ConcatStrings Box142
+  set Box142.In2 "/davila/00100_OriginalImages/Test_01"
+
+new std:ConcatStrings Box143
+  set Box143.In1 "CoreID="
+  set Box143.In3 "  "
+
+new std:ConcatStrings Box146
+  set Box146.In1 "open  "
+  set Box146.In3 "  &"
+
+new std:ConcatStrings Box145
+  set Box145.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
+
+new std:ReplaceString Box147
+  set Box147.Search "<CORE>"
+
+new std:ReplaceString Box148
+  set Box148.Search "<PATIENT>"
+
+new std:ReplaceString Box149
+  set Box149.Replace "00100_OriginalImages"
+  set Box149.Search "<ALGO>"
+
+new wx:LayoutLine Box150
+  set Box150.Orientation "H"
+  set Box150.WinHeight "600"
+  set Box150.WinWidth "900"
+
+new std:ConcatStrings Box151
+
+new std:ConcatStrings Box152
+  set Box152.In1 "00010_menu.bbg  (v.1)"
+  set Box152.In2 "    User:"
+
+new std:ConcatStrings Box153
+  set Box153.In1 "https://myriad.creatis.insa-lyon.fr/#collection/5accbe71e1820a13d7993c19/folder/6186286034933039d3c8edb8"
+
+new std:ConcatStrings Box154
+  set Box154.In1 "xdg-open"
+  set Box154.In2 "  "
+
+new std:ConcatStrings Box155
+  set Box155.In1 "start"
+  set Box155.In2 "  "
+
+new std:ConcatStrings Box156
+  set Box156.In1 "open"
+  set Box156.In2 "  "
+
+
+connect Box06.Out Box05.In
+
+connect Box11.Out Box06.In1
+
+connect Box11.Out Box10.In1
+
+connect Box10.Out Box12.In2
+
+connect Box12.Out Box09.In
+
+connect Box18.BoxChange Box19.BoxExecute
+
+connect Box21.BoxChange Box22.BoxExecute
+
+connect Box26.BoxChange Box27.BoxExecute
+
+connect Box11.Out Box28.In3
+
+connect Box29.BoxChange Box30.BoxExecute
+
+connect Box00.Widget Box33.Widget1
+
+connect Box26.Widget Box32.Widget3
+
+connect Box35.Widget Box32.Widget1
+
+connect Box39.BoxChange Box43.BoxExecute
+
+connect Box45.Out Box22.In
+
+connect Box47.SystemType Box45.In
+
+connect Box47.SystemType Box50.In
+
+connect Box51.Out Box50.In1
+
+connect Box50.Out Box07.In
+
+connect Box52.Out Box45.In1
+
+connect Box53.Out Box43.In
+
+connect Box54.Out Box53.In1
+
+connect Box56.Out Box55.In1
+
+connect Box20.Out Box55.In0
+
+connect Box55.Out Box19.In
+
+connect Box20.Out Box56.In2
+
+connect Box47.SystemType Box55.In
+
+connect Box47.SystemType Box53.In
+
+connect Box58.Out Box57.In1
+
+connect Box31.Out Box57.In0
+
+connect Box57.Out Box30.In
+
+connect Box31.Out Box58.In2
+
+connect Box47.SystemType Box57.In
+
+connect Box62.Out Box61.In1
+
+connect Box61.Out Box27.In
+
+connect Box28.Out Box62.In2
+
+connect Box28.Out Box61.In0
+
+connect Box47.SystemType Box61.In
+
+connect Box63.BoxChange Box64.BoxExecute
+
+connect Box67.Out Box66.In1
+
+connect Box65.Out Box66.In0
+
+connect Box66.Out Box64.In
+
+connect Box65.Out Box67.In2
+
+connect Box47.SystemType Box66.In
+
+connect Box05.OutSimple Box73.In3
+
+connect Box84.BoxChange Box85.BoxExecute
+
+connect Box88.Out Box87.In1
+
+connect Box86.Out Box87.In0
+
+connect Box87.Out Box85.In
+
+connect Box86.Out Box88.In2
+
+connect Box29.Widget Box89.Widget1
+
+connect Box63.Widget Box89.Widget2
+
+connect Box21.Widget Box00.Widget5
+
+connect Box01.Widget Box00.Widget4
+
+connect Box91.BoxChange Box92.BoxExecute
+
+connect Box93.Out Box94.In0
+
+connect Box93.Out Box95.In2
+
+connect Box95.Out Box94.In1
+
+connect Box99.Widget Box97.Widget1
+
+connect Box32.Widget Box98.Widget1
+
+connect Box102.BoxChange Box103.BoxExecute
+
+connect Box105.Out Box103.In
+
+connect Box03.Widget Box00.Widget3
+
+connect Box90.Widget Box00.Widget2
+
+connect Box91.Widget Box99.Widget3
+
+connect Box108.Widget Box99.Widget1
+
+connect Box11.Out Box93.In5
+
+connect Box73.Out Box90.In
+
+connect Box90.Out Box112.I
+
+connect Box113.OutSimple Box114.In3
+
+connect Box114.Out Box03.In
+
+connect Box115.Widget Box00.Widget1
+
+connect Box115.BoxChange Box05.BoxExecute
+
+connect Box115.BoxChange Box90.BoxExecute
+
+connect Box11.Out Box116.In2
+
+connect Box03.OutString Box117.In3
+
+connect Box117.Out Box118.In3
+
+connect Box118.Out Box119.In3
+
+connect Box119.Out Box50.In0
+
+connect Box119.Out Box51.In2
+
+connect Box01.BoxChange Box07.BoxExecute
+
+connect Box116.Out Box118.In1
+
+connect Box90.BoxChange Box120.BoxExecute
+
+connect Box112.BoxChange Box120.In1
+
+connect Box113.BoxChange Box120.In2
+
+connect Box03.BoxChange Box120.In3
+
+connect Box50.BoxChange Box120.In5
+
+connect Box118.Out Box121.In3
+
+connect Box121.Out Box52.In2
+
+connect Box121.Out Box45.In0
+
+connect Box122.Out Box54.In2
+
+connect Box122.Out Box53.In0
+
+connect Box118.Out Box122.In3
+
+connect Box118.Out Box20.In3
+
+connect Box118.Out Box31.In3
+
+connect Box118.Out Box65.In3
+
+connect Box118.Out Box86.In3
+
+connect Box47.SystemType Box105.In
+
+connect Box90.OutString Box86.In5
+
+connect Box124.BoxChange Box125.BoxExecute
+
+connect Box102.Widget Box32.Widget6
+
+connect Box124.Widget Box32.Widget4
+
+connect Box127.Out Box126.In0
+
+connect Box11.Out Box128.In1
+
+connect Box129.Out Box126.In1
+
+connect Box47.SystemType Box126.In
+
+connect Box130.Out Box131.In
+
+connect Box128.Out Box130.In
+
+connect Box131.Out Box129.In2
+
+connect Box131.Out Box127.In2
+
+connect Box133.FileSeparator Box131.Replace
+
+connect Box126.Out Box125.In
+
+connect Box139.SystemType Box94.In
+
+connect Box94.Out Box92.In
+
+connect Box97.Widget Box135.BoxContent
+
+connect Box33.Widget Box136.BoxContent
+
+connect Box98.Widget Box137.BoxContent
+
+connect Box140.Out Box11.In1
+
+connect Box05.Out Box141.In3
+
+connect Box141.Out Box112.In
+
+connect Box112.Out Box142.In1
+
+connect Box142.Out Box113.In
+
+connect Box143.Out Box118.In2
+
+connect Box90.OutString Box143.In2
+
+connect Box146.Out Box126.In2
+
+connect Box131.Out Box146.In2
+
+connect Box119.Out Box50.In2
+
+connect Box121.Out Box45.In2
+
+connect Box93.Out Box94.In2
+
+connect Box145.Out Box147.In
+
+connect Box90.OutString Box147.Replace
+
+connect Box147.Out Box148.In
+
+connect Box03.OutString Box148.Replace
+
+connect Box148.Out Box149.In
+
+connect Box149.Out Box128.In3
+
+connect Box39.Widget Box00.Widget6
+
+connect Box18.Widget Box00.Widget7
+
+connect Box122.Out Box53.In2
+
+connect Box20.Out Box55.In2
+
+connect Box135.Widget Box150.Widget2
+
+connect Box136.Widget Box150.Widget4
+
+connect Box137.Widget Box150.Widget6
+
+
+connect Box152.Out Box150.WinTitle
+
+connect Box151.Out Box152.In3
+
+connect Box65.Out Box66.In2
+
+connect Box31.Out Box57.In2
+
+connect Box89.Widget Box00.Widget9
+
+connect Box84.Widget Box00.Widget8
+
+connect Box153.Out Box154.In3
+
+connect Box153.Out Box155.In3
+
+connect Box153.Out Box156.In3
+
+connect Box154.Out Box105.In0
+
+connect Box155.Out Box105.In1
+
+connect Box156.Out Box105.In2
+
+connect Box28.Out Box61.In2
+
+
+
+# Complex input ports
+input creaUser Box151.In1 " "
+exec Box09
+exec Box150