From 380ac24f1bd5ac018b069d25147f2a626739e494 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 15 Nov 2021 09:42:50 +0100 Subject: [PATCH] #3421 template_creaPatientsSystem --- appli/template_creaPatientsSystem/.DS_Store | Bin 0 -> 6148 bytes .../Run-Update-General.bat | 2 + .../Run_Application.bat | 3 + .../Run_Application.sh | 4 + .../UpdateSofware-scripts/.DS_Store | Bin 0 -> 6148 bytes .../AskCloseAllBBTKwindows.bbg | 82 + .../AskCloseAllBBTKwindows.bbs | 52 + .../UpdateSofware-scripts/Run-Update.bat | 5 + .../Tool-Step00-Git-Pull.bat | 5 + .../Tool-Step01-Compile.bat | 23 + .../Tool-Step02-scpToTux.bat | 3 + .../Tool-Step03-Open-CMD.bat | 2 + .../UpdateSofware-scripts/proxy.bat | 1 + .../UpdateSofware-scripts/update.bat | 37 + .../scripts/.DS_Store | Bin 0 -> 6148 bytes .../scripts/00000_User.bbg | 137 ++ .../scripts/00000_User.bbs | 79 + .../scripts/00010_Menu.bbg | 1332 +++++++++++++++++ .../scripts/00010_Menu.bbs | 653 ++++++++ .../scripts/00100_InsertDataA.bbg | 415 +++++ .../scripts/00100_InsertDataA.bbs | 215 +++ .../scripts/00200_InitialParameters.bbg | 392 +++++ .../scripts/00200_InitialParameters.bbs | 201 +++ .../scripts/00300_Filter.bbg | 217 +++ .../scripts/00300_Filter.bbs | 113 ++ .../scripts/00301_Filter.sh | 10 + .../scripts/00302_Filter.bbg | 290 ++++ .../scripts/00302_Filter.bbs | 150 ++ .../scripts/00400_Correction.bbg | 816 ++++++++++ .../scripts/00400_Correction.bbs | 414 +++++ .../scripts/00500_Validate.bbg | 382 +++++ .../scripts/00500_Validate.bbs | 194 +++ .../scripts/00600_PushData.bbg | 703 +++++++++ .../scripts/00600_PushData.bbs | 346 +++++ .../scripts/00610_CreateTMP.sh | 23 + .../scripts/Comments.bbg | 238 +++ .../scripts/Comments.bbs | 121 ++ .../scripts/Report.bbg | 474 ++++++ .../scripts/Report.bbs | 247 +++ .../scripts/ResetPatient.bbg | 360 +++++ .../scripts/ResetPatient.bbs | 181 +++ .../scripts/Run_Application.bat | 1 + .../scripts/Run_Application.sh | 4 + .../src/bbcreaMiniToolsCreateReport01.cxx | 159 ++ .../src/bbcreaMiniToolsCreateReport01.h | 79 + 45 files changed, 9165 insertions(+) create mode 100644 appli/template_creaPatientsSystem/.DS_Store create mode 100644 appli/template_creaPatientsSystem/Run-Update-General.bat create mode 100644 appli/template_creaPatientsSystem/Run_Application.bat create mode 100644 appli/template_creaPatientsSystem/Run_Application.sh create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/.DS_Store create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbg create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbs create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/Run-Update.bat create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step00-Git-Pull.bat create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step01-Compile.bat create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step02-scpToTux.bat create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step03-Open-CMD.bat create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/proxy.bat create mode 100644 appli/template_creaPatientsSystem/UpdateSofware-scripts/update.bat create mode 100644 appli/template_creaPatientsSystem/scripts/.DS_Store create mode 100644 appli/template_creaPatientsSystem/scripts/00000_User.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00000_User.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00010_Menu.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00010_Menu.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00300_Filter.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00300_Filter.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00301_Filter.sh create mode 100644 appli/template_creaPatientsSystem/scripts/00302_Filter.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00302_Filter.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00400_Correction.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00400_Correction.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00500_Validate.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00500_Validate.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00600_PushData.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/00600_PushData.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/00610_CreateTMP.sh create mode 100644 appli/template_creaPatientsSystem/scripts/Comments.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/Comments.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/Report.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/Report.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/ResetPatient.bbg create mode 100644 appli/template_creaPatientsSystem/scripts/ResetPatient.bbs create mode 100644 appli/template_creaPatientsSystem/scripts/Run_Application.bat create mode 100644 appli/template_creaPatientsSystem/scripts/Run_Application.sh create mode 100644 bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.cxx create mode 100644 bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.h diff --git a/appli/template_creaPatientsSystem/.DS_Store b/appli/template_creaPatientsSystem/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..70f4d952bc3b27d467072c251b8166c359b00f9a GIT binary patch literal 6148 zcmeI0&u-H|5XQer1Kk9n=0F7!ms~iJN^yV+4oDEffg8yDIRI+CvD;X3yq4|Mf)K+ z2`!Ng@m4L=-&R)|7UM)JrO&Eb5Dvm(%w6oQ)|DK3{#Z@3CI7V%Q#Be%6G8F$=CiFI zU%o$F^)prBKa9#Ir_FZc=V_wSLvspa8!wO{M1T?zd?*~CLVz3*cK&?R%j=JXpN!Q<2f>s81T>F*nL0q%11#lxma=6jh+Ep4>Vd43Y>7d- zB;j#d4l;6(k)Nb@vc(74naNft#1#$ejU1$BcQ_n%Hq3(#=l{p}YyIzVIR0a(Ir2wC lopjg3xt8k$|M3<$*mtEgYk8{N|v<`~8pV~lAVMtQ@w?J|uqKS1ll9w>TBy@!^igNO(~ps(fC z9Kf(jWtGYbs#P@71JlZk7%Y)Q|7m7vv4dd;bJ1dk59Z9wghC}6`N9r{-5B%2Cf-Nw o{|i3me`Cxa!+t)`Q`v0S(VlzBF15cM0=l>?+|`kM5HO}a9!RSSX#fBK literal 0 HcmV?d00001 diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbg b/appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbg new file mode 100644 index 0000000..8af6100 --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbg @@ -0,0 +1,82 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - C:\Users\davila\Eduardo\CreatisWorks\tmpJCR\creaSDRA\appli\Appli_JCR\UpdateSofware-scripts03\AskCloseAllBBTKwindows.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:7 +BOX +wx:LayoutLine:Box00 +ISEXEC:FALSE +-27.714055:-14.607435:-900.000000 +29.845945:-24.607435:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box02 +ISEXEC:FALSE +-44.848649:54.434620:-900.000000 +-8.073649:44.434620:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box03 +ISEXEC:FALSE +-18.301302:33.981369:-900.000000 +18.473698:23.981369:-900.000000 +PORT +In:"Step 1. Close all bbtk windows before continue." +FIN_BOX +BOX +wx:CommandButton:Box04 +ISEXEC:FALSE +12.860860:18.239038:-900.000000 +55.635860:8.239038:-900.000000 +PORT +Label:"Step 2. Continue.." +FIN_BOX +BOX +wx:LayoutCenter:Box05 +ISEXEC:FALSE +-28.210131:-35.623012:-900.000000 +11.089869:-45.623012:-900.000000 +FIN_BOX +BOX +std:Exit:Box07 +ISEXEC:FALSE +66.318518:-41.891015:-900.000000 +95.893518:-51.891015:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box08 +ISEXEC:TRUE +-28.393934:-55.152142:-900.000000 +29.166066:-65.152142:-900.000000 +PORT +WinDialog:"true" +PORT +WinTitle:"Close All bbtk windows" +FIN_BOX +CONNECTIONS:6 +CONNECTION +Box02:Widget:Box00:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box00:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box00:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box08:Widget1 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbs b/appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbs new file mode 100644 index 0000000..75ac6ff --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/AskCloseAllBBTKwindows.bbs @@ -0,0 +1,52 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - C:\Users\davila\Eduardo\CreatisWorks\tmpJCR\creaSDRA\appli\Appli_JCR\UpdateSofware-scripts03\AskCloseAllBBTKwindows.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wx +include std + +author "Author ??" +description "Description ??" +category "" + +new wx:LayoutLine Box00 + +new wx:OutputText Box02 + +new wx:OutputText Box03 + set Box03.In "Step 1. Close all bbtk windows before continue." + +new wx:CommandButton Box04 + set Box04.Label "Step 2. Continue.." + +new wx:LayoutCenter Box05 + +new std:Exit Box07 + +new wx:LayoutLine Box08 + set Box08.WinDialog "true" + set Box08.WinTitle "Close All bbtk windows" + + +connect Box02.Widget Box00.Widget1 + +connect Box03.Widget Box00.Widget2 + +connect Box04.Widget Box00.Widget3 + +connect Box00.Widget Box05.Widget2 + +connect Box04.BoxChange Box07.BoxExecute + +connect Box05.Widget Box08.Widget1 + + + +# Complex input ports +exec Box08 diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/Run-Update.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Run-Update.bat new file mode 100644 index 0000000..e64fa0b --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Run-Update.bat @@ -0,0 +1,5 @@ +set DIRNAME=UpdateSofware-script13 +xcopy /Y /S /Q Apply_Wall_CPR\%DIRNAME% ..\tmp\ +cd ..\tmp +update.bat +pause diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step00-Git-Pull.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step00-Git-Pull.bat new file mode 100644 index 0000000..b8d9555 --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step00-Git-Pull.bat @@ -0,0 +1,5 @@ + +cd C:\Users\davila\Eduardo\CreatisWorks\tmpMonica\AortaWall\creaAorta +git pull + +pause \ No newline at end of file diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step01-Compile.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step01-Compile.bat new file mode 100644 index 0000000..a0bff1b --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step01-Compile.bat @@ -0,0 +1,23 @@ +set BASEDIR=C:\Users\davila\Eduardo\CreatisWorks\tmpMonica\AortaWall +rmdir /S /Q %BASEDIR%\creaCoro-Install +rmdir /S /Q %BASEDIR%\creaVascularTree-Install +rmdir /S /Q %BASEDIR%\creaAortaWall-Install +cd %BASEDIR%\creaVascularTreeBin +mingw32-make -j5 install +pause +cd %BASEDIR%\creaCoroBin +mingw32-make -j5 install +pause +cd %BASEDIR%\creaAortaWallBin +mingw32-make -j5 install +pause + +cd %BASEDIR% +set AORTAWALLINSTALL=AortaWall-Install +del %AORTAWALLINSTALL%.zip +rmdir /S /Q %AORTAWALLINSTALL% +xcopy /Y /S /Q creaCoro-Install %AORTAWALLINSTALL%\creaCoro-Install\ +xcopy /Y /S /Q creaVascularTree-Install %AORTAWALLINSTALL%\creaVascularTree-Install\ +xcopy /Y /S /Q creaAortaWall-Install %AORTAWALLINSTALL%\creaAortaWall-Install\ +"C:\Program Files\PeaZip\PeaZip.exe" -add2zip %BASEDIR%\%AORTAWALLINSTALL% +pause diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step02-scpToTux.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step02-scpToTux.bat new file mode 100644 index 0000000..38e9707 --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step02-scpToTux.bat @@ -0,0 +1,3 @@ +scp AortaWall-Install.zip davila@tux.creatis.insa-lyon.fr:/home/davila/public_html/pdl/2015-2_AortaWall/Software + +pause \ No newline at end of file diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step03-Open-CMD.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step03-Open-CMD.bat new file mode 100644 index 0000000..8a37ec2 --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/Tool-Step03-Open-CMD.bat @@ -0,0 +1,2 @@ +cd creaAorta +cmd \ No newline at end of file diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/proxy.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/proxy.bat new file mode 100644 index 0000000..a5b2e3f --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/proxy.bat @@ -0,0 +1 @@ +rem set PROXY=--proxy-user JCR??? -x http://proxy.example.com:80 \ No newline at end of file diff --git a/appli/template_creaPatientsSystem/UpdateSofware-scripts/update.bat b/appli/template_creaPatientsSystem/UpdateSofware-scripts/update.bat new file mode 100644 index 0000000..ab34d40 --- /dev/null +++ b/appli/template_creaPatientsSystem/UpdateSofware-scripts/update.bat @@ -0,0 +1,37 @@ +bbi AskCloseAllBBTKwindows.bbs + +mkdir ..\old +set CREATOOLSFILENAME=CreaTools-Release-3.0.0-win64.exe +rem move /Y %CREATOOLSFILENAME% ..\old +"%CREATOOLS_DIRS%\..\Uninstall.exe" /S +curl %PROXY% https://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v3.0.x/%CREATOOLSFILENAME% -o %CREATOOLSFILENAME% +%CREATOOLSFILENAME% /S + +call ..\proxy.bat + +set AORTAWALLINSTALL=AortaWall-Install +xcopy /Y /S /Q ..\creaAortaWall-Install ..\old\ +xcopy /Y /S /Q ..\creaCoro-Install ..\old\ +xcopy /Y /S /Q ..\creaVascularTree-Install ..\old\ +rmdir /S /Q ..\creaAortaWall-Install +rmdir /S /Q ..\creaCoro-Install +rmdir /S /Q ..\creaVascularTree-Install + +curl %PROXY% -u ards:ards https://www.creatis.insa-lyon.fr/~davila/tmp/2015-2_AortaWall/AORTAWALL/Software/%AORTAWALLINSTALL%.zip -o %AORTAWALLINSTALL%.zip +curl http://stahlworks.com/dev/unzip.exe -o unzip.exe + +rmdir /S /Q %AORTAWALLINSTALL% +unzip %AORTAWALLINSTALL%.zip +move %AORTAWALLINSTALL%\creaAortaWall-Install ..\creaAortaWall-Install +move %AORTAWALLINSTALL%\creaCoro-Install ..\creaCoro-Install +move %AORTAWALLINSTALL%\creaVascularTree-Install ..\creaVascularTree-Install + +copy /Y ..\creaAortaWall-Install\Apply_Wall_CPR\UpdateSofware-script13\Run_Application.bat ..\. +copy /Y ..\creaAortaWall-Install\Apply_Wall_CPR\UpdateSofware-script13\Run-Update-General.bat ..\. + +set SCRIPTDIR=script13 +xcopy /Y /S /Q ..\%SCRIPTDIR% ..\old\%SCRIPTDIR%\ +rmdir /S /Q ..\%SCRIPTDIR% +xcopy /Y /S /Q ..\creaAortaWall-Install\Apply_Wall_CPR\%SCRIPTDIR% ..\%SCRIPTDIR%\ + + pause diff --git a/appli/template_creaPatientsSystem/scripts/.DS_Store b/appli/template_creaPatientsSystem/scripts/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeI0F%H5o6hrOOp%P0+Mivgh4N%pdfD15i1$K^(oc|*sD6B-tPpX_Yb@Hbq4ggNK z>k$|M3<$*mtEgYk8{N|v<`~8pV~lAVMtQ@w?J|uqKS1ll9w>TBy@!^igNO(~ps(fC z9Kf(jWtGYbs#P@71JlZk7%Y)Q|7m7vv4dd;bJ1dk59Z9wghC}6`N9r{-5B%2Cf-Nw o{|i3me`Cxa!+t)`Q`v0S(VlzBF15cM0=l>?+|`kM5HO}a9!RSSX#fBK literal 0 HcmV?d00001 diff --git a/appli/template_creaPatientsSystem/scripts/00000_User.bbg b/appli/template_creaPatientsSystem/scripts/00000_User.bbg new file mode 100644 index 0000000..016217f --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00000_User.bbg @@ -0,0 +1,137 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00000_User.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:12 +BOX +wx:LayoutCenter:Box02 +ISEXEC:FALSE +-0.039637:-64.177241:-900.000000 +39.260363:-74.177241:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box03 +ISEXEC:FALSE +-19.114938:-36.307483:-900.000000 +57.560000:-46.307483:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box04 +ISEXEC:FALSE +-68.393626:32.968066:-900.000000 +32.920000:22.968066:-900.000000 +FIN_BOX +BOX +wx:ComboBox:Box05 +ISEXEC:FALSE +-21.508021:83.752959:-900.000000 +45.240000:73.752959:-900.000000 +PORT +In:"VOID Eduardo_Davila User01 User02 User03" +PORT +Title:"User" +FIN_BOX +BOX +creaVtk:OutputWindow:Box06 +ISEXEC:TRUE +-71.668631:-88.633263:-900.000000 +-31.068631:-98.633263:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:TRUE +2.398699:-89.100813:-900.000000 +59.958699:-99.100813:-900.000000 +PORT +WinHeight:"400" +PORT +WinTitle:"User" +PORT +WinWidth:"400" +FIN_BOX +BOX +wx:CommandButton:Box08 +ISEXEC:FALSE +20.056317:9.547560:-900.000000 +62.831317:-0.452440:-900.000000 +PORT +Label:"Next" +FIN_BOX +BOX +std:ExecSystemCommand:Box09 +ISEXEC:FALSE +77.054308:6.777926:-900.000000 +125.354308:-3.222074:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box10 +ISEXEC:FALSE +79.496937:44.769980:-900.000000 +119.221937:34.769980:-900.000000 +PORT +In1:"creaUser=" +FIN_BOX +BOX +std:ConcatStrings:Box11 +ISEXEC:FALSE +75.463873:23.697965:-900.000000 +115.188873:13.697965:-900.000000 +PORT +In1:"bbi 00010_Menu.bbs " +PORT +In9:" &" +FIN_BOX +BOX +std:MultipleInputs:Box12 +ISEXEC:FALSE +68.145894:-12.109100:-900.000000 +107.845894:-22.109100:-900.000000 +FIN_BOX +BOX +std:Exit:Box13 +ISEXEC:FALSE +151.363754:7.986853:-900.000000 +180.938754:-2.013147:-900.000000 +FIN_BOX +CONNECTIONS:11 +CONNECTION +Box04:Widget:Box03:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box03:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box07:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box02:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box03:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box05:OutString:Box10:In2 +NumberOfControlPoints:0 +CONNECTION +Box08:BoxChange:Box12:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box09:BoxChange:Box12:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:BoxChange:Box12:In9 +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box11:In2 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box09:In +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00000_User.bbs b/appli/template_creaPatientsSystem/scripts/00000_User.bbs new file mode 100644 index 0000000..142be0b --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00000_User.bbs @@ -0,0 +1,79 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00000_User.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wx +include creaVtk +include std + +author "Author ??" +description "Description ??" +category "" + +new wx:LayoutCenter Box02 + +new wx:LayoutLine Box03 + +new wx:OutputText Box04 + +new wx:ComboBox Box05 + set Box05.In "VOID Eduardo_Davila User01 User02 User03" + set Box05.Title "User" + +new creaVtk:OutputWindow Box06 + +new wx:LayoutLine Box07 + set Box07.WinHeight "400" + set Box07.WinTitle "User" + set Box07.WinWidth "400" + +new wx:CommandButton Box08 + set Box08.Label "Next" + +new std:ExecSystemCommand Box09 + +new std:ConcatStrings Box10 + set Box10.In1 "creaUser=" + +new std:ConcatStrings Box11 + set Box11.In1 "bbi 00010_Menu.bbs " + set Box11.In9 " &" + +new std:MultipleInputs Box12 + +new std:Exit Box13 + + +connect Box04.Widget Box03.Widget2 + +connect Box05.Widget Box03.Widget4 + +connect Box02.Widget Box07.Widget3 + +connect Box03.Widget Box02.Widget2 + +connect Box08.Widget Box03.Widget6 + +connect Box05.OutString Box10.In2 + +connect Box08.BoxChange Box12.BoxExecute + +connect Box09.BoxChange Box12.In2 + +connect Box13.BoxChange Box12.In9 + +connect Box10.Out Box11.In2 + +connect Box11.Out Box09.In + + + +# Complex input ports +exec Box06 +exec Box07 diff --git a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg new file mode 100644 index 0000000..b612fab --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg @@ -0,0 +1,1332 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00010_Menu.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:1 +COMPLEX_PORT +creaUser +410.678849:500.853000:-900.000000 +FIN_COMPLEX_PORT +BOXES:105 +BOX +wx:LayoutLine:Box00 +ISEXEC:FALSE +470.203046:-48.791503:-900.000000 +506.778046:-58.791503:-900.000000 +PORT +WinTitle:"B. Segmentation" +FIN_BOX +BOX +wx:CommandButton:Box01 +ISEXEC:FALSE +23.770748:153.649852:-900.000000 +66.545748:143.649852:-900.000000 +PORT +Label:"Step 2. Initial Parameters" +FIN_BOX +BOX +wx:ComboBox:Box03 +ISEXEC:FALSE +237.986973:206.830738:-900.000000 +275.161973:196.830738:-900.000000 +PORT +In:"void" +PORT +Selection:"0" +PORT +Title:"Patient" +FIN_BOX +BOX +std:FilesFromDirectory:Box05 +ISEXEC:FALSE +214.509859:341.095066:-900.000000 +258.384859:331.095066:-900.000000 +PORT +Recursive:"false" +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +242.575172:363.993218:-900.000000 +282.300172:353.993218:-900.000000 +PORT +In2:"/results" +FIN_BOX +BOX +std:ExecSystemCommand:Box07 +ISEXEC:FALSE +40.529863:47.999390:-900.000000 +88.829863:37.999390:-900.000000 +FIN_BOX +BOX +std:ExecSystemCommand:Box09 +ISEXEC:TRUE +265.388095:-412.539335:-900.000000 +313.688095:-422.539335:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box10 +ISEXEC:FALSE +-72.720504:147.370136:-900.000000 +39.080000:137.370136:-900.000000 +PORT +In2:"results" +FIN_BOX +BOX +std:ConcatStrings:Box11 +ISEXEC:FALSE +320.399627:466.827531:-900.000000 +360.124627:456.827531:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box12 +ISEXEC:FALSE +-74.811295:106.279364:-900.000000 +39.080000:96.279364:-900.000000 +PORT +In1:"mkdir " +FIN_BOX +BOX +wx:CommandButton:Box18 +ISEXEC:FALSE +449.512943:168.062173:-900.000000 +492.287943:158.062173:-900.000000 +PORT +Label:"Step 5. Validation" +FIN_BOX +BOX +std:ExecSystemCommand:Box19 +ISEXEC:FALSE +479.144577:94.605999:-900.000000 +527.444577:84.605999:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box20 +ISEXEC:FALSE +496.343456:148.610468:-900.000000 +536.068456:138.610468:-900.000000 +PORT +In1:"bbi 00500_Validate.bbs " +PORT +In6:" &" +FIN_BOX +BOX +wx:CommandButton:Box21 +ISEXEC:FALSE +102.843378:171.700660:-900.000000 +145.618378:161.700660:-900.000000 +PORT +Label:"Step 3. Filter" +FIN_BOX +BOX +std:ExecSystemCommand:Box22 +ISEXEC:FALSE +134.283129:103.698624:-900.000000 +182.583129:93.698624:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box26 +ISEXEC:FALSE +1122.422797:172.605688:-900.000000 +1165.197797:162.605688:-900.000000 +PORT +Label:"Report" +FIN_BOX +BOX +std:ExecSystemCommand:Box27 +ISEXEC:FALSE +1144.981058:104.007608:-900.000000 +1193.281058:94.007608:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +1140.023755:152.393138:-900.000000 +1179.748755:142.393138:-900.000000 +PORT +In1:"bbi Report.bbs " +PORT +In2:"BaseDir=" +PORT +In4:" &" +FIN_BOX +BOX +wx:CommandButton:Box29 +ISEXEC:FALSE +650.812314:166.184828:-900.000000 +693.587314:156.184828:-900.000000 +PORT +Label:"Comments" +FIN_BOX +BOX +std:ExecSystemCommand:Box30 +ISEXEC:FALSE +660.546798:81.487252:-900.000000 +708.846798:71.487252:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box31 +ISEXEC:FALSE +690.321298:144.906265:-900.000000 +730.046298:134.906265:-900.000000 +PORT +In1:"bbi Comments.bbs " +PORT +In6:" &" +FIN_BOX +BOX +wx:LayoutLine:Box32 +ISEXEC:FALSE +985.258127:-34.873948:-900.000000 +1021.833127:-44.873948:-900.000000 +PORT +WinTitle:"C. Summary" +FIN_BOX +BOX +wx:LayoutTab:Box33 +ISEXEC:FALSE +461.240167:-84.722719:-900.000000 +497.490167:-94.722719:-900.000000 +PORT +WinTitle:"B. Segmentation" +FIN_BOX +BOX +wx:OutputText:Box35 +ISEXEC:FALSE +954.297881:0.199778:-900.000000 +991.072881:-9.800222:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box39 +ISEXEC:FALSE +313.052980:155.313680:-900.000000 +355.827980:145.313680:-900.000000 +PORT +Label:"Step 4. Correction" +FIN_BOX +BOX +std:ExecSystemCommand:Box43 +ISEXEC:FALSE +323.906068:71.967924:-900.000000 +372.206068:61.967924:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box45 +ISEXEC:FALSE +144.351485:122.963052:-900.000000 +181.926485:112.963052:-900.000000 +PORT +In1:"hola" +FIN_BOX +BOX +std:Configuration:Box47 +ISEXEC:FALSE +602.652806:289.966307:-900.000000 +642.077806:279.966307:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box50 +ISEXEC:FALSE +58.241540:83.549321:-900.000000 +95.816540:73.549321:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box51 +ISEXEC:FALSE +70.988715:107.018458:-900.000000 +110.713715:97.018458:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:ConcatStrings:Box52 +ISEXEC:FALSE +157.081928:142.114566:-900.000000 +196.806928:132.114566:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:StringSelect:Box53 +ISEXEC:FALSE +341.730832:91.216556:-900.000000 +379.305832:81.216556:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box54 +ISEXEC:FALSE +368.229062:114.599927:-900.000000 +407.954062:104.599927:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:StringSelect:Box55 +ISEXEC:FALSE +491.836018:115.669142:-900.000000 +529.411018:105.669142:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box56 +ISEXEC:FALSE +506.286597:132.779394:-900.000000 +546.011597:122.779394:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:StringSelect:Box57 +ISEXEC:FALSE +692.517428:101.262035:-900.000000 +730.092428:91.262035:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box58 +ISEXEC:FALSE +711.513167:122.715638:-900.000000 +751.238167:112.715638:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:StringSelect:Box61 +ISEXEC:FALSE +1147.302904:121.587982:-900.000000 +1184.877904:111.587982:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box62 +ISEXEC:FALSE +1177.344365:138.828909:-900.000000 +1217.069365:128.828909:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +wx:CommandButton:Box63 +ISEXEC:FALSE +753.662288:160.289092:-900.000000 +796.437288:150.289092:-900.000000 +PORT +Label:"Reset Patient" +FIN_BOX +BOX +std:ExecSystemCommand:Box64 +ISEXEC:FALSE +764.344893:80.329505:-900.000000 +812.644893:70.329505:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box65 +ISEXEC:FALSE +783.670447:137.984965:-900.000000 +823.395447:127.984965:-900.000000 +PORT +In1:"bbi ResetPatient.bbs " +PORT +In6:" &" +FIN_BOX +BOX +std:StringSelect:Box66 +ISEXEC:FALSE +790.488105:98.733131:-900.000000 +828.063105:88.733131:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box67 +ISEXEC:FALSE +810.169422:117.101630:-900.000000 +849.894422:107.101630:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:ConcatStrings:Box73 +ISEXEC:FALSE +194.184462:319.487138:-900.000000 +233.909462:309.487138:-900.000000 +PORT +In1:"" +PORT +In2:" " +FIN_BOX +BOX +wx:CommandButton:Box84 +ISEXEC:FALSE +860.579448:181.054278:-900.000000 +903.354448:171.054278:-900.000000 +PORT +Label:"6. Push DB" +FIN_BOX +BOX +std:ExecSystemCommand:Box85 +ISEXEC:FALSE +859.917625:99.826953:-900.000000 +908.217625:89.826953:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box86 +ISEXEC:FALSE +877.857496:148.145761:-900.000000 +917.582496:138.145761:-900.000000 +PORT +In1:"bbi 00600_PushData.bbs " +PORT +In4:" Hospital=" +PORT +In6:" &" +FIN_BOX +BOX +std:StringSelect:Box87 +ISEXEC:FALSE +888.803151:114.117107:-900.000000 +926.378151:104.117107:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box88 +ISEXEC:FALSE +906.218038:130.372373:-900.000000 +945.943038:120.372373:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +wx:LayoutLine:Box89 +ISEXEC:FALSE +671.823777:33.202592:-900.000000 +708.398777:23.202592:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:ComboBox:Box90 +ISEXEC:FALSE +150.828604:303.269420:-900.000000 +188.003604:293.269420:-900.000000 +PORT +In:"void" +PORT +Selection:"0" +PORT +Title:"Core" +FIN_BOX +BOX +wx:CommandButton:Box91 +ISEXEC:FALSE +198.779015:-52.844876:-900.000000 +241.554015:-62.844876:-900.000000 +PORT +Label:"Step 1. Insert Data" +FIN_BOX +BOX +std:ExecSystemCommand:Box92 +ISEXEC:FALSE +185.681789:-139.768525:-900.000000 +233.981789:-149.768525:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box93 +ISEXEC:FALSE +236.855358:-68.690011:-900.000000 +276.580358:-78.690011:-900.000000 +PORT +In1:"bbi " +PORT +In2:"00100_InsertDataA.bbs " +PORT +In4:" ProjectDir=" +PORT +In9:" & " +FIN_BOX +BOX +std:StringSelect:Box94 +ISEXEC:FALSE +252.154279:-111.574004:-900.000000 +289.729279:-121.574004:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box95 +ISEXEC:FALSE +285.372221:-88.722976:-900.000000 +325.097221:-98.722976:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +wx:LayoutTab:Box97 +ISEXEC:FALSE +295.333635:-223.882204:-900.000000 +331.583635:-233.882204:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box98 +ISEXEC:FALSE +501.327016:-220.034202:-900.000000 +537.577016:-230.034202:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box99 +ISEXEC:FALSE +260.072014:-189.067887:-900.000000 +296.647014:-199.067887:-900.000000 +PORT +WinHeight:"550" +PORT +WinTitle:"A. InputData" +PORT +WinWidth:"450" +FIN_BOX +BOX +wx:CommandButton:Box102 +ISEXEC:FALSE +1246.060840:189.752239:-900.000000 +1289.960840:179.752239:-900.000000 +PORT +Label:"Myriad Girder DB" +FIN_BOX +BOX +std:ExecSystemCommand:Box103 +ISEXEC:FALSE +1299.713636:109.462614:-900.000000 +1349.138636:99.462614:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box105 +ISEXEC:FALSE +1324.261379:133.716661:-900.000000 +1362.961379:123.716661:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box108 +ISEXEC:FALSE +220.446001:-163.888696:-900.000000 +258.346001:-173.888696:-900.000000 +FIN_BOX +BOX +std:GetVectorStringElement:Box112 +ISEXEC:FALSE +190.554081:271.453013:-900.000000 +241.079081:261.453013:-900.000000 +FIN_BOX +BOX +std:FilesFromDirectory:Box113 +ISEXEC:FALSE +198.593586:239.092899:-900.000000 +243.593586:229.092899:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings:Box114 +ISEXEC:FALSE +226.949676:222.923816:-900.000000 +267.799676:212.923816:-900.000000 +PORT +In1:"" +PORT +In2:" " +FIN_BOX +BOX +wx:CommandButton:Box115 +ISEXEC:FALSE +164.092776:363.086151:-900.000000 +207.992776:353.086151:-900.000000 +PORT +Label:"Refresh" +FIN_BOX +BOX +std:ConcatStrings:Box116 +ISEXEC:FALSE +446.117227:298.516523:-900.000000 +486.967227:288.516523:-900.000000 +PORT +In1:"BaseDir=" +PORT +In3:" " +FIN_BOX +BOX +std:ConcatStrings:Box117 +ISEXEC:FALSE +510.436588:299.485825:-900.000000 +551.286588:289.485825:-900.000000 +PORT +In1:"PatientID=" +PORT +In4:" " +FIN_BOX +BOX +std:ConcatStrings:Box118 +ISEXEC:FALSE +487.344896:264.619384:-900.000000 +528.194896:254.619384:-900.000000 +PORT +In2:" " +FIN_BOX +BOX +std:ConcatStrings:Box119 +ISEXEC:FALSE +58.443163:136.187709:-900.000000 +99.293163:126.187709:-900.000000 +PORT +In1:"bbi " +PORT +In2:"00200_InitialParameters.bbs " +PORT +In9:" & " +FIN_BOX +BOX +std:MultipleInputs:Box120 +ISEXEC:FALSE +148.591074:37.385363:-900.000000 +189.416074:27.385363:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box121 +ISEXEC:FALSE +150.391040:159.702449:-900.000000 +191.241040:149.702449:-900.000000 +PORT +In1:"bbi " +PORT +In2:"00300_Filter.bbs " +PORT +In9:" & " +FIN_BOX +BOX +std:ConcatStrings:Box122 +ISEXEC:FALSE +356.500411:133.838598:-900.000000 +397.350411:123.838598:-900.000000 +PORT +In1:"bbi " +PORT +In2:"00400_Correction.bbs " +PORT +In9:" & " +FIN_BOX +BOX +wx:CommandButton:Box124 +ISEXEC:FALSE +1239.948999:91.117313:-900.000000 +1283.848999:81.117313:-900.000000 +PORT +Label:"Results Dir" +FIN_BOX +BOX +std:ExecSystemCommand:Box125 +ISEXEC:FALSE +1235.892640:-55.283361:-900.000000 +1285.317640:-65.283361:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box126 +ISEXEC:FALSE +1272.265992:-32.085498:-900.000000 +1310.965992:-42.085498:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box127 +ISEXEC:FALSE +1258.189666:21.225511:-900.000000 +1299.039666:11.225511:-900.000000 +PORT +In1:"xdg-open " +PORT +In3:" &" +FIN_BOX +BOX +std:ConcatStrings:Box128 +ISEXEC:FALSE +363.392187:269.743338:-900.000000 +404.242187:259.743338:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box129 +ISEXEC:FALSE +1311.465426:19.685225:-900.000000 +1352.315426:9.685225:-900.000000 +PORT +In1:"start /b " +FIN_BOX +BOX +std:ReplaceCleanString:Box130 +ISEXEC:FALSE +1286.040144:60.871184:-900.000000 +1332.715144:50.871184:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceCleanString:Box131 +ISEXEC:FALSE +1285.812665:41.817533:-900.000000 +1332.487665:31.817533:-900.000000 +PORT +Replace:"\" +PORT +Search:"/" +FIN_BOX +BOX +std:Configuration:Box133 +ISEXEC:FALSE +1364.564525:63.662721:-900.000000 +1405.114525:53.662721:-900.000000 +FIN_BOX +BOX +std:Configuration:Box139 +ISEXEC:FALSE +313.454303:-43.799092:-900.000000 +354.004303:-53.799092:-900.000000 +FIN_BOX +BOX +wx:StaticBox:Box135 +ISEXEC:FALSE +302.034289:-254.976795:-900.000000 +338.359289:-264.976795:-900.000000 +FIN_BOX +BOX +wx:StaticBox:Box136 +ISEXEC:FALSE +400.260274:-259.987114:-900.000000 +436.585274:-269.987114:-900.000000 +FIN_BOX +BOX +wx:StaticBox:Box137 +ISEXEC:FALSE +497.352420:-254.189222:-900.000000 +533.677420:-264.189222:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box138 +ISEXEC:FALSE +281.901301:493.701377:-900.000000 +322.751301:483.701377:-900.000000 +PORT +In1:"../" +FIN_BOX +BOX +std:ConcatStrings:Box140 +ISEXEC:FALSE +332.521354:492.942027:-900.000000 +373.371354:482.942027:-900.000000 +PORT +In1:"/Users/davila/CreatisWork/tmpCharly/" +FIN_BOX +BOX +std:ConcatStrings:Box141 +ISEXEC:FALSE +234.272291:305.487936:-900.000000 +275.122291:295.487936:-900.000000 +PORT +In1:"VOID" +PORT +In2:" " +FIN_BOX +BOX +std:ConcatStrings:Box142 +ISEXEC:FALSE +200.776916:256.688484:-900.000000 +241.626916:246.688484:-900.000000 +PORT +In2:"/davila/00100_OriginalImages/Test_01" +FIN_BOX +BOX +std:ConcatStrings:Box143 +ISEXEC:FALSE +490.574327:320.408642:-900.000000 +531.424327:310.408642:-900.000000 +PORT +In1:"CoreID=" +PORT +In3:" " +FIN_BOX +BOX +std:ConcatStrings:Box146 +ISEXEC:FALSE +1319.071799:-0.704881:-900.000000 +1359.921799:-10.704881:-900.000000 +PORT +In1:"open " +PORT +In3:" &" +FIN_BOX +BOX +std:ConcatStrings:Box145 +ISEXEC:FALSE +368.660153:351.870688:-900.000000 +409.510153:341.870688:-900.000000 +PORT +In1:"//davila//Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceString:Box147 +ISEXEC:FALSE +373.287371:334.718713:-900.000000 +414.137371:324.718713:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box148 +ISEXEC:FALSE +377.778330:304.697613:-900.000000 +418.628330:294.697613:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box149 +ISEXEC:FALSE +374.540531:286.563790:-900.000000 +415.390531:276.563790:-900.000000 +PORT +Replace:"00100_OriginalImages" +PORT +Search:"" +FIN_BOX +BOX +wx:LayoutLine:Box150 +ISEXEC:TRUE +376.264702:-404.588291:-900.000000 +413.964702:-414.588291:-900.000000 +PORT +Orientation:"H" +PORT +WinHeight:"600" +PORT +WinWidth:"900" +FIN_BOX +BOX +std:ConcatStrings:Box151 +ISEXEC:FALSE +396.307601:467.762139:-900.000000 +437.157601:457.762139:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box152 +ISEXEC:FALSE +439.247794:-377.419823:-900.000000 +480.097794:-387.419823:-900.000000 +PORT +In1:"00010_menu.bbg (v.1)" +PORT +In2:" User&&2P&&" +FIN_BOX +BOX +std:ConcatStrings:Box153 +ISEXEC:FALSE +1342.786395:184.328403:-900.000000 +1383.636395:174.328403:-900.000000 +PORT +In1:"https&&2P&&//myriad.creatis.insa-lyon.fr/#collection/5accbe71e1820a13d7993c19/folder/6186286034933039d3c8edb8" +FIN_BOX +BOX +std:ConcatStrings:Box154 +ISEXEC:FALSE +1306.219222:160.199044:-900.000000 +1347.069222:150.199044:-900.000000 +PORT +In1:"xdg-open" +PORT +In2:" " +FIN_BOX +BOX +std:ConcatStrings:Box155 +ISEXEC:FALSE +1356.567489:161.293567:-900.000000 +1397.417489:151.293567:-900.000000 +PORT +In1:"start" +PORT +In2:" " +FIN_BOX +BOX +std:ConcatStrings:Box156 +ISEXEC:FALSE +1404.925704:162.636846:-900.000000 +1445.775704:152.636846:-900.000000 +PORT +In1:"open" +PORT +In2:" " +FIN_BOX +CONNECTIONS:156 +CONNECTION +Box06:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box06:In1 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box10:In1 +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box12:In2 +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box09:In +NumberOfControlPoints:0 +CONNECTION +Box18:BoxChange:Box19:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box21:BoxChange:Box22:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box26:BoxChange:Box27:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box28:In3 +NumberOfControlPoints:0 +CONNECTION +Box29:BoxChange:Box30:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box33:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box32:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box32:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box39:BoxChange:Box43:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box45:In +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box50:In +NumberOfControlPoints:0 +CONNECTION +Box51:Out:Box50:In1 +NumberOfControlPoints:0 +CONNECTION +Box50:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box52:Out:Box45:In1 +NumberOfControlPoints:0 +CONNECTION +Box53:Out:Box43:In +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box53:In1 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box55:In1 +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box55:In0 +NumberOfControlPoints:0 +CONNECTION +Box55:Out:Box19:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box56:In2 +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box55:In +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box53:In +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box57:In1 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box57:In0 +NumberOfControlPoints:0 +CONNECTION +Box57:Out:Box30:In +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box58:In2 +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box57:In +NumberOfControlPoints:0 +CONNECTION +Box62:Out:Box61:In1 +NumberOfControlPoints:0 +CONNECTION +Box61:Out:Box27:In +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box62:In2 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box61:In0 +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box61:In +NumberOfControlPoints:0 +CONNECTION +Box63:BoxChange:Box64:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box66:In1 +NumberOfControlPoints:0 +CONNECTION +Box65:Out:Box66:In0 +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box64:In +NumberOfControlPoints:0 +CONNECTION +Box65:Out:Box67:In2 +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box66:In +NumberOfControlPoints:0 +CONNECTION +Box05:OutSimple:Box73:In3 +NumberOfControlPoints:0 +CONNECTION +Box84:BoxChange:Box85:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box88:Out:Box87:In1 +NumberOfControlPoints:0 +CONNECTION +Box86:Out:Box87:In0 +NumberOfControlPoints:0 +CONNECTION +Box87:Out:Box85:In +NumberOfControlPoints:0 +CONNECTION +Box86:Out:Box88:In2 +NumberOfControlPoints:0 +CONNECTION +Box29:Widget:Box89:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box63:Widget:Box89:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box00:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box00:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box91:BoxChange:Box92:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box93:Out:Box94:In0 +NumberOfControlPoints:0 +CONNECTION +Box93:Out:Box95:In2 +NumberOfControlPoints:0 +CONNECTION +Box95:Out:Box94:In1 +NumberOfControlPoints:0 +CONNECTION +Box99:Widget:Box97:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box32:Widget:Box98:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box102:BoxChange:Box103:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box105:Out:Box103:In +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box00:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box90:Widget:Box00:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box91:Widget:Box99:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box108:Widget:Box99:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box93:In5 +NumberOfControlPoints:0 +CONNECTION +Box73:Out:Box90:In +NumberOfControlPoints:0 +CONNECTION +Box90:Out:Box112:I +NumberOfControlPoints:0 +CONNECTION +Box113:OutSimple:Box114:In3 +NumberOfControlPoints:0 +CONNECTION +Box114:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box115:Widget:Box00:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box115:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box115:BoxChange:Box90:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box116:In2 +NumberOfControlPoints:0 +CONNECTION +Box03:OutString:Box117:In3 +NumberOfControlPoints:0 +CONNECTION +Box117:Out:Box118:In3 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box119:In3 +NumberOfControlPoints:0 +CONNECTION +Box119:Out:Box50:In0 +NumberOfControlPoints:0 +CONNECTION +Box119:Out:Box51:In2 +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box116:Out:Box118:In1 +NumberOfControlPoints:0 +CONNECTION +Box90:BoxChange:Box120:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box112:BoxChange:Box120:In1 +NumberOfControlPoints:0 +CONNECTION +Box113:BoxChange:Box120:In2 +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box120:In3 +NumberOfControlPoints:0 +CONNECTION +Box50:BoxChange:Box120:In5 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box121:In3 +NumberOfControlPoints:0 +CONNECTION +Box121:Out:Box52:In2 +NumberOfControlPoints:0 +CONNECTION +Box121:Out:Box45:In0 +NumberOfControlPoints:0 +CONNECTION +Box122:Out:Box54:In2 +NumberOfControlPoints:0 +CONNECTION +Box122:Out:Box53:In0 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box122:In3 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box20:In3 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box31:In3 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box65:In3 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box86:In3 +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box105:In +NumberOfControlPoints:0 +CONNECTION +Box90:OutString:Box86:In5 +NumberOfControlPoints:0 +CONNECTION +Box124:BoxChange:Box125:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box102:Widget:Box32:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box124:Widget:Box32:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box127:Out:Box126:In0 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box128:In1 +NumberOfControlPoints:0 +CONNECTION +Box129:Out:Box126:In1 +NumberOfControlPoints:0 +CONNECTION +Box47:SystemType:Box126:In +NumberOfControlPoints:0 +CONNECTION +Box130:Out:Box131:In +NumberOfControlPoints:0 +CONNECTION +Box128:Out:Box130:In +NumberOfControlPoints:0 +CONNECTION +Box131:Out:Box129:In2 +NumberOfControlPoints:0 +CONNECTION +Box131:Out:Box127:In2 +NumberOfControlPoints:0 +CONNECTION +Box133:FileSeparator:Box131:Replace +NumberOfControlPoints:0 +CONNECTION +Box126:Out:Box125:In +NumberOfControlPoints:0 +CONNECTION +Box139:SystemType:Box94:In +NumberOfControlPoints:0 +CONNECTION +Box94:Out:Box92:In +NumberOfControlPoints:0 +CONNECTION +Box97:Widget:Box135:BoxContent +NumberOfControlPoints:0 +CONNECTION +Box33:Widget:Box136:BoxContent +NumberOfControlPoints:0 +CONNECTION +Box98:Widget:Box137:BoxContent +NumberOfControlPoints:0 +CONNECTION +Box140:Out:Box11:In1 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box141:In3 +NumberOfControlPoints:0 +CONNECTION +Box141:Out:Box112:In +NumberOfControlPoints:0 +CONNECTION +Box112:Out:Box142:In1 +NumberOfControlPoints:0 +CONNECTION +Box142:Out:Box113:In +NumberOfControlPoints:0 +CONNECTION +Box143:Out:Box118:In2 +NumberOfControlPoints:0 +CONNECTION +Box90:OutString:Box143:In2 +NumberOfControlPoints:0 +CONNECTION +Box146:Out:Box126:In2 +NumberOfControlPoints:0 +CONNECTION +Box131:Out:Box146:In2 +NumberOfControlPoints:0 +CONNECTION +Box119:Out:Box50:In2 +NumberOfControlPoints:0 +CONNECTION +Box121:Out:Box45:In2 +NumberOfControlPoints:0 +CONNECTION +Box93:Out:Box94:In2 +NumberOfControlPoints:0 +CONNECTION +Box145:Out:Box147:In +NumberOfControlPoints:0 +CONNECTION +Box90:OutString:Box147:Replace +NumberOfControlPoints:0 +CONNECTION +Box147:Out:Box148:In +NumberOfControlPoints:0 +CONNECTION +Box03:OutString:Box148:Replace +NumberOfControlPoints:0 +CONNECTION +Box148:Out:Box149:In +NumberOfControlPoints:0 +CONNECTION +Box149:Out:Box128:In3 +NumberOfControlPoints:0 +CONNECTION +Box39:Widget:Box00:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box00:Widget7 +NumberOfControlPoints:0 +CONNECTION +Box122:Out:Box53:In2 +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box55:In2 +NumberOfControlPoints:0 +CONNECTION +Box135:Widget:Box150:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box136:Widget:Box150:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box137:Widget:Box150:Widget6 +NumberOfControlPoints:0 +CONNECTION +creaUser:creaUser:Box151:In1 +NumberOfControlPoints:0 +CONNECTION +Box152:Out:Box150:WinTitle +NumberOfControlPoints:0 +CONNECTION +Box151:Out:Box152:In3 +NumberOfControlPoints:0 +CONNECTION +Box65:Out:Box66:In2 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box57:In2 +NumberOfControlPoints:0 +CONNECTION +Box89:Widget:Box00:Widget9 +NumberOfControlPoints:0 +CONNECTION +Box84:Widget:Box00:Widget8 +NumberOfControlPoints:0 +CONNECTION +Box153:Out:Box154:In3 +NumberOfControlPoints:0 +CONNECTION +Box153:Out:Box155:In3 +NumberOfControlPoints:0 +CONNECTION +Box153:Out:Box156:In3 +NumberOfControlPoints:0 +CONNECTION +Box154:Out:Box105:In0 +NumberOfControlPoints:0 +CONNECTION +Box155:Out:Box105:In1 +NumberOfControlPoints:0 +CONNECTION +Box156:Out:Box105:In2 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box61:In2 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs new file mode 100644 index 0000000..1f81269 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs @@ -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 "" + +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 "" + 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 "" + 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 "" + +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 "//davila//Test_01//Condition_01" + +new std:ReplaceString Box147 + set Box147.Search "" + +new std:ReplaceString Box148 + set Box148.Search "" + +new std:ReplaceString Box149 + set Box149.Replace "00100_OriginalImages" + set Box149.Search "" + +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 diff --git a/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg new file mode 100644 index 0000000..0a0774d --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg @@ -0,0 +1,415 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00100_InsertDataA.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:1 +COMPLEX_PORT +ProjectDir +77.203365:93.473194:-900.000000 +FIN_COMPLEX_PORT +BOXES:34 +BOX +creaMaracasVisu:ViewerNV:Box00 +ISEXEC:FALSE +4.805303:5.235372:-900.000000 +68.525303:-4.764628:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box02 +ISEXEC:FALSE +-113.872761:3.560183:-900.000000 +-56.312761:-6.439817:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box03 +ISEXEC:TRUE +-61.077192:-249.874131:-900.000000 +-20.477192:-259.874131:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box04 +ISEXEC:FALSE +-55.192487:-18.379005:-900.000000 +-16.112487:-28.379005:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:CommandButton:Box06 +ISEXEC:FALSE +-98.584170:89.556276:-900.000000 +-55.809170:79.556276:-900.000000 +PORT +Label:"Read Camera Image RGB (*.PNG)" +FIN_BOX +BOX +creaImageIO:ReadImages:Box07 +ISEXEC:FALSE +1.997130:37.780269:-900.000000 +40.622130:27.780269:-900.000000 +FIN_BOX +BOX +wx:FileSelector:Box09 +ISEXEC:FALSE +-46.606859:61.540248:-900.000000 +-9.231859:51.540248:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box11 +ISEXEC:TRUE +-2.180225:-248.848157:-900.000000 +36.899775:-258.848157:-900.000000 +PORT +Proportion:"90" +PORT +WinTitle:"00100_InsertDataA.bbg" +FIN_BOX +BOX +wx:LayoutLine:Box12 +ISEXEC:FALSE +3.317046:-139.075768:-900.000000 +60.877046:-149.075768:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:InputText:Box14 +ISEXEC:FALSE +27.703036:-16.541133:-900.000000 +63.703036:-26.541133:-900.000000 +PORT +In:"Id_" +PORT +ReactiveOnKeystroke:"2" +PORT +Title:"Id" +FIN_BOX +BOX +wx:CommandButton:Box15 +ISEXEC:FALSE +73.157532:-16.272172:-900.000000 +115.932532:-26.272172:-900.000000 +PORT +Label:"Save & Exit" +FIN_BOX +BOX +std:ConcatStrings:Box16 +ISEXEC:FALSE +78.234814:75.282135:-900.000000 +117.959814:65.282135:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box17 +ISEXEC:FALSE +119.800744:-112.508316:-900.000000 +159.525744:-122.508316:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box18 +ISEXEC:FALSE +128.015499:-36.775367:-900.000000 +173.565499:-46.775367:-900.000000 +PORT +Replace:"_" +PORT +Search:" " +FIN_BOX +BOX +std:ConcatStrings:Box19 +ISEXEC:FALSE +138.960065:-132.574395:-900.000000 +178.685065:-142.574395:-900.000000 +PORT +In2:"/image.mha" +FIN_BOX +BOX +std:ConcatStrings:Box21 +ISEXEC:FALSE +93.809158:-132.715782:-900.000000 +133.534158:-142.715782:-900.000000 +PORT +In1:"mkdir -p " +FIN_BOX +BOX +vtk:MetaImageWriter:Box22 +ISEXEC:FALSE +203.528159:-181.600618:-900.000000 +246.653159:-191.600618:-900.000000 +PORT +Compression:"true" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box23 +ISEXEC:FALSE +25.682517:23.236213:-900.000000 +77.857517:13.236213:-900.000000 +FIN_BOX +BOX +std:ExecSystemCommand:Box24 +ISEXEC:FALSE +92.635092:-166.958658:-900.000000 +140.935092:-176.958658:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box25 +ISEXEC:FALSE +172.345494:77.761432:-900.000000 +212.070494:67.761432:-900.000000 +PORT +In1:"/results//davila/00100_OriginalImages/Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceCleanString:Box26 +ISEXEC:FALSE +161.851568:-64.795622:-900.000000 +207.401568:-74.795622:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +wx:OutputText:Box27 +ISEXEC:FALSE +40.753467:-166.879966:-900.000000 +77.528467:-176.879966:-900.000000 +PORT +Title:"File Name" +FIN_BOX +BOX +wx:LayoutLine:Box28 +ISEXEC:FALSE +23.914677:-191.349878:-900.000000 +81.474677:-201.349878:-900.000000 +FIN_BOX +BOX +std:Exit:Box29 +ISEXEC:FALSE +232.246136:-205.687626:-900.000000 +261.821136:-215.687626:-900.000000 +FIN_BOX +BOX +wx:ComboBox:Box30 +ISEXEC:FALSE +-28.620672:-41.504892:-900.000000 +16.619328:-51.504892:-900.000000 +PORT +In:"Study_A Study_B Study_C" +FIN_BOX +BOX +std:ReplaceCleanString:Box31 +ISEXEC:FALSE +152.695087:-86.561445:-900.000000 +198.245087:-96.561445:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:MultipleInputs:Box32 +ISEXEC:FALSE +50.631432:-98.702088:-900.000000 +90.331432:-108.702088:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box33 +ISEXEC:FALSE +130.812543:-268.584427:-900.000000 +170.512543:-278.584427:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box34 +ISEXEC:FALSE +-57.878915:27.595017:-900.000000 +-21.103915:17.595017:-900.000000 +FIN_BOX +BOX +wx:InputText:Box35 +ISEXEC:FALSE +-0.239893:-79.884445:-900.000000 +35.760107:-89.884445:-900.000000 +PORT +In:"VOID" +PORT +Title:"Parameter01" +FIN_BOX +BOX +std:GetVectorStringElement:Box36 +ISEXEC:FALSE +129.086546:-189.021471:-900.000000 +178.486546:-199.021471:-900.000000 +PORT +ErrorValue:"VOID" +PORT +I:"0" +FIN_BOX +BOX +std:StringWriter:Box37 +ISEXEC:FALSE +136.823103:-229.930463:-900.000000 +178.983103:-239.930463:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box38 +ISEXEC:FALSE +135.371749:-210.192048:-900.000000 +175.096749:-220.192048:-900.000000 +PORT +In1:"Parameter01" +PORT +In2:" " +FIN_BOX +BOX +std:ConcatStrings:Box40 +ISEXEC:FALSE +193.029150:-132.243145:-900.000000 +232.754150:-142.243145:-900.000000 +PORT +In2:"/Parameters.txt" +FIN_BOX +CONNECTIONS:47 +CONNECTION +Box00:Widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box02:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box07:LstNameImages +NumberOfControlPoints:0 +CONNECTION +Box06:BoxChange:Box09:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box09:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box07:BoxChange:Box00:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +ProjectDir:ProjectDir:Box16:In1 +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box17:In1 +NumberOfControlPoints:0 +CONNECTION +Box14:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box19:In1 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box22:Filename +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box23:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box26:Replace +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box27:In +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box28:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box27:Widget:Box28:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box21:In2 +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box28:Widget:Box11:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box12:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box30:Widget:Box12:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box12:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box30:OutString:Box31:Replace +NumberOfControlPoints:0 +CONNECTION +Box26:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box17:In2 +NumberOfControlPoints:0 +CONNECTION +Box30:BoxChange:Box32:In1 +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box32:In2 +NumberOfControlPoints:0 +CONNECTION +Box32:BoxChange:Box27:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box15:BoxChange:Box33:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box24:BoxChange:Box33:In1 +NumberOfControlPoints:0 +CONNECTION +Box22:BoxChange:Box33:In3 +NumberOfControlPoints:0 +CONNECTION +Box29:BoxChange:Box33:In5 +NumberOfControlPoints:0 +CONNECTION +Box34:Widget:Box02:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box34:In +NumberOfControlPoints:0 +CONNECTION +Box09:BoxChange:Box34:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box12:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box37:In0 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box40:In1 +NumberOfControlPoints:0 +CONNECTION +Box37:BoxChange:Box33:In2 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box37:FileName +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box38:In3 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs new file mode 100644 index 0000000..f205219 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs @@ -0,0 +1,215 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00100_InsertDataA.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include creaVtk +include creaImageIO +include std +include vtk + +author "Author ??" +description "Description ??" +category "" + +new creaMaracasVisu:ViewerNV Box00 + +new wx:LayoutLine Box02 + +new creaVtk:OutputWindow Box03 + +new wx:LayoutSplit Box04 + set Box04.Orientation "H" + +new wx:CommandButton Box06 + set Box06.Label "Read Camera Image RGB (*.PNG)" + +new creaImageIO:ReadImages Box07 + +new wx:FileSelector Box09 + +new wx:LayoutSplit Box11 + set Box11.Proportion "90" + set Box11.WinTitle "00100_InsertDataA.bbg" + +new wx:LayoutLine Box12 + set Box12.Orientation "H" + +new wx:InputText Box14 + set Box14.In "Id_" + set Box14.ReactiveOnKeystroke "2" + set Box14.Title "Id" + +new wx:CommandButton Box15 + set Box15.Label "Save & Exit" + +new std:ConcatStrings Box16 + +new std:ConcatStrings Box17 + +new std:ReplaceCleanString Box18 + set Box18.Replace "_" + set Box18.Search " " + +new std:ConcatStrings Box19 + set Box19.In2 "/image.mha" + +new std:ConcatStrings Box21 + set Box21.In1 "mkdir -p " + +new vtk:MetaImageWriter Box22 + set Box22.Compression "true" + +new vtk:vtkImageDataPointerRelay Box23 + +new std:ExecSystemCommand Box24 + +new std:ConcatStrings Box25 + set Box25.In1 "/results//davila/00100_OriginalImages/Test_01//Condition_01" + +new std:ReplaceCleanString Box26 + set Box26.Search "" + +new wx:OutputText Box27 + set Box27.Title "File Name" + +new wx:LayoutLine Box28 + +new std:Exit Box29 + +new wx:ComboBox Box30 + set Box30.In "Study_A Study_B Study_C" + +new std:ReplaceCleanString Box31 + set Box31.Search "" + +new std:MultipleInputs Box32 + +new std:MultipleInputs Box33 + +new wx:OutputText Box34 + +new wx:InputText Box35 + set Box35.In "VOID" + set Box35.Title "Parameter01" + +new std:GetVectorStringElement Box36 + set Box36.ErrorValue "VOID" + set Box36.I "0" + +new std:StringWriter Box37 + +new std:ConcatStrings Box38 + set Box38.In1 "Parameter01" + set Box38.In2 " " + +new std:ConcatStrings Box40 + set Box40.In2 "/Parameters.txt" + + +connect Box00.Widget Box04.Widget2 + +connect Box02.Widget Box04.Widget1 + +connect Box06.Widget Box02.Widget1 + +connect Box09.Out Box07.LstNameImages + +connect Box06.BoxChange Box09.BoxExecute + +connect Box09.BoxChange Box07.BoxExecute + +connect Box07.BoxChange Box00.BoxExecute + +connect Box04.Widget Box11.Widget1 + + +connect Box16.Out Box17.In1 + +connect Box14.Out Box18.In + +connect Box17.Out Box19.In1 + +connect Box19.Out Box22.Filename + +connect Box07.Out Box23.In + +connect Box23.Out Box00.In + +connect Box23.Out Box22.In + +connect Box25.Out Box26.In + +connect Box18.Out Box26.Replace + +connect Box19.Out Box27.In + +connect Box12.Widget Box28.Widget1 + +connect Box27.Widget Box28.Widget2 + +connect Box17.Out Box21.In2 + +connect Box21.Out Box24.In + +connect Box28.Widget Box11.Widget2 + +connect Box15.Widget Box12.Widget6 + +connect Box30.Widget Box12.Widget1 + +connect Box14.Widget Box12.Widget3 + +connect Box30.OutString Box31.Replace + +connect Box26.Out Box31.In + +connect Box31.Out Box17.In2 + +connect Box30.BoxChange Box32.In1 + +connect Box14.BoxChange Box32.In2 + +connect Box32.BoxChange Box27.BoxExecute + +connect Box15.BoxChange Box33.BoxExecute + +connect Box24.BoxChange Box33.In1 + +connect Box22.BoxChange Box33.In3 + +connect Box29.BoxChange Box33.In5 + +connect Box34.Widget Box02.Widget3 + +connect Box09.Out Box34.In + +connect Box09.BoxChange Box34.BoxExecute + +connect Box35.Widget Box12.Widget2 + +connect Box35.Out Box36.In + +connect Box38.Out Box37.In0 + +connect Box17.Out Box40.In1 + +connect Box37.BoxChange Box33.In2 + +connect Box40.Out Box37.FileName + +connect Box36.Out Box38.In3 + + + +# Complex input ports +input ProjectDir Box16.In1 " " +exec Box03 +exec Box11 diff --git a/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbg b/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbg new file mode 100644 index 0000000..36350a4 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbg @@ -0,0 +1,392 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00200_InitialParameters.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +-91.690455:72.272902:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +3.380993:69.680090:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +42.320546:69.785207:-900.000000 +FIN_COMPLEX_PORT +BOXES:31 +BOX +std:ConcatStrings:Box01 +ISEXEC:FALSE +-110.010320:43.977669:-900.000000 +-70.285320:33.977669:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box02 +ISEXEC:FALSE +5.017100:40.822690:-900.000000 +44.742100:30.822690:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box04 +ISEXEC:FALSE +-112.652749:-257.565402:-900.000000 +-55.092749:-267.565402:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box05 +ISEXEC:TRUE +-96.112314:-300.405293:-900.000000 +-55.512314:-310.405293:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +-49.168998:48.345830:-900.000000 +-9.443998:38.345830:-900.000000 +PORT +In1:"/davila/00100_OriginalImages/Test_01//Condition_01" +FIN_BOX +BOX +wx:OutputText:Box07 +ISEXEC:FALSE +-144.111733:-117.530220:-900.000000 +-107.336733:-127.530220:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box08 +ISEXEC:FALSE +-35.694309:20.975152:-900.000000 +9.855691:10.975152:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box09 +ISEXEC:FALSE +-24.892283:-16.311164:-900.000000 +14.832717:-26.311164:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box10 +ISEXEC:FALSE +56.762632:42.006833:-900.000000 +96.487632:32.006833:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box11 +ISEXEC:FALSE +7.654345:4.973777:-900.000000 +53.204345:-5.026223:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box12 +ISEXEC:FALSE +-1.468408:-39.596470:-900.000000 +38.256592:-49.596470:-900.000000 +PORT +In2:"/image.mha" +FIN_BOX +BOX +vtk:MetaImageReader:Box13 +ISEXEC:FALSE +7.699542:-58.680066:-900.000000 +52.374542:-68.680066:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box14 +ISEXEC:FALSE +24.100580:-99.632410:-900.000000 +87.820580:-109.632410:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box15 +ISEXEC:TRUE +13.069123:-301.055245:-900.000000 +52.149123:-311.055245:-900.000000 +PORT +Orientation:"H" +PORT +WinTitle:"00200_InitialParameters.bbg" +FIN_BOX +BOX +wx:Slider:Box16 +ISEXEC:FALSE +-87.159259:-138.720372:-900.000000 +-35.759259:-148.720372:-900.000000 +PORT +In:"100" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Threshold" +FIN_BOX +BOX +creaVtk:ImageThreshold:Box17 +ISEXEC:FALSE +-41.135928:-181.926974:-900.000000 +0.664072:-191.926974:-900.000000 +PORT +InValue:"255" +PORT +OutValue:"0" +PORT +Upper:"10000" +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box18 +ISEXEC:TRUE +-46.828520:-202.703694:-900.000000 +23.051480:-212.703694:-900.000000 +PORT +TypeControlsInterface:"2" +FIN_BOX +BOX +wx:CommandButton:Box19 +ISEXEC:FALSE +46.873920:-180.707139:-900.000000 +89.648920:-190.707139:-900.000000 +PORT +Label:"Save & Exit" +FIN_BOX +BOX +std:MultipleInputs:Box20 +ISEXEC:FALSE +81.698513:-283.314664:-900.000000 +121.398513:-293.314664:-900.000000 +FIN_BOX +BOX +std:Exit:Box22 +ISEXEC:FALSE +120.564338:-245.948130:-900.000000 +150.139338:-255.948130:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box23 +ISEXEC:FALSE +146.580055:-57.123511:-900.000000 +186.305055:-67.123511:-900.000000 +PORT +In2:"/InitialValues.txt" +FIN_BOX +BOX +std:StringWriter:Box24 +ISEXEC:FALSE +103.025745:-216.418751:-900.000000 +145.185745:-226.418751:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box25 +ISEXEC:FALSE +129.100112:-188.372469:-900.000000 +168.825112:-198.372469:-900.000000 +PORT +In1:"Threshold " +FIN_BOX +BOX +std:ReadColumnsString:Box26 +ISEXEC:FALSE +173.147914:-78.263187:-900.000000 +218.297914:-88.263187:-900.000000 +PORT +Dimension:"2" +FIN_BOX +BOX +std:GetVectorStringElement:Box27 +ISEXEC:FALSE +170.634203:-106.010426:-900.000000 +220.034203:-116.010426:-900.000000 +PORT +ErrorValue:"100" +PORT +I:"0" +FIN_BOX +BOX +std:ReplaceCleanString:Box29 +ISEXEC:FALSE +107.501540:-38.927065:-900.000000 +153.051540:-48.927065:-900.000000 +PORT +Replace:"00200_InitialParameters" +PORT +Search:"00100_OriginalImages" +FIN_BOX +BOX +std:ConcatStrings:Box30 +ISEXEC:FALSE +81.632649:-58.113251:-900.000000 +121.357649:-68.113251:-900.000000 +PORT +In1:"mkdir -p " +FIN_BOX +BOX +std:ExecSystemCommand:Box31 +ISEXEC:FALSE +104.234471:-80.396738:-900.000000 +152.534471:-90.396738:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box32 +ISEXEC:FALSE +4.918966:-77.676788:-900.000000 +56.443966:-87.676788:-900.000000 +FIN_BOX +BOX +vtk:ImageVtkProperties:Box33 +ISEXEC:FALSE +-54.837918:-98.625936:-900.000000 +-9.487918:-108.625936:-900.000000 +FIN_BOX +BOX +std:GetVectorDoubleElement:Box34 +ISEXEC:FALSE +-62.358165:-117.963714:-900.000000 +-11.308165:-127.963714:-900.000000 +PORT +I:"1" +FIN_BOX +CONNECTIONS:44 +CONNECTION +BaseDir:BaseDir:Box01:In1 +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box02:In1 +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box08:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box08:Replace +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box09:In1 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box10:In1 +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box11:Replace +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box09:In3 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box12:In1 +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box13:In +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box17:Lower +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box14:wxVtkBaseView2:Box18:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box14:wxVtkBaseView3:Box18:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box14:wxVtkBaseView4:Box18:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box16:BoxChange:Box18:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box19:Widget:Box04:Widget9 +NumberOfControlPoints:0 +CONNECTION +Box19:BoxChange:Box20:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box04:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box04:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box24:FileName +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box25:In2 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box24:In0 +NumberOfControlPoints:0 +CONNECTION +Box24:BoxChange:Box20:In2 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box26:FileName +NumberOfControlPoints:0 +CONNECTION +Box26:lstData2:Box27:In +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box16:In +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box29:In +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box23:In1 +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box30:In2 +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box31:BoxChange:Box20:In1 +NumberOfControlPoints:0 +CONNECTION +Box22:BoxChange:Box20:In9 +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box32:In +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box33:MinMax:Box34:In +NumberOfControlPoints:0 +CONNECTION +Box34:Out:Box16:Max +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs b/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs new file mode 100644 index 0000000..fa5ba55 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs @@ -0,0 +1,201 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00200_InitialParameters.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include std +include wx +include creaVtk +include vtk +include creaMaracasVisu + +author "Author ??" +description "Description ??" +category "" + +new std:ConcatStrings Box01 + +new std:ConcatStrings Box02 + +new wx:LayoutLine Box04 + +new creaVtk:OutputWindow Box05 + +new std:ConcatStrings Box06 + set Box06.In1 "/davila/00100_OriginalImages/Test_01//Condition_01" + +new wx:OutputText Box07 + +new std:ReplaceCleanString Box08 + set Box08.Search "" + +new std:ConcatStrings Box09 + set Box09.In2 "/results/" + +new std:ConcatStrings Box10 + +new std:ReplaceCleanString Box11 + set Box11.Search "" + +new std:ConcatStrings Box12 + set Box12.In2 "/image.mha" + +new vtk:MetaImageReader Box13 + +new creaMaracasVisu:ViewerNV Box14 + +new wx:LayoutSplit Box15 + set Box15.Orientation "H" + set Box15.WinTitle "00200_InitialParameters.bbg" + +new wx:Slider Box16 + set Box16.In "100" + set Box16.ReactiveOnTrack "true" + set Box16.Title "Threshold" + +new creaVtk:ImageThreshold Box17 + set Box17.InValue "255" + set Box17.OutValue "0" + set Box17.Upper "10000" + +new creaMaracasVisu:ColorLayerImageView Box18 + set Box18.TypeControlsInterface "2" + +new wx:CommandButton Box19 + set Box19.Label "Save & Exit" + +new std:MultipleInputs Box20 + +new std:Exit Box22 + +new std:ConcatStrings Box23 + set Box23.In2 "/InitialValues.txt" + +new std:StringWriter Box24 + +new std:ConcatStrings Box25 + set Box25.In1 "Threshold " + +new std:ReadColumnsString Box26 + set Box26.Dimension "2" + +new std:GetVectorStringElement Box27 + set Box27.ErrorValue "100" + set Box27.I "0" + +new std:ReplaceCleanString Box29 + set Box29.Replace "00200_InitialParameters" + set Box29.Search "00100_OriginalImages" + +new std:ConcatStrings Box30 + set Box30.In1 "mkdir -p " + +new std:ExecSystemCommand Box31 + +new creaMaracasVisu:ImageChangeInformation Box32 + +new vtk:ImageVtkProperties Box33 + +new std:GetVectorDoubleElement Box34 + set Box34.I "1" + + + + +connect Box06.Out Box08.In + +connect Box02.Out Box08.Replace + +connect Box01.Out Box09.In1 + +connect Box09.Out Box07.In + + +connect Box08.Out Box11.In + +connect Box10.Out Box11.Replace + +connect Box11.Out Box09.In3 + +connect Box09.Out Box12.In1 + +connect Box12.Out Box13.In + +connect Box14.Widget Box15.Widget2 + +connect Box04.Widget Box15.Widget1 + +connect Box16.Out Box17.Lower + +connect Box17.Out Box18.In + +connect Box14.wxVtkBaseView2 Box18.WxVtkBaseView + +connect Box14.wxVtkBaseView3 Box18.WxVtkBaseView1 + +connect Box14.wxVtkBaseView4 Box18.WxVtkBaseView2 + +connect Box16.BoxChange Box18.BoxExecute + +connect Box19.Widget Box04.Widget9 + +connect Box19.BoxChange Box20.BoxExecute + +connect Box07.Widget Box04.Widget2 + +connect Box18.Widget Box04.Widget4 + +connect Box16.Widget Box04.Widget6 + +connect Box23.Out Box24.FileName + +connect Box16.Out Box25.In2 + +connect Box25.Out Box24.In0 + +connect Box24.BoxChange Box20.In2 + +connect Box23.Out Box26.FileName + +connect Box26.lstData2 Box27.In + +connect Box27.Out Box16.In + +connect Box09.Out Box29.In + +connect Box29.Out Box23.In1 + +connect Box29.Out Box30.In2 + +connect Box30.Out Box31.In + +connect Box31.BoxChange Box20.In1 + +connect Box22.BoxChange Box20.In9 + +connect Box32.Out Box17.In + +connect Box32.Out Box14.In + +connect Box13.Out Box32.In + +connect Box32.Out Box33.In + +connect Box33.MinMax Box34.In + +connect Box34.Out Box16.Max + + + +# Complex input ports +input BaseDir Box01.In1 " " +input PatientID Box02.In1 " " +input CoreID Box10.In1 " " +exec Box05 +exec Box15 +exec Box18 diff --git a/appli/template_creaPatientsSystem/scripts/00300_Filter.bbg b/appli/template_creaPatientsSystem/scripts/00300_Filter.bbg new file mode 100644 index 0000000..1fc2522 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00300_Filter.bbg @@ -0,0 +1,217 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00300_Filter.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +-91.690455:72.272902:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +3.380993:69.680090:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +42.320546:69.785207:-900.000000 +FIN_COMPLEX_PORT +BOXES:17 +BOX +std:ConcatStrings:Box01 +ISEXEC:FALSE +-110.010320:43.977669:-900.000000 +-70.285320:33.977669:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box02 +ISEXEC:FALSE +5.017100:40.822690:-900.000000 +44.742100:30.822690:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box04 +ISEXEC:FALSE +-37.138798:-270.209598:-900.000000 +20.421202:-280.209598:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box05 +ISEXEC:TRUE +-96.112314:-300.405293:-900.000000 +-55.512314:-310.405293:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +-49.168998:48.345830:-900.000000 +-9.443998:38.345830:-900.000000 +PORT +In1:"/davila/00100_OriginalImages/Test_01//Condition_01" +FIN_BOX +BOX +wx:OutputText:Box07 +ISEXEC:FALSE +-108.582946:-120.802608:-900.000000 +-71.807946:-130.802608:-900.000000 +PORT +Title:"Patient " +FIN_BOX +BOX +std:ReplaceCleanString:Box08 +ISEXEC:FALSE +-35.694309:20.975152:-900.000000 +9.855691:10.975152:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box09 +ISEXEC:FALSE +-20.244291:-21.789313:-900.000000 +19.480709:-31.789313:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box10 +ISEXEC:FALSE +56.762632:42.006833:-900.000000 +96.487632:32.006833:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box11 +ISEXEC:FALSE +13.831691:-1.740729:-900.000000 +59.381691:-11.740729:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:Exit:Box22 +ISEXEC:FALSE +114.680278:-250.146917:-900.000000 +144.255278:-260.146917:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box33 +ISEXEC:FALSE +10.117119:-207.947082:-900.000000 +52.892119:-217.947082:-900.000000 +PORT +Label:"Run Filter" +FIN_BOX +BOX +std:MultipleInputs:Box34 +ISEXEC:FALSE +58.194380:-265.999871:-900.000000 +97.894380:-275.999871:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box35 +ISEXEC:TRUE +-25.243909:-300.804300:-900.000000 +32.316091:-310.804300:-900.000000 +PORT +WinHeight:"300" +PORT +WinTitle:"00300_Filter.bbs" +PORT +WinWidth:"750" +FIN_BOX +BOX +std:ConcatStrings:Box36 +ISEXEC:FALSE +-0.695537:-63.674488:-900.000000 +39.029463:-73.674488:-900.000000 +PORT +In1:"source 00301_Filter.sh " +PORT +In3:" " +PORT +In5:" " +PORT +In7:" " +FIN_BOX +BOX +std:ExecSystemCommand:Box37 +ISEXEC:FALSE +64.957875:-227.082478:-900.000000 +113.257875:-237.082478:-900.000000 +FIN_BOX +BOX +wx:LayoutCenter:Box18 +ISEXEC:FALSE +-4.647886:-240.897954:-900.000000 +34.652114:-250.897954:-900.000000 +FIN_BOX +CONNECTIONS:21 +CONNECTION +BaseDir:BaseDir:Box01:In1 +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box02:In1 +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box08:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box08:Replace +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box09:In1 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box10:In1 +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box11:Replace +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box09:In3 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box33:BoxChange:Box34:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box22:BoxChange:Box34:In9 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box35:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box36:In2 +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box36:In4 +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box36:In6 +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box37:In +NumberOfControlPoints:0 +CONNECTION +Box37:BoxChange:Box34:In1 +NumberOfControlPoints:0 +CONNECTION +Box33:Widget:Box18:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box04:Widget4 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00300_Filter.bbs b/appli/template_creaPatientsSystem/scripts/00300_Filter.bbs new file mode 100644 index 0000000..d698dd8 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00300_Filter.bbs @@ -0,0 +1,113 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00300_Filter.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include std +include wx +include creaVtk + +author "Author ??" +description "Description ??" +category "" + +new std:ConcatStrings Box01 + +new std:ConcatStrings Box02 + +new wx:LayoutLine Box04 + +new creaVtk:OutputWindow Box05 + +new std:ConcatStrings Box06 + set Box06.In1 "/davila/00100_OriginalImages/Test_01//Condition_01" + +new wx:OutputText Box07 + set Box07.Title "Patient " + +new std:ReplaceCleanString Box08 + set Box08.Search "" + +new std:ConcatStrings Box09 + set Box09.In2 "/results/" + +new std:ConcatStrings Box10 + +new std:ReplaceCleanString Box11 + set Box11.Search "" + +new std:Exit Box22 + +new wx:CommandButton Box33 + set Box33.Label "Run Filter" + +new std:MultipleInputs Box34 + +new wx:LayoutLine Box35 + set Box35.WinHeight "300" + set Box35.WinTitle "00300_Filter.bbs" + set Box35.WinWidth "750" + +new std:ConcatStrings Box36 + set Box36.In1 "source 00301_Filter.sh " + set Box36.In3 " " + set Box36.In5 " " + set Box36.In7 " " + +new std:ExecSystemCommand Box37 + +new wx:LayoutCenter Box18 + + + + +connect Box06.Out Box08.In + +connect Box02.Out Box08.Replace + +connect Box01.Out Box09.In1 + +connect Box09.Out Box07.In + + +connect Box08.Out Box11.In + +connect Box10.Out Box11.Replace + +connect Box11.Out Box09.In3 + +connect Box07.Widget Box04.Widget2 + +connect Box33.BoxChange Box34.BoxExecute + +connect Box22.BoxChange Box34.In9 + +connect Box04.Widget Box35.Widget1 + +connect Box01.Out Box36.In2 + +connect Box10.Out Box36.In4 + +connect Box02.Out Box36.In6 + +connect Box36.Out Box37.In + +connect Box37.BoxChange Box34.In1 + +connect Box33.Widget Box18.Widget2 + +connect Box18.Widget Box04.Widget4 + + + +# Complex input ports +input BaseDir Box01.In1 " " +input PatientID Box02.In1 " " +input CoreID Box10.In1 " " +exec Box05 +exec Box35 diff --git a/appli/template_creaPatientsSystem/scripts/00301_Filter.sh b/appli/template_creaPatientsSystem/scripts/00301_Filter.sh new file mode 100644 index 0000000..648a84f --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00301_Filter.sh @@ -0,0 +1,10 @@ +BASEDIR=$1 +CORE=$2 +PATIENTID=$3 + +InImage=$BASEDIR/results/$CORE/davila/00100_OriginalImages/Test_01/$PATIENTID/Condition_01/image.mha +InitialValues=$BASEDIR/results/$CORE/davila/00200_InitialParameters/Test_01/$PATIENTID/Condition_01/InitialValues.txt +OutImage=$BASEDIR/results/$CORE/davila/00300_Filter/Test_01/$PATIENTID/Condition_01/image.mha + +bbi 00302_Filter.bbs InImage=$InImage InitialValues=$InitialValues OutImage=$OutImage + diff --git a/appli/template_creaPatientsSystem/scripts/00302_Filter.bbg b/appli/template_creaPatientsSystem/scripts/00302_Filter.bbg new file mode 100644 index 0000000..7879ec3 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00302_Filter.bbg @@ -0,0 +1,290 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00302_Filter.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +InImage +-51.602770:142.004681:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +OutImage +70.140834:141.846999:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +InitialValues +21.813812:139.687198:-900.000000 +FIN_COMPLEX_PORT +BOXES:24 +BOX +creaVtk:OutputWindow:Box00 +ISEXEC:TRUE +-83.105928:-182.036423:-900.000000 +-42.505928:-192.036423:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box01 +ISEXEC:FALSE +-48.273945:112.233926:-900.000000 +-8.548945:102.233926:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box02 +ISEXEC:FALSE +9.382548:110.178455:-900.000000 +49.107548:100.178455:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box03 +ISEXEC:FALSE +58.699353:110.275303:-900.000000 +98.424353:100.275303:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box05 +ISEXEC:FALSE +-97.322411:-19.904048:-900.000000 +-60.547411:-29.904048:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box06 +ISEXEC:FALSE +-52.784126:-19.068190:-900.000000 +-16.009126:-29.068190:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-75.093008:-53.766457:-900.000000 +-17.533008:-63.766457:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box08 +ISEXEC:FALSE +-10.604142:-99.163905:-900.000000 +28.475858:-109.163905:-900.000000 +PORT +Orientation:"H" +PORT +WinTitle:"00302_Filter.bbs" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box09 +ISEXEC:FALSE +7.281130:-43.195654:-900.000000 +71.001130:-53.195654:-900.000000 +FIN_BOX +BOX +vtk:MetaImageReader:Box10 +ISEXEC:FALSE +42.465463:-0.982777:-900.000000 +87.140463:-10.982777:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box11 +ISEXEC:FALSE +29.550718:-72.198414:-900.000000 +87.110718:-82.198414:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box12 +ISEXEC:FALSE +76.288470:-42.500069:-900.000000 +140.008470:-52.500069:-900.000000 +FIN_BOX +BOX +creaVtk:ImageThreshold:Box13 +ISEXEC:FALSE +97.463754:-21.187773:-900.000000 +139.263754:-31.187773:-900.000000 +PORT +InValue:"255" +PORT +Lower:"134" +PORT +OutValue:"0" +PORT +Upper:"10000" +FIN_BOX +BOX +std:SplitFilePathVector:Box14 +ISEXEC:FALSE +130.549967:55.894815:-900.000000 +174.699967:45.894815:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box15 +ISEXEC:FALSE +132.609206:33.188584:-900.000000 +172.334206:23.188584:-900.000000 +PORT +In1:"mkdir -p " +FIN_BOX +BOX +wx:OutputText:Box16 +ISEXEC:FALSE +-11.527723:-20.494726:-900.000000 +25.247277:-30.494726:-900.000000 +FIN_BOX +BOX +std:ExecSystemCommand:Box17 +ISEXEC:FALSE +134.740182:-66.708821:-900.000000 +183.040182:-76.708821:-900.000000 +FIN_BOX +BOX +vtk:MetaImageWriter:Box18 +ISEXEC:FALSE +198.217454:-66.950575:-900.000000 +241.342454:-76.950575:-900.000000 +PORT +Compression:"true" +FIN_BOX +BOX +std:MultipleInputs:Box19 +ISEXEC:TRUE +196.758891:-112.171249:-900.000000 +236.458891:-122.171249:-900.000000 +FIN_BOX +BOX +std:Exit:Box20 +ISEXEC:FALSE +332.136297:-64.555299:-900.000000 +361.711297:-74.555299:-900.000000 +FIN_BOX +BOX +std:ReadColumnsString:Box23 +ISEXEC:FALSE +205.261780:56.017309:-900.000000 +250.411780:46.017309:-900.000000 +PORT +Dimension:"2" +FIN_BOX +BOX +std:GetVectorStringElement:Box24 +ISEXEC:FALSE +202.824007:32.926270:-900.000000 +252.224007:22.926270:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +vtk:MetaImageWriter:Box25 +ISEXEC:FALSE +254.643649:-67.219990:-900.000000 +297.768649:-77.219990:-900.000000 +PORT +Compression:"true" +FIN_BOX +BOX +std:ConcatStrings:Box26 +ISEXEC:FALSE +223.367162:-17.129465:-900.000000 +263.092162:-27.129465:-900.000000 +PORT +In2:".noCorrection.mha" +FIN_BOX +CONNECTIONS:32 +CONNECTION +InImage:InImage:Box01:In1 +NumberOfControlPoints:0 +CONNECTION +OutImage:OutImage:Box03:In1 +NumberOfControlPoints:0 +CONNECTION +InitialValues:InitialValues:Box02:In1 +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box07:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box07:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box10:In +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box09:In +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box08:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box13:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box12:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box14:Path:Box15:In2 +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box18:BoxChange:Box19:In4 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box18:Filename +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box11:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box17:BoxChange:Box19:In1 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box23:FileName +NumberOfControlPoints:0 +CONNECTION +Box23:lstData2:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box16:In +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box07:Widget7 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box13:Lower +NumberOfControlPoints:0 +CONNECTION +Box20:BoxChange:Box19:In9 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box25:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box26:In1 +NumberOfControlPoints:0 +CONNECTION +Box25:BoxChange:Box19:In6 +NumberOfControlPoints:0 +CONNECTION +Box26:Out:Box25:Filename +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs b/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs new file mode 100644 index 0000000..33cc851 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs @@ -0,0 +1,150 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00302_Filter.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaVtk +include std +include wx +include creaMaracasVisu +include vtk + +author "Author ??" +description "Description ??" +category "" + +new creaVtk:OutputWindow Box00 + +new std:ConcatStrings Box01 + +new std:ConcatStrings Box02 + +new std:ConcatStrings Box03 + +new wx:OutputText Box05 + +new wx:OutputText Box06 + +new wx:LayoutLine Box07 + +new wx:LayoutSplit Box08 + set Box08.Orientation "H" + set Box08.WinTitle "00302_Filter.bbs" + +new creaMaracasVisu:ViewerNV Box09 + +new vtk:MetaImageReader Box10 + +new wx:LayoutTab Box11 + +new creaMaracasVisu:ViewerNV Box12 + +new creaVtk:ImageThreshold Box13 + set Box13.InValue "255" + set Box13.Lower "134" + set Box13.OutValue "0" + set Box13.Upper "10000" + +new std:SplitFilePathVector Box14 + +new std:ConcatStrings Box15 + set Box15.In1 "mkdir -p " + +new wx:OutputText Box16 + +new std:ExecSystemCommand Box17 + +new vtk:MetaImageWriter Box18 + set Box18.Compression "true" + +new std:MultipleInputs Box19 + +new std:Exit Box20 + +new std:ReadColumnsString Box23 + set Box23.Dimension "2" + +new std:GetVectorStringElement Box24 + set Box24.I "0" + +new vtk:MetaImageWriter Box25 + set Box25.Compression "true" + +new std:ConcatStrings Box26 + set Box26.In2 ".noCorrection.mha" + + + + + +connect Box02.Out Box05.In + +connect Box03.Out Box06.In + +connect Box05.Widget Box07.Widget3 + +connect Box06.Widget Box07.Widget5 + +connect Box01.Out Box10.In + +connect Box10.Out Box09.In + +connect Box09.Widget Box11.Widget1 + +connect Box11.Widget Box08.Widget2 + +connect Box10.Out Box13.In + +connect Box13.Out Box12.In + +connect Box03.Out Box14.In + +connect Box14.Path Box15.In2 + +connect Box15.Out Box17.In + +connect Box18.BoxChange Box19.In4 + +connect Box03.Out Box18.Filename + +connect Box13.Out Box18.In + +connect Box12.Widget Box11.Widget4 + +connect Box17.BoxChange Box19.In1 + +connect Box07.Widget Box08.Widget1 + +connect Box02.Out Box23.FileName + +connect Box23.lstData2 Box24.In + +connect Box24.Out Box16.In + +connect Box16.Widget Box07.Widget7 + +connect Box24.Out Box13.Lower + +connect Box20.BoxChange Box19.In9 + +connect Box13.Out Box25.In + +connect Box03.Out Box26.In1 + +connect Box25.BoxChange Box19.In6 + +connect Box26.Out Box25.Filename + + + +# Complex input ports +input InImage Box01.In1 " " +input OutImage Box03.In1 " " +input InitialValues Box02.In1 " " +exec Box00 +exec Box19 diff --git a/appli/template_creaPatientsSystem/scripts/00400_Correction.bbg b/appli/template_creaPatientsSystem/scripts/00400_Correction.bbg new file mode 100644 index 0000000..2e52307 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00400_Correction.bbg @@ -0,0 +1,816 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00400_Correction.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +-79.627442:294.808491:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +40.798840:299.772356:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +-3.148596:299.252907:-900.000000 +FIN_COMPLEX_PORT +BOXES:56 +BOX +creaMaracasVisu:ManualPaint2:Box00 +ISEXEC:FALSE +46.854804:-104.452660:-900.000000 +86.354804:-114.452660:-900.000000 +PORT +Active_ManualPaint_Model:"false true true true" +PORT +GrayLevel_ManualPaint_Model:"-1 128 128 50" +PORT +MaxRange_ManualPaint_Model:"-1 50000 50000 50000" +PORT +MinRange_ManualPaint_Model:"-1 9000 9000 9000" +PORT +SizeDistance_ManualPaint_Model:"-1 15 4 4" +PORT +TitleOptions:"Desactivate Big Small Clean" +PORT +Tolerance_Fill_ManualPaint_Model:"-1 10000 10000 10000" +PORT +colorBarPosition:"-100 -100" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +67.119441:61.238445:-900.000000 +102.994441:51.238445:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box03 +ISEXEC:FALSE +-8.472998:-249.201404:-900.000000 +39.080000:-259.201404:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box05 +ISEXEC:FALSE +32.524541:90.857008:-900.000000 +84.699541:80.857008:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box08 +ISEXEC:TRUE +-76.303689:-272.635744:-900.000000 +8.280000:-282.635744:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box09 +ISEXEC:TRUE +-17.812273:-276.451816:-900.000000 +57.560000:-286.451816:-900.000000 +PORT +WinTitle:"00400_Correction.bbs" +FIN_BOX +BOX +vtk:MarchingCubes:Box13 +ISEXEC:FALSE +5.828299:17.142944:-900.000000 +47.628299:7.142944:-900.000000 +PORT +Value:"128" +FIN_BOX +BOX +vtk:PolyDataToActor:Box14 +ISEXEC:FALSE +-85.068729:-97.742183:-900.000000 +-39.828729:-107.742183:-900.000000 +PORT +Colour:"1 1 1" +FIN_BOX +BOX +wx:Slider:Box15 +ISEXEC:FALSE +-176.395908:62.492101:-900.000000 +-124.995908:52.492101:-900.000000 +PORT +In:"100" +PORT +Label:"true" +PORT +Max:"100" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Opacity 3D " +FIN_BOX +BOX +wx:LayoutLine:Box17 +ISEXEC:FALSE +-3.274561:-215.194423:-900.000000 +57.560000:-225.194423:-900.000000 +FIN_BOX +BOX +std:Div:Box18 +ISEXEC:FALSE +-190.952492:41.320443:-900.000000 +-161.627492:31.320443:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +std:MultipleInputs:Box19 +ISEXEC:FALSE +-51.953901:-16.677330:-900.000000 +36.000000:-26.677330:-900.000000 +FIN_BOX +BOX +vtk:UpdateRender:Box20 +ISEXEC:FALSE +-62.272523:-134.720633:-900.000000 +14.440000:-144.720633:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +vtk:MetaImageReader:Box21 +ISEXEC:FALSE +36.010584:108.036344:-900.000000 +80.685584:98.036344:-900.000000 +FIN_BOX +BOX +wx:CheckBox:Box22 +ISEXEC:FALSE +-156.930246:40.391150:-900.000000 +-120.605246:30.391150:-900.000000 +PORT +In:"false" +PORT +Title:"Picker" +FIN_BOX +BOX +creaVtk:PointPicker:Box23 +ISEXEC:FALSE +110.842409:-55.081725:-900.000000 +147.792409:-65.081725:-900.000000 +PORT +TypeEvent:"2" +FIN_BOX +BOX +std:MathOperationVector:Box24 +ISEXEC:FALSE +172.314168:-84.485320:-900.000000 +219.839168:-94.485320:-900.000000 +PORT +Type:"3" +FIN_BOX +BOX +std:MathOperationVector:Box25 +ISEXEC:FALSE +172.017752:-102.987639:-900.000000 +219.542752:-112.987639:-900.000000 +PORT +Type:"23" +FIN_BOX +BOX +vtk:ImageVtkProperties:Box26 +ISEXEC:FALSE +173.950570:-62.233583:-900.000000 +219.300570:-72.233583:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:SetPosition:Box28 +ISEXEC:FALSE +158.116736:-130.736294:-900.000000 +194.666736:-140.736294:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box29 +ISEXEC:FALSE +-186.545026:-17.256818:-900.000000 +57.560000:-27.256818:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:RadioButton:Box30 +ISEXEC:FALSE +-156.324326:92.538393:-900.000000 +-92.604326:82.538393:-900.000000 +PORT +In0:"1x" +PORT +In1:"3x" +PORT +In2:"6x" +PORT +In3:"12x" +FIN_BOX +BOX +wx:LayoutLine:Box31 +ISEXEC:FALSE +-2.106719:-71.020418:-900.000000 +57.560000:-81.020418:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaMaracasVisu:SliderMinMax:Box35 +ISEXEC:FALSE +-56.072022:15.097873:-900.000000 +54.480000:5.097873:-900.000000 +PORT +InMinShow:"100" +PORT +ShowActual:"false" +FIN_BOX +BOX +std:ConcatStrings:Box34 +ISEXEC:FALSE +-87.643515:271.772107:-900.000000 +-47.918515:261.772107:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box36 +ISEXEC:FALSE +-11.078113:272.015220:-900.000000 +28.646887:262.015220:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box37 +ISEXEC:FALSE +37.723049:270.886964:-900.000000 +77.448049:260.886964:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box38 +ISEXEC:FALSE +-63.713513:254.658852:-900.000000 +-23.988513:244.658852:-900.000000 +PORT +In1:"//davila//Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceCleanString:Box39 +ISEXEC:FALSE +-40.159226:231.410125:-900.000000 +5.390774:221.410125:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceCleanString:Box40 +ISEXEC:FALSE +-19.835582:211.804224:-900.000000 +25.714418:201.804224:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box41 +ISEXEC:FALSE +-52.848925:192.313465:-900.000000 +39.080000:182.313465:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box42 +ISEXEC:FALSE +21.614192:134.518601:-900.000000 +61.339192:124.518601:-900.000000 +PORT +In2:"/image.mha" +FIN_BOX +BOX +std:ReplaceCleanString:Box44 +ISEXEC:FALSE +23.625315:156.264616:-900.000000 +69.175315:146.264616:-900.000000 +PORT +Replace:"00100_OriginalImages" +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box45 +ISEXEC:FALSE +127.327990:137.873281:-900.000000 +167.052990:127.873281:-900.000000 +PORT +In2:"/image.mha" +FIN_BOX +BOX +std:ReplaceCleanString:Box46 +ISEXEC:FALSE +129.339113:159.619296:-900.000000 +174.889113:149.619296:-900.000000 +PORT +Replace:"00300_Filter" +PORT +Search:"" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box47 +ISEXEC:FALSE +126.258210:103.219257:-900.000000 +178.433210:93.219257:-900.000000 +FIN_BOX +BOX +vtk:MetaImageReader:Box48 +ISEXEC:FALSE +129.744253:120.398593:-900.000000 +174.419253:110.398593:-900.000000 +FIN_BOX +BOX +vtk:ImageVtkProperties:Box49 +ISEXEC:FALSE +-32.138263:73.837267:-900.000000 +13.211737:63.837267:-900.000000 +FIN_BOX +BOX +std:GetVectorDoubleElement:Box50 +ISEXEC:FALSE +-71.895792:50.142715:-900.000000 +-20.845792:40.142715:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +std:GetVectorDoubleElement:Box51 +ISEXEC:FALSE +-6.245272:54.649459:-900.000000 +44.804728:44.649459:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +std:ConcatStrings:Box52 +ISEXEC:FALSE +-172.441979:-56.031134:-900.000000 +-132.716979:-66.031134:-900.000000 +PORT +In1:"-1" +PORT +In2:" " +PORT +In4:" " +PORT +In6:" " +FIN_BOX +BOX +std:ConcatStrings:Box53 +ISEXEC:FALSE +-123.349784:-55.471483:-900.000000 +-83.624784:-65.471483:-900.000000 +PORT +In1:"-1" +PORT +In2:" " +PORT +In4:" " +PORT +In6:" " +FIN_BOX +BOX +std:StringSelect:Box54 +ISEXEC:FALSE +-283.467108:47.564631:-900.000000 +-241.307108:37.564631:-900.000000 +PORT +In0:"1" +PORT +In1:"3" +PORT +In2:"6" +PORT +In3:"12" +FIN_BOX +BOX +std:ConcatStrings:Box55 +ISEXEC:FALSE +-291.286990:-32.198161:-900.000000 +39.080000:-42.198161:-900.000000 +PORT +In1:"-1" +PORT +In2:" " +PORT +In4:" " +PORT +In6:" " +FIN_BOX +BOX +std:Mul:Box56 +ISEXEC:FALSE +-298.324883:10.420193:-900.000000 +-268.524883:0.420193:-900.000000 +PORT +In1:"2" +FIN_BOX +BOX +wx:CommandButton:Box58 +ISEXEC:FALSE +-294.644207:-175.245123:-900.000000 +36.000000:-185.245123:-900.000000 +PORT +Label:"Save & Exit" +FIN_BOX +BOX +std:MultipleInputs:Box59 +ISEXEC:FALSE +-177.454498:-243.545502:-900.000000 +36.000000:-253.545502:-900.000000 +FIN_BOX +BOX +std:Exit:Box60 +ISEXEC:FALSE +-131.357970:-225.758003:-900.000000 +11.360000:-235.758003:-900.000000 +FIN_BOX +BOX +vtk:MetaImageWriter:Box61 +ISEXEC:FALSE +-238.026726:-175.002591:-900.000000 +20.600000:-185.002591:-900.000000 +PORT +Compression:"true" +FIN_BOX +BOX +wx:OutputText:Box62 +ISEXEC:FALSE +-22.624147:-116.453860:-900.000000 +32.920000:-126.453860:-900.000000 +PORT +Title:"Patient" +FIN_BOX +BOX +creaVtk:ImageThreshold:Box63 +ISEXEC:FALSE +28.484595:-8.316854:-900.000000 +70.284595:-18.316854:-900.000000 +PORT +InValue:"255" +PORT +OutValue:"0" +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box64 +ISEXEC:FALSE +15.210185:-31.084989:-900.000000 +69.880000:-41.084989:-900.000000 +PORT +ColorBarPosition:"-100 -100" +PORT +Opacity:"50" +PORT +PlainOrGradientColor:"true" +PORT +TypeControlsInterface:"2" +PORT +WinTitle:"Opacity Reference" +PORT +lstBaseColor:"0 0 0 1 0 0" +PORT +lstGreyLevelBoundaries:"0 128 256" +PORT +lstTransparenceBoundaries:"0" +FIN_BOX +BOX +wx:LayoutLine:Box65 +ISEXEC:FALSE +17.893281:-51.020418:-900.000000 +57.560000:-61.020418:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box66 +ISEXEC:FALSE +203.968071:122.991432:-900.000000 +243.693071:112.991432:-900.000000 +PORT +In2:".final.mha" +FIN_BOX +BOX +vtk:MetaImageWriter:Box67 +ISEXEC:FALSE +-173.001652:-174.460842:-900.000000 +20.600000:-184.460842:-900.000000 +PORT +Compression:"true" +FIN_BOX +BOX +creaVtk:ImageThreshold:Box68 +ISEXEC:FALSE +-110.316964:-151.356194:-900.000000 +23.680000:-161.356194:-900.000000 +PORT +InValue:"255" +PORT +Lower:"127" +PORT +OutValue:"0" +PORT +Upper:"256" +FIN_BOX +CONNECTIONS:98 +CONNECTION +Box02:Widget:Box03:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box00:BoxExecute_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box02:Point:Box00:Point_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView2:Box00:wxvtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView3:Box00:wxvtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView4:Box00:wxvtkbaseview3 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box09:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box00:Image_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box18:In1 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box03:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box14:Opacity +NumberOfControlPoints:0 +CONNECTION +Box15:BoxChange:Box19:In1 +NumberOfControlPoints:0 +CONNECTION +Box19:BoxChange:Box14:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box20:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box14:Renderer +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box20:Renderer +NumberOfControlPoints:0 +CONNECTION +Box13:BoxChange:Box19:In4 +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box13:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box23:Renderer +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box23:Active +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box25:In0 +NumberOfControlPoints:0 +CONNECTION +Box23:Point:Box24:In0 +NumberOfControlPoints:0 +CONNECTION +Box26:Spacing:Box24:In1 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box28:Point +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView1:Box28:wxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box28:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box29:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box29:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box30:Widget:Box31:Widget1 +NumberOfControlPoints:0 +CONNECTION +BaseDir:BaseDir:Box34:In1 +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box36:In1 +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box37:In1 +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box39:Replace +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box40:In +NumberOfControlPoints:0 +CONNECTION +Box37:Out:Box40:Replace +NumberOfControlPoints:0 +CONNECTION +Box34:Out:Box41:In1 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box41:In3 +NumberOfControlPoints:0 +CONNECTION +Box42:Out:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box41:Out:Box44:In +NumberOfControlPoints:0 +CONNECTION +Box44:Out:Box42:In1 +NumberOfControlPoints:0 +CONNECTION +Box46:Out:Box45:In1 +NumberOfControlPoints:0 +CONNECTION +Box41:Out:Box46:In +NumberOfControlPoints:0 +CONNECTION +Box48:Out:Box47:In +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box48:In +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box00:Image2_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box13:In +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box49:In +NumberOfControlPoints:0 +CONNECTION +Box49:MinMax:Box50:In +NumberOfControlPoints:0 +CONNECTION +Box50:Out:Box35:InMin +NumberOfControlPoints:0 +CONNECTION +Box49:MinMax:Box51:In +NumberOfControlPoints:0 +CONNECTION +Box51:Out:Box35:InMax +NumberOfControlPoints:0 +CONNECTION +Box35:OutEnd:Box52:In3 +NumberOfControlPoints:0 +CONNECTION +Box35:OutEnd:Box52:In5 +NumberOfControlPoints:0 +CONNECTION +Box35:OutEnd:Box52:In7 +NumberOfControlPoints:0 +CONNECTION +Box52:Out:Box00:MaxRange_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box35:OutStart:Box53:In3 +NumberOfControlPoints:0 +CONNECTION +Box35:OutStart:Box53:In5 +NumberOfControlPoints:0 +CONNECTION +Box35:OutStart:Box53:In7 +NumberOfControlPoints:0 +CONNECTION +Box53:Out:Box00:MinRange_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box51:Out:Box35:InMaxShow +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box54:In +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box56:In2 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box55:In3 +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box55:In5 +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box55:In7 +NumberOfControlPoints:0 +CONNECTION +Box55:Out:Box00:SizeDistance_ManualPaint_Model +NumberOfControlPoints:0 +CONNECTION +Box60:BoxChange:Box59:In9 +NumberOfControlPoints:0 +CONNECTION +Box61:BoxChange:Box59:In1 +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box61:In +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box61:Filename +NumberOfControlPoints:0 +CONNECTION +Box58:BoxChange:Box59:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box42:Out:Box62:In +NumberOfControlPoints:0 +CONNECTION +Box58:Widget:Box17:Widget8 +NumberOfControlPoints:0 +CONNECTION +Box29:Widget:Box17:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box31:Widget:Box17:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box00:widgetOut:Box17:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box62:Widget:Box17:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box63:Out:Box64:In +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box65:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box64:Widget:Box65:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box65:Widget:Box31:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box35:OutEnd:Box63:Upper +NumberOfControlPoints:0 +CONNECTION +Box35:OutStart:Box63:Lower +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView2:Box64:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView3:Box64:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView4:Box64:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box63:In +NumberOfControlPoints:0 +CONNECTION +Box35:BoxChange:Box64:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box66:In1 +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box67:Filename +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box68:In +NumberOfControlPoints:0 +CONNECTION +Box67:BoxChange:Box59:In3 +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box67:In +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00400_Correction.bbs b/appli/template_creaPatientsSystem/scripts/00400_Correction.bbs new file mode 100644 index 0000000..47eb908 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00400_Correction.bbs @@ -0,0 +1,414 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00400_Correction.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include vtk +include creaVtk +include std + +author "Author ??" +description "Description ??" +category "" + +new creaMaracasVisu:ManualPaint2 Box00 + set Box00.Active_ManualPaint_Model "false true true true" + set Box00.GrayLevel_ManualPaint_Model "-1 128 128 50" + set Box00.MaxRange_ManualPaint_Model "-1 50000 50000 50000" + set Box00.MinRange_ManualPaint_Model "-1 9000 9000 9000" + set Box00.SizeDistance_ManualPaint_Model "-1 15 4 4" + set Box00.TitleOptions "Desactivate Big Small Clean" + set Box00.Tolerance_Fill_ManualPaint_Model "-1 10000 10000 10000" + set Box00.colorBarPosition "-100 -100" + +new creaMaracasVisu:ViewerNV Box02 + +new wx:LayoutSplit Box03 + set Box03.Orientation "H" + +new vtk:vtkImageDataPointerRelay Box05 + +new creaVtk:OutputWindow Box08 + +new wx:LayoutLine Box09 + set Box09.WinTitle "00400_Correction.bbs" + +new vtk:MarchingCubes Box13 + set Box13.Value "128" + +new vtk:PolyDataToActor Box14 + set Box14.Colour "1 1 1" + +new wx:Slider Box15 + set Box15.In "100" + set Box15.Label "true" + set Box15.Max "100" + set Box15.ReactiveOnTrack "true" + set Box15.Title "Opacity 3D " + +new wx:LayoutLine Box17 + +new std:Div Box18 + set Box18.In2 "100" + +new std:MultipleInputs Box19 + +new vtk:UpdateRender Box20 + set Box20.Active "true" + +new vtk:MetaImageReader Box21 + +new wx:CheckBox Box22 + set Box22.In "false" + set Box22.Title "Picker" + +new creaVtk:PointPicker Box23 + set Box23.TypeEvent "2" + +new std:MathOperationVector Box24 + set Box24.Type "3" + +new std:MathOperationVector Box25 + set Box25.Type "23" + +new vtk:ImageVtkProperties Box26 + +new creaMaracasVisu:SetPosition Box28 + +new wx:LayoutLine Box29 + set Box29.Orientation "H" + +new wx:RadioButton Box30 + set Box30.In0 "1x" + set Box30.In1 "3x" + set Box30.In2 "6x" + set Box30.In3 "12x" + +new wx:LayoutLine Box31 + set Box31.Orientation "H" + +new creaMaracasVisu:SliderMinMax Box35 + set Box35.InMinShow "100" + set Box35.ShowActual "false" + +new std:ConcatStrings Box34 + +new std:ConcatStrings Box36 + +new std:ConcatStrings Box37 + +new std:ConcatStrings Box38 + set Box38.In1 "//davila//Test_01//Condition_01" + +new std:ReplaceCleanString Box39 + set Box39.Search "" + +new std:ReplaceCleanString Box40 + set Box40.Search "" + +new std:ConcatStrings Box41 + set Box41.In2 "/results/" + +new std:ConcatStrings Box42 + set Box42.In2 "/image.mha" + +new std:ReplaceCleanString Box44 + set Box44.Replace "00100_OriginalImages" + set Box44.Search "" + +new std:ConcatStrings Box45 + set Box45.In2 "/image.mha" + +new std:ReplaceCleanString Box46 + set Box46.Replace "00300_Filter" + set Box46.Search "" + +new vtk:vtkImageDataPointerRelay Box47 + +new vtk:MetaImageReader Box48 + +new vtk:ImageVtkProperties Box49 + +new std:GetVectorDoubleElement Box50 + set Box50.I "0" + +new std:GetVectorDoubleElement Box51 + set Box51.I "1" + +new std:ConcatStrings Box52 + set Box52.In1 "-1" + set Box52.In2 " " + set Box52.In4 " " + set Box52.In6 " " + +new std:ConcatStrings Box53 + set Box53.In1 "-1" + set Box53.In2 " " + set Box53.In4 " " + set Box53.In6 " " + +new std:StringSelect Box54 + set Box54.In0 "1" + set Box54.In1 "3" + set Box54.In2 "6" + set Box54.In3 "12" + +new std:ConcatStrings Box55 + set Box55.In1 "-1" + set Box55.In2 " " + set Box55.In4 " " + set Box55.In6 " " + +new std:Mul Box56 + set Box56.In1 "2" + +new wx:CommandButton Box58 + set Box58.Label "Save & Exit" + +new std:MultipleInputs Box59 + +new std:Exit Box60 + +new vtk:MetaImageWriter Box61 + set Box61.Compression "true" + +new wx:OutputText Box62 + set Box62.Title "Patient" + +new creaVtk:ImageThreshold Box63 + set Box63.InValue "255" + set Box63.OutValue "0" + +new creaMaracasVisu:ColorLayerImageView Box64 + set Box64.ColorBarPosition "-100 -100" + set Box64.Opacity "50" + set Box64.PlainOrGradientColor "true" + set Box64.TypeControlsInterface "2" + set Box64.WinTitle "Opacity Reference" + set Box64.lstBaseColor "0 0 0 1 0 0" + set Box64.lstGreyLevelBoundaries "0 128 256" + set Box64.lstTransparenceBoundaries "0" + +new wx:LayoutLine Box65 + +new std:ConcatStrings Box66 + set Box66.In2 ".final.mha" + +new vtk:MetaImageWriter Box67 + set Box67.Compression "true" + +new creaVtk:ImageThreshold Box68 + set Box68.InValue "255" + set Box68.Lower "127" + set Box68.OutValue "0" + set Box68.Upper "256" + + +connect Box02.Widget Box03.Widget2 + +connect Box02.BoxChange Box00.BoxExecute_ManualPaint_Model + +connect Box02.Point Box00.Point_ManualPaint_Model + +connect Box02.wxVtkBaseView2 Box00.wxvtkbaseview1 + +connect Box02.wxVtkBaseView3 Box00.wxvtkbaseview2 + +connect Box02.wxVtkBaseView4 Box00.wxvtkbaseview3 + +connect Box05.Out Box02.In + +connect Box03.Widget Box09.Widget1 + +connect Box05.Out Box00.Image_ManualPaint_Model + +connect Box13.Out Box14.In + +connect Box15.Out Box18.In1 + +connect Box17.Widget Box03.Widget1 + +connect Box18.Out Box14.Opacity + +connect Box15.BoxChange Box19.In1 + +connect Box19.BoxChange Box14.BoxExecute + +connect Box14.BoxChange Box20.BoxExecute + +connect Box02.Renderer1 Box14.Renderer + +connect Box02.Renderer1 Box20.Renderer + +connect Box13.BoxChange Box19.In4 + +connect Box02.BoxChange Box13.BoxExecute + +connect Box02.Renderer1 Box23.Renderer + +connect Box22.Out Box23.Active + +connect Box24.Out Box25.In0 + +connect Box23.Point Box24.In0 + +connect Box26.Spacing Box24.In1 + +connect Box05.Out Box26.In + +connect Box25.Out Box28.Point + +connect Box02.wxVtkBaseView1 Box28.wxVtkBaseView + +connect Box23.BoxChange Box28.BoxExecute + +connect Box22.Widget Box29.Widget4 + +connect Box15.Widget Box29.Widget3 + +connect Box30.Widget Box31.Widget1 + + + + +connect Box38.Out Box39.In + +connect Box36.Out Box39.Replace + +connect Box39.Out Box40.In + +connect Box37.Out Box40.Replace + +connect Box34.Out Box41.In1 + +connect Box40.Out Box41.In3 + +connect Box42.Out Box21.In + +connect Box21.Out Box05.In + +connect Box41.Out Box44.In + +connect Box44.Out Box42.In1 + +connect Box46.Out Box45.In1 + +connect Box41.Out Box46.In + +connect Box48.Out Box47.In + +connect Box45.Out Box48.In + +connect Box47.Out Box00.Image2_ManualPaint_Model + +connect Box47.Out Box13.In + +connect Box05.Out Box49.In + +connect Box49.MinMax Box50.In + +connect Box50.Out Box35.InMin + +connect Box49.MinMax Box51.In + +connect Box51.Out Box35.InMax + +connect Box35.OutEnd Box52.In3 + +connect Box35.OutEnd Box52.In5 + +connect Box35.OutEnd Box52.In7 + +connect Box52.Out Box00.MaxRange_ManualPaint_Model + +connect Box35.OutStart Box53.In3 + +connect Box35.OutStart Box53.In5 + +connect Box35.OutStart Box53.In7 + +connect Box53.Out Box00.MinRange_ManualPaint_Model + +connect Box51.Out Box35.InMaxShow + +connect Box30.Out Box54.In + +connect Box54.Out Box56.In2 + +connect Box56.Out Box55.In3 + +connect Box54.Out Box55.In5 + +connect Box54.Out Box55.In7 + +connect Box55.Out Box00.SizeDistance_ManualPaint_Model + +connect Box60.BoxChange Box59.In9 + +connect Box61.BoxChange Box59.In1 + +connect Box47.Out Box61.In + +connect Box45.Out Box61.Filename + +connect Box58.BoxChange Box59.BoxExecute + +connect Box42.Out Box62.In + +connect Box58.Widget Box17.Widget8 + +connect Box29.Widget Box17.Widget6 + +connect Box31.Widget Box17.Widget4 + +connect Box00.widgetOut Box17.Widget2 + +connect Box62.Widget Box17.Widget1 + +connect Box63.Out Box64.In + +connect Box35.Widget Box65.Widget1 + +connect Box64.Widget Box65.Widget3 + +connect Box65.Widget Box31.Widget4 + +connect Box35.OutEnd Box63.Upper + +connect Box35.OutStart Box63.Lower + +connect Box02.wxVtkBaseView2 Box64.WxVtkBaseView + +connect Box02.wxVtkBaseView3 Box64.WxVtkBaseView1 + +connect Box02.wxVtkBaseView4 Box64.WxVtkBaseView2 + +connect Box05.Out Box63.In + +connect Box35.BoxChange Box64.BoxExecute + +connect Box45.Out Box66.In1 + +connect Box66.Out Box67.Filename + +connect Box47.Out Box68.In + +connect Box67.BoxChange Box59.In3 + +connect Box68.Out Box67.In + + + +# Complex input ports +input BaseDir Box34.In1 " " +input CoreID Box36.In1 " " +input PatientID Box37.In1 " " +exec Box08 +exec Box09 diff --git a/appli/template_creaPatientsSystem/scripts/00500_Validate.bbg b/appli/template_creaPatientsSystem/scripts/00500_Validate.bbg new file mode 100644 index 0000000..f5b0c67 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00500_Validate.bbg @@ -0,0 +1,382 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00500_Validate.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +-79.627442:294.808491:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +40.798840:299.772356:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +-3.148596:299.252907:-900.000000 +FIN_COMPLEX_PORT +BOXES:31 +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +67.119441:61.238445:-900.000000 +130.839441:51.238445:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box03 +ISEXEC:FALSE +-8.472998:-249.201404:-900.000000 +30.607002:-259.201404:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box05 +ISEXEC:FALSE +32.524541:90.857008:-900.000000 +84.699541:80.857008:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box08 +ISEXEC:TRUE +-76.303689:-272.635744:-900.000000 +-35.703689:-282.635744:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box09 +ISEXEC:TRUE +-17.812273:-276.451816:-900.000000 +39.747727:-286.451816:-900.000000 +PORT +WinTitle:"00500_Validate.bbs" +FIN_BOX +BOX +vtk:MarchingCubes:Box13 +ISEXEC:FALSE +106.599203:7.680887:-900.000000 +148.399203:-2.319113:-900.000000 +PORT +Value:"128" +FIN_BOX +BOX +vtk:PolyDataToActor:Box14 +ISEXEC:FALSE +-69.929439:-85.914612:-900.000000 +-24.689439:-95.914612:-900.000000 +PORT +Colour:"1 1 1" +FIN_BOX +BOX +wx:LayoutLine:Box17 +ISEXEC:FALSE +-3.274561:-215.194423:-900.000000 +54.285439:-225.194423:-900.000000 +FIN_BOX +BOX +std:Div:Box18 +ISEXEC:FALSE +-173.357758:-27.494515:-900.000000 +-144.032758:-37.494515:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +std:MultipleInputs:Box19 +ISEXEC:FALSE +-53.846312:-27.558695:-900.000000 +-14.146312:-37.558695:-900.000000 +FIN_BOX +BOX +vtk:UpdateRender:Box20 +ISEXEC:FALSE +-65.111140:-116.742725:-900.000000 +-24.786140:-126.742725:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +vtk:MetaImageReader:Box21 +ISEXEC:FALSE +36.010584:108.036344:-900.000000 +80.685584:98.036344:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box34 +ISEXEC:FALSE +-87.643515:271.772107:-900.000000 +-47.918515:261.772107:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box36 +ISEXEC:FALSE +-11.078113:272.015220:-900.000000 +28.646887:262.015220:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box37 +ISEXEC:FALSE +37.723049:270.886964:-900.000000 +77.448049:260.886964:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box38 +ISEXEC:FALSE +-63.713513:254.658852:-900.000000 +-23.988513:244.658852:-900.000000 +PORT +In1:"//davila//Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceCleanString:Box39 +ISEXEC:FALSE +-40.159226:231.410125:-900.000000 +5.390774:221.410125:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceCleanString:Box40 +ISEXEC:FALSE +-19.835582:211.804224:-900.000000 +25.714418:201.804224:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box41 +ISEXEC:FALSE +-52.848925:192.313465:-900.000000 +-13.123925:182.313465:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box42 +ISEXEC:FALSE +21.614192:134.518601:-900.000000 +61.339192:124.518601:-900.000000 +PORT +In2:"/image.mha" +FIN_BOX +BOX +std:ReplaceCleanString:Box44 +ISEXEC:FALSE +23.625315:156.264616:-900.000000 +69.175315:146.264616:-900.000000 +PORT +Replace:"00100_OriginalImages" +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box45 +ISEXEC:FALSE +131.585916:142.131206:-900.000000 +171.310916:132.131206:-900.000000 +PORT +In2:"/image.mha" +FIN_BOX +BOX +std:ReplaceCleanString:Box46 +ISEXEC:FALSE +128.866010:161.984810:-900.000000 +174.416010:151.984810:-900.000000 +PORT +Replace:"00300_Filter" +PORT +Search:"" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box47 +ISEXEC:FALSE +126.258210:81.929630:-900.000000 +178.433210:71.929630:-900.000000 +FIN_BOX +BOX +vtk:MetaImageReader:Box48 +ISEXEC:FALSE +132.109767:96.743451:-900.000000 +176.784767:86.743451:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box58 +ISEXEC:FALSE +-300.368751:-154.428598:-900.000000 +-257.593751:-164.428598:-900.000000 +PORT +Label:"Validate & Exit" +FIN_BOX +BOX +std:MultipleInputs:Box59 +ISEXEC:FALSE +-284.659601:-247.708807:-900.000000 +-244.959601:-257.708807:-900.000000 +FIN_BOX +BOX +std:Exit:Box60 +ISEXEC:FALSE +-251.052988:-208.584370:-900.000000 +-221.477988:-218.584370:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box62 +ISEXEC:FALSE +-21.677942:-116.453860:-900.000000 +15.097058:-126.453860:-900.000000 +PORT +Title:"Patient" +FIN_BOX +BOX +std:ConcatStrings:Box66 +ISEXEC:FALSE +132.529543:121.572124:-900.000000 +172.254543:111.572124:-900.000000 +PORT +In2:".final.mha" +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box69 +ISEXEC:FALSE +-40.015379:14.560132:-900.000000 +29.864621:4.560132:-900.000000 +PORT +ColorBarPosition:"-100 -100" +PORT +TypeControlsInterface:"2" +PORT +lstTransparenceBoundaries:"0" +FIN_BOX +CONNECTIONS:42 +CONNECTION +Box02:Widget:Box03:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box09:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box03:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box14:Opacity +NumberOfControlPoints:0 +CONNECTION +Box19:BoxChange:Box14:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box20:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box14:Renderer +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box20:Renderer +NumberOfControlPoints:0 +CONNECTION +Box13:BoxChange:Box19:In4 +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box13:BoxExecute +NumberOfControlPoints:0 +CONNECTION +BaseDir:BaseDir:Box34:In1 +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box36:In1 +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box37:In1 +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box39:Replace +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box40:In +NumberOfControlPoints:0 +CONNECTION +Box37:Out:Box40:Replace +NumberOfControlPoints:0 +CONNECTION +Box34:Out:Box41:In1 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box41:In3 +NumberOfControlPoints:0 +CONNECTION +Box42:Out:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box41:Out:Box44:In +NumberOfControlPoints:0 +CONNECTION +Box44:Out:Box42:In1 +NumberOfControlPoints:0 +CONNECTION +Box46:Out:Box45:In1 +NumberOfControlPoints:0 +CONNECTION +Box41:Out:Box46:In +NumberOfControlPoints:0 +CONNECTION +Box48:Out:Box47:In +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box13:In +NumberOfControlPoints:0 +CONNECTION +Box60:BoxChange:Box59:In9 +NumberOfControlPoints:0 +CONNECTION +Box58:BoxChange:Box59:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box42:Out:Box62:In +NumberOfControlPoints:0 +CONNECTION +Box58:Widget:Box17:Widget8 +NumberOfControlPoints:0 +CONNECTION +Box62:Widget:Box17:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box66:In1 +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box48:In +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box69:In +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView2:Box69:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView3:Box69:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView4:Box69:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box69:Widget:Box17:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box69:OutOpacity:Box18:In1 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00500_Validate.bbs b/appli/template_creaPatientsSystem/scripts/00500_Validate.bbs new file mode 100644 index 0000000..815ad6d --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00500_Validate.bbs @@ -0,0 +1,194 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00500_Validate.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include vtk +include creaVtk +include std + +author "Author ??" +description "Description ??" +category "" + +new creaMaracasVisu:ViewerNV Box02 + +new wx:LayoutSplit Box03 + set Box03.Orientation "H" + +new vtk:vtkImageDataPointerRelay Box05 + +new creaVtk:OutputWindow Box08 + +new wx:LayoutLine Box09 + set Box09.WinTitle "00500_Validate.bbs" + +new vtk:MarchingCubes Box13 + set Box13.Value "128" + +new vtk:PolyDataToActor Box14 + set Box14.Colour "1 1 1" + +new wx:LayoutLine Box17 + +new std:Div Box18 + set Box18.In2 "100" + +new std:MultipleInputs Box19 + +new vtk:UpdateRender Box20 + set Box20.Active "true" + +new vtk:MetaImageReader Box21 + +new std:ConcatStrings Box34 + +new std:ConcatStrings Box36 + +new std:ConcatStrings Box37 + +new std:ConcatStrings Box38 + set Box38.In1 "//davila//Test_01//Condition_01" + +new std:ReplaceCleanString Box39 + set Box39.Search "" + +new std:ReplaceCleanString Box40 + set Box40.Search "" + +new std:ConcatStrings Box41 + set Box41.In2 "/results/" + +new std:ConcatStrings Box42 + set Box42.In2 "/image.mha" + +new std:ReplaceCleanString Box44 + set Box44.Replace "00100_OriginalImages" + set Box44.Search "" + +new std:ConcatStrings Box45 + set Box45.In2 "/image.mha" + +new std:ReplaceCleanString Box46 + set Box46.Replace "00300_Filter" + set Box46.Search "" + +new vtk:vtkImageDataPointerRelay Box47 + +new vtk:MetaImageReader Box48 + +new wx:CommandButton Box58 + set Box58.Label "Validate & Exit" + +new std:MultipleInputs Box59 + +new std:Exit Box60 + +new wx:OutputText Box62 + set Box62.Title "Patient" + +new std:ConcatStrings Box66 + set Box66.In2 ".final.mha" + +new creaMaracasVisu:ColorLayerImageView Box69 + set Box69.ColorBarPosition "-100 -100" + set Box69.TypeControlsInterface "2" + set Box69.lstTransparenceBoundaries "0" + + +connect Box02.Widget Box03.Widget2 + +connect Box05.Out Box02.In + +connect Box03.Widget Box09.Widget1 + +connect Box13.Out Box14.In + +connect Box17.Widget Box03.Widget1 + +connect Box18.Out Box14.Opacity + +connect Box19.BoxChange Box14.BoxExecute + +connect Box14.BoxChange Box20.BoxExecute + +connect Box02.Renderer1 Box14.Renderer + +connect Box02.Renderer1 Box20.Renderer + +connect Box13.BoxChange Box19.In4 + +connect Box02.BoxChange Box13.BoxExecute + + + + +connect Box38.Out Box39.In + +connect Box36.Out Box39.Replace + +connect Box39.Out Box40.In + +connect Box37.Out Box40.Replace + +connect Box34.Out Box41.In1 + +connect Box40.Out Box41.In3 + +connect Box42.Out Box21.In + +connect Box21.Out Box05.In + +connect Box41.Out Box44.In + +connect Box44.Out Box42.In1 + +connect Box46.Out Box45.In1 + +connect Box41.Out Box46.In + +connect Box48.Out Box47.In + +connect Box47.Out Box13.In + +connect Box60.BoxChange Box59.In9 + +connect Box58.BoxChange Box59.BoxExecute + +connect Box42.Out Box62.In + +connect Box58.Widget Box17.Widget8 + +connect Box62.Widget Box17.Widget1 + +connect Box45.Out Box66.In1 + +connect Box66.Out Box48.In + +connect Box47.Out Box69.In + +connect Box02.wxVtkBaseView2 Box69.WxVtkBaseView + +connect Box02.wxVtkBaseView3 Box69.WxVtkBaseView1 + +connect Box02.wxVtkBaseView4 Box69.WxVtkBaseView2 + +connect Box69.Widget Box17.Widget5 + +connect Box69.OutOpacity Box18.In1 + + + +# Complex input ports +input BaseDir Box34.In1 " " +input CoreID Box36.In1 " " +input PatientID Box37.In1 " " +exec Box08 +exec Box09 diff --git a/appli/template_creaPatientsSystem/scripts/00600_PushData.bbg b/appli/template_creaPatientsSystem/scripts/00600_PushData.bbg new file mode 100644 index 0000000..83a32c5 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00600_PushData.bbg @@ -0,0 +1,703 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00600_PushData.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +42.707306:427.144102:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +152.815995:426.816420:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +224.766549:426.938901:-900.000000 +FIN_COMPLEX_PORT +BOXES:54 +BOX +wx:CommandButton:Box01 +ISEXEC:FALSE +41.439752:49.678960:-900.000000 +84.214752:39.678960:-900.000000 +PORT +Label:"7. Push and Exit" +FIN_BOX +BOX +wx:OutputText:Box03 +ISEXEC:FALSE +-161.484464:46.041477:-900.000000 +-124.709464:36.041477:-900.000000 +PORT +Title:"Core" +FIN_BOX +BOX +creaVtk:OutputWindow:Box05 +ISEXEC:TRUE +-33.819548:-339.561016:-900.000000 +6.780452:-349.561016:-900.000000 +FIN_BOX +BOX +wx:LayoutCenter:Box06 +ISEXEC:FALSE +19.164529:-38.156105:-900.000000 +58.464529:-48.156105:-900.000000 +PORT +WinTitle:"With Proxy" +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:TRUE +31.528781:-342.223463:-900.000000 +89.088781:-352.223463:-900.000000 +PORT +WinDialog:"true" +PORT +WinHeight:"500" +PORT +WinTitle:"00600_PushData.bbs" +PORT +WinWidth:"800" +FIN_BOX +BOX +std:ExecSystemCommand:Box08 +ISEXEC:FALSE +295.116119:-227.942215:-900.000000 +343.416119:-237.942215:-900.000000 +FIN_BOX +BOX +std:Exit:Box09 +ISEXEC:FALSE +409.440179:-293.504183:-900.000000 +439.015179:-303.504183:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box11 +ISEXEC:FALSE +32.843940:389.935515:-900.000000 +68.918940:379.935515:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box12 +ISEXEC:FALSE +6.231283:-22.105122:-900.000000 +63.791283:-32.105122:-900.000000 +FIN_BOX +BOX +wx:InputText:Box13 +ISEXEC:FALSE +-62.490752:49.158950:-900.000000 +-26.490752:39.158950:-900.000000 +PORT +Title:"Proxy User" +FIN_BOX +BOX +wx:InputTextPassword:Box14 +ISEXEC:FALSE +-12.606235:49.298908:-900.000000 +31.493765:39.298908:-900.000000 +PORT +Title:"Proxy Passwword" +FIN_BOX +BOX +wx:LayoutTab:Box15 +ISEXEC:FALSE +7.496431:-126.475289:-900.000000 +65.056431:-136.475289:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box17 +ISEXEC:FALSE +272.816353:-11.407130:-900.000000 +315.591353:-21.407130:-900.000000 +PORT +Label:"7. Push and Exit" +FIN_BOX +BOX +wx:OutputText:Box18 +ISEXEC:FALSE +200.783818:9.190236:-900.000000 +237.558818:-0.809764:-900.000000 +FIN_BOX +BOX +wx:LayoutCenter:Box19 +ISEXEC:FALSE +268.957373:-46.390664:-900.000000 +308.257373:-56.390664:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box26 +ISEXEC:FALSE +212.163129:-66.030899:-900.000000 +269.723129:-76.030899:-900.000000 +PORT +WinTitle:"No Proxy" +FIN_BOX +BOX +std:ConcatStrings:Box27 +ISEXEC:FALSE +83.198444:-1.326259:-900.000000 +122.923444:-11.326259:-900.000000 +PORT +In1:" set https_proxy=https&&2P&&//" +PORT +In3:"&&2P&&" +PORT +In5:"@proxy2-hcl.chu-lyon.fr&&2P&&80" +PORT +In6:"&& " +FIN_BOX +BOX +std:ConcatStrings:Box30 +ISEXEC:FALSE +29.779996:-176.534800:-900.000000 +69.504996:-186.534800:-900.000000 +PORT +In1:"export GIRDER_API_KEY=DJn22j9xJUMjcHeWLanPXRrHTqRpXd20UXtKaB9S && " +PORT +In5:" girder-client " +PORT +In7:"--api-url https&&2P&&//myriad.creatis.insa-lyon.fr&&2P&&443/api/v1 " +FIN_BOX +BOX +std:ConcatStrings:Box32 +ISEXEC:FALSE +143.031668:0.031704:-900.000000 +182.756668:-9.968296:-900.000000 +PORT +In1:" upload " +PORT +In2:"XXXXX" +PORT +In3:" " +PORT +In5:" --reuse " +FIN_BOX +BOX +std:MagicBox:Box35 +ISEXEC:FALSE +220.901196:383.749161:-900.000000 +256.976196:373.749161:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box36 +ISEXEC:FALSE +35.894953:108.163365:-900.000000 +75.619953:98.163365:-900.000000 +PORT +Replace:"6187823d34933039d3c8edba" +PORT +Search:"Study_B" +FIN_BOX +BOX +std:ReplaceString:Box37 +ISEXEC:FALSE +33.266939:121.960028:-900.000000 +72.991939:111.960028:-900.000000 +PORT +Replace:"618e3d0b34933039d3c8ee34" +PORT +Search:"Study_A" +FIN_BOX +BOX +std:ReplaceString:Box39 +ISEXEC:FALSE +35.546918:92.099438:-900.000000 +75.271918:82.099438:-900.000000 +PORT +Replace:"6187824a34933039d3c8edbb" +PORT +Search:"Study_C" +FIN_BOX +BOX +std:MagicBox:Box40 +ISEXEC:FALSE +145.887074:388.130605:-900.000000 +181.962074:378.130605:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box45 +ISEXEC:FALSE +18.675384:144.194822:-900.000000 +58.400384:134.194822:-900.000000 +PORT +Replace:" " +PORT +Search:"/" +FIN_BOX +BOX +std:ReplaceString:Box46 +ISEXEC:FALSE +21.676285:159.936984:-900.000000 +61.401285:149.936984:-900.000000 +PORT +Replace:" " +PORT +Search:"\" +FIN_BOX +BOX +std:StringWriter:Box47 +ISEXEC:FALSE +359.317525:-245.699154:-900.000000 +401.477525:-255.699154:-900.000000 +PORT +In0:"Push" +FIN_BOX +BOX +std:ConcatStrings:Box48 +ISEXEC:FALSE +167.208540:100.094828:-900.000000 +206.933540:90.094828:-900.000000 +PORT +In2:"/Push.dat" +FIN_BOX +BOX +std:ConcatStrings:Box53 +ISEXEC:FALSE +281.322643:377.404931:-900.000000 +321.047643:367.404931:-900.000000 +PORT +In1:"//davila//Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceString:Box54 +ISEXEC:FALSE +270.722657:345.000289:-900.000000 +310.447657:335.000289:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box55 +ISEXEC:FALSE +258.918139:323.635136:-900.000000 +298.643139:313.635136:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box56 +ISEXEC:FALSE +210.701871:211.501310:-900.000000 +250.426871:201.501310:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +wx:OutputText:Box58 +ISEXEC:FALSE +-110.607181:45.987160:-900.000000 +-73.832181:35.987160:-900.000000 +PORT +Title:"Patient" +FIN_BOX +BOX +wx:OutputText:Box59 +ISEXEC:FALSE +218.721214:-10.696142:-900.000000 +255.496214:-20.696142:-900.000000 +PORT +Title:"Core" +FIN_BOX +BOX +wx:OutputText:Box60 +ISEXEC:FALSE +230.735425:-28.390051:-900.000000 +267.510425:-38.390051:-900.000000 +PORT +Title:"Patient" +FIN_BOX +BOX +std:ReplaceString:Box61 +ISEXEC:FALSE +-117.216473:154.491732:-900.000000 +-77.491473:144.491732:-900.000000 +PORT +Search:"/" +FIN_BOX +BOX +std:ReplaceString:Box62 +ISEXEC:FALSE +-52.729311:151.612620:-900.000000 +-13.004311:141.612620:-900.000000 +PORT +Search:"/" +FIN_BOX +BOX +std:MultipleInputs:Box63 +ISEXEC:FALSE +345.217236:-324.236732:-900.000000 +384.917236:-334.236732:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box67 +ISEXEC:FALSE +371.896257:262.524323:-900.000000 +411.621257:252.524323:-900.000000 +PORT +In2:"/.tmp/" +FIN_BOX +BOX +std:ExecSystemCommand:Box69 +ISEXEC:FALSE +392.992554:-271.544834:-900.000000 +441.292554:-281.544834:-900.000000 +FIN_BOX +BOX +std:Configuration:Box74 +ISEXEC:FALSE +356.330583:-77.742522:-900.000000 +395.755583:-87.742522:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box76 +ISEXEC:FALSE +32.421321:-156.494151:-900.000000 +74.581321:-166.494151:-900.000000 +PORT +In0:" " +FIN_BOX +BOX +std:MultipleInputs:Box77 +ISEXEC:FALSE +99.386450:-221.466292:-900.000000 +139.086450:-231.466292:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box78 +ISEXEC:FALSE +311.362034:295.598605:-900.000000 +351.087034:285.598605:-900.000000 +PORT +Replace:"00300_Filter" +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box79 +ISEXEC:FALSE +193.046715:292.385528:-900.000000 +232.771715:282.385528:-900.000000 +PORT +Replace:"00100_OriginalImages" +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box80 +ISEXEC:FALSE +242.172004:291.685449:-900.000000 +281.897004:281.685449:-900.000000 +PORT +Replace:"00200_InitialParameters" +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box91 +ISEXEC:FALSE +160.084289:211.398494:-900.000000 +199.809289:201.398494:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box92 +ISEXEC:FALSE +112.559447:211.811136:-900.000000 +152.284447:201.811136:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box93 +ISEXEC:FALSE +117.184941:100.577324:-900.000000 +156.909941:90.577324:-900.000000 +PORT +In3:"/*" +FIN_BOX +BOX +std:StringSelect:Box94 +ISEXEC:FALSE +398.198732:-139.945967:-900.000000 +440.358732:-149.945967:-900.000000 +PORT +In0:"rm -rf " +PORT +In1:"del " +PORT +In2:"rm -rf " +FIN_BOX +BOX +std:ConcatStrings:Box95 +ISEXEC:FALSE +458.783385:-192.617792:-900.000000 +498.508385:-202.617792:-900.000000 +PORT +In2:" " +FIN_BOX +BOX +std:ExecSystemCommand:Box97 +ISEXEC:FALSE +235.471171:-198.670598:-900.000000 +283.771171:-208.670598:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box98 +ISEXEC:FALSE +206.283375:-154.105974:-900.000000 +248.443375:-164.105974:-900.000000 +PORT +In0:"source 00610_CreateTmp.sh" +PORT +In1:"00610_CreateTmp.bat" +PORT +In2:"source 00610_CreateTmp.sh" +FIN_BOX +BOX +std:ConcatStrings:Box99 +ISEXEC:FALSE +243.820262:-178.824074:-900.000000 +283.545262:-188.824074:-900.000000 +PORT +In2:" " +PORT +In4:" " +PORT +In6:" " +FIN_BOX +CONNECTIONS:75 +CONNECTION +Box12:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box26:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Out:Box27:In4 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box27:In2 +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box08:In +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box30:In8 +NumberOfControlPoints:0 +CONNECTION +Box37:Out:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box46:Out:Box45:In +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box37:In +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box46:In +NumberOfControlPoints:0 +CONNECTION +Box48:Out:Box47:FileName +NumberOfControlPoints:0 +CONNECTION +BaseDir:BaseDir:Box11:In +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box40:In +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box54:Replace +NumberOfControlPoints:0 +CONNECTION +Box53:Out:Box54:In +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box55:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box56:In1 +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box12:Widget8 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box12:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box12:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box12:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box58:Widget:Box12:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box19:Widget:Box26:Widget8 +NumberOfControlPoints:0 +CONNECTION +Box60:Widget:Box26:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box59:Widget:Box26:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box61:In +NumberOfControlPoints:0 +CONNECTION +Box61:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box61:Out:Box59:In +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box62:In +NumberOfControlPoints:0 +CONNECTION +Box62:Out:Box60:In +NumberOfControlPoints:0 +CONNECTION +Box62:Out:Box58:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box32:In2 +NumberOfControlPoints:0 +CONNECTION +Box08:BoxChange:Box63:In3 +NumberOfControlPoints:0 +CONNECTION +Box47:BoxChange:Box63:In5 +NumberOfControlPoints:0 +CONNECTION +Box09:BoxChange:Box63:In9 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box67:In1 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box19:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box69:BoxChange:Box63:In8 +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box55:Replace +NumberOfControlPoints:0 +CONNECTION +Box15:Selection:Box76:In +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box76:In1 +NumberOfControlPoints:0 +CONNECTION +Box76:Out:Box30:In2 +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box77:In1 +NumberOfControlPoints:0 +CONNECTION +Box17:BoxChange:Box77:In2 +NumberOfControlPoints:0 +CONNECTION +Box77:BoxChange:Box63:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box55:Out:Box78:In +NumberOfControlPoints:0 +CONNECTION +Box55:Out:Box79:In +NumberOfControlPoints:0 +CONNECTION +Box55:Out:Box80:In +NumberOfControlPoints:0 +CONNECTION +Box78:Out:Box56:In3 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box48:In1 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box92:In1 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box91:In1 +NumberOfControlPoints:0 +CONNECTION +Box79:Out:Box92:In3 +NumberOfControlPoints:0 +CONNECTION +Box80:Out:Box91:In3 +NumberOfControlPoints:0 +CONNECTION +Box93:Out:Box32:In4 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box93:In1 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box93:In2 +NumberOfControlPoints:0 +CONNECTION +Box74:SystemType:Box94:In +NumberOfControlPoints:0 +CONNECTION +Box94:Out:Box95:In1 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box95:In3 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box95:In4 +NumberOfControlPoints:0 +CONNECTION +Box95:Out:Box69:In +NumberOfControlPoints:0 +CONNECTION +Box97:BoxChange:Box63:In2 +NumberOfControlPoints:0 +CONNECTION +Box74:SystemType:Box98:In +NumberOfControlPoints:0 +CONNECTION +Box98:Out:Box99:In1 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box99:In3 +NumberOfControlPoints:0 +CONNECTION +Box40:Out:Box99:In5 +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box99:In7 +NumberOfControlPoints:0 +CONNECTION +Box99:Out:Box97:In +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00600_PushData.bbs b/appli/template_creaPatientsSystem/scripts/00600_PushData.bbs new file mode 100644 index 0000000..d9d6673 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00600_PushData.bbs @@ -0,0 +1,346 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00600_PushData.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wx +include creaVtk +include std + +author "Author ??" +description "Description ??" +category "" + +new wx:CommandButton Box01 + set Box01.Label "7. Push and Exit" + +new wx:OutputText Box03 + set Box03.Title "Core" + +new creaVtk:OutputWindow Box05 + +new wx:LayoutCenter Box06 + set Box06.WinTitle "With Proxy" + +new wx:LayoutLine Box07 + set Box07.WinDialog "true" + set Box07.WinHeight "500" + set Box07.WinTitle "00600_PushData.bbs" + set Box07.WinWidth "800" + +new std:ExecSystemCommand Box08 + +new std:Exit Box09 + +new std:MagicBox Box11 + +new wx:LayoutLine Box12 + +new wx:InputText Box13 + set Box13.Title "Proxy User" + +new wx:InputTextPassword Box14 + set Box14.Title "Proxy Passwword" + +new wx:LayoutTab Box15 + +new wx:CommandButton Box17 + set Box17.Label "7. Push and Exit" + +new wx:OutputText Box18 + +new wx:LayoutCenter Box19 + +new wx:LayoutLine Box26 + set Box26.WinTitle "No Proxy" + +new std:ConcatStrings Box27 + set Box27.In1 " set https_proxy=https://" + set Box27.In3 ":" + set Box27.In5 "@proxy2-hcl.chu-lyon.fr:80" + set Box27.In6 "&& " + +new std:ConcatStrings Box30 + set Box30.In1 "export GIRDER_API_KEY=DJn22j9xJUMjcHeWLanPXRrHTqRpXd20UXtKaB9S && " + set Box30.In5 " girder-client " + set Box30.In7 "--api-url https://myriad.creatis.insa-lyon.fr:443/api/v1 " + +new std:ConcatStrings Box32 + set Box32.In1 " upload " + set Box32.In2 "XXXXX" + set Box32.In3 " " + set Box32.In5 " --reuse " + +new std:MagicBox Box35 + +new std:ReplaceString Box36 + set Box36.Replace "6187823d34933039d3c8edba" + set Box36.Search "Study_B" + +new std:ReplaceString Box37 + set Box37.Replace "618e3d0b34933039d3c8ee34" + set Box37.Search "Study_A" + +new std:ReplaceString Box39 + set Box39.Replace "6187824a34933039d3c8edbb" + set Box39.Search "Study_C" + +new std:MagicBox Box40 + +new std:ReplaceString Box45 + set Box45.Replace " " + set Box45.Search "/" + +new std:ReplaceString Box46 + set Box46.Replace " " + set Box46.Search "\" + +new std:StringWriter Box47 + set Box47.In0 "Push" + +new std:ConcatStrings Box48 + set Box48.In2 "/Push.dat" + +new std:ConcatStrings Box53 + set Box53.In1 "//davila//Test_01//Condition_01" + +new std:ReplaceString Box54 + set Box54.Search "" + +new std:ReplaceString Box55 + set Box55.Search "" + +new std:ConcatStrings Box56 + set Box56.In2 "/results/" + +new wx:OutputText Box58 + set Box58.Title "Patient" + +new wx:OutputText Box59 + set Box59.Title "Core" + +new wx:OutputText Box60 + set Box60.Title "Patient" + +new std:ReplaceString Box61 + set Box61.Search "/" + +new std:ReplaceString Box62 + set Box62.Search "/" + +new std:MultipleInputs Box63 + +new std:ConcatStrings Box67 + set Box67.In2 "/.tmp/" + +new std:ExecSystemCommand Box69 + +new std:Configuration Box74 + +new std:StringSelect Box76 + set Box76.In0 " " + +new std:MultipleInputs Box77 + +new std:ReplaceString Box78 + set Box78.Replace "00300_Filter" + set Box78.Search "" + +new std:ReplaceString Box79 + set Box79.Replace "00100_OriginalImages" + set Box79.Search "" + +new std:ReplaceString Box80 + set Box80.Replace "00200_InitialParameters" + set Box80.Search "" + +new std:ConcatStrings Box91 + set Box91.In2 "/results/" + +new std:ConcatStrings Box92 + set Box92.In2 "/results/" + +new std:ConcatStrings Box93 + set Box93.In3 "/*" + +new std:StringSelect Box94 + set Box94.In0 "rm -rf " + set Box94.In1 "del " + set Box94.In2 "rm -rf " + +new std:ConcatStrings Box95 + set Box95.In2 " " + +new std:ExecSystemCommand Box97 + +new std:StringSelect Box98 + set Box98.In0 "source 00610_CreateTmp.sh" + set Box98.In1 "00610_CreateTmp.bat" + set Box98.In2 "source 00610_CreateTmp.sh" + +new std:ConcatStrings Box99 + set Box99.In2 " " + set Box99.In4 " " + set Box99.In6 " " + + +connect Box12.Widget Box06.Widget2 + +connect Box15.Widget Box07.Widget1 + +connect Box18.Widget Box26.Widget1 + +connect Box14.Out Box27.In4 + +connect Box13.Out Box27.In2 + +connect Box30.Out Box08.In + +connect Box32.Out Box30.In8 + +connect Box37.Out Box36.In + +connect Box36.Out Box39.In + +connect Box46.Out Box45.In + +connect Box45.Out Box37.In + +connect Box40.Out Box46.In + +connect Box48.Out Box47.FileName + + + + +connect Box40.Out Box54.Replace + +connect Box53.Out Box54.In + +connect Box54.Out Box55.In + +connect Box11.Out Box56.In1 + +connect Box01.Widget Box12.Widget8 + +connect Box14.Widget Box12.Widget6 + +connect Box13.Widget Box12.Widget4 + +connect Box03.Widget Box12.Widget1 + +connect Box58.Widget Box12.Widget2 + +connect Box19.Widget Box26.Widget8 + +connect Box60.Widget Box26.Widget5 + +connect Box59.Widget Box26.Widget3 + +connect Box40.Out Box61.In + +connect Box61.Out Box03.In + +connect Box61.Out Box59.In + +connect Box35.Out Box62.In + +connect Box62.Out Box60.In + +connect Box62.Out Box58.In + +connect Box39.Out Box32.In2 + +connect Box08.BoxChange Box63.In3 + +connect Box47.BoxChange Box63.In5 + +connect Box09.BoxChange Box63.In9 + +connect Box11.Out Box67.In1 + +connect Box17.Widget Box19.Widget2 + +connect Box69.BoxChange Box63.In8 + +connect Box35.Out Box55.Replace + +connect Box15.Selection Box76.In + +connect Box27.Out Box76.In1 + +connect Box76.Out Box30.In2 + +connect Box26.Widget Box15.Widget1 + +connect Box06.Widget Box15.Widget2 + +connect Box01.BoxChange Box77.In1 + +connect Box17.BoxChange Box77.In2 + +connect Box77.BoxChange Box63.BoxExecute + +connect Box55.Out Box78.In + +connect Box55.Out Box79.In + +connect Box55.Out Box80.In + +connect Box78.Out Box56.In3 + +connect Box56.Out Box48.In1 + +connect Box56.Out Box18.In + +connect Box11.Out Box92.In1 + +connect Box11.Out Box91.In1 + +connect Box79.Out Box92.In3 + +connect Box80.Out Box91.In3 + +connect Box93.Out Box32.In4 + +connect Box67.Out Box93.In1 + +connect Box40.Out Box93.In2 + +connect Box74.SystemType Box94.In + +connect Box94.Out Box95.In1 + +connect Box67.Out Box95.In3 + +connect Box40.Out Box95.In4 + +connect Box95.Out Box69.In + +connect Box97.BoxChange Box63.In2 + +connect Box74.SystemType Box98.In + +connect Box98.Out Box99.In1 + +connect Box11.Out Box99.In3 + +connect Box40.Out Box99.In5 + +connect Box35.Out Box99.In7 + +connect Box99.Out Box97.In + + + +# Complex input ports +input BaseDir Box11.In " " +input CoreID Box40.In " " +input PatientID Box35.In " " +exec Box05 +exec Box07 diff --git a/appli/template_creaPatientsSystem/scripts/00610_CreateTMP.sh b/appli/template_creaPatientsSystem/scripts/00610_CreateTMP.sh new file mode 100644 index 0000000..fb6e713 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00610_CreateTMP.sh @@ -0,0 +1,23 @@ +BASEDIR=$1 +CORE=$2 +PATIENT=$3 + +ORIGINALIMAGES=$CORE/davila/00100_OriginalImages/Test_01/$PATIENT/Condition_01 +INITIALPARAMETERS=$CORE/davila/00200_InitialParameters/Test_01/$PATIENT/Condition_01 +FILTER=$CORE/davila/00300_Filter/Test_01/$PATIENT/Condition_01 + +ORIGINALIMAGESDIR=$BASEDIR/results/$ORIGINALIMAGES +INITIALPARAMETERSDIR=$BASEDIR/results/$INITIALPARAMETERS +FILTERDIR=$BASEDIR/results/$FILTER + +ORIGINALIMAGESDIRTMP=$BASEDIR/.tmp/$ORIGINALIMAGES +INITIALPARAMETERSDIRTMP=$BASEDIR/.tmp/$INITIALPARAMETERS +FILTERDIRTMP=$BASEDIR/.tmp/$FILTER + +mkdir -p $ORIGINALIMAGESDIRTMP +mkdir -p $INITIALPARAMETERSDIRTMP +mkdir -p $FILTERDIRTMP + +cp -rf $ORIGINALIMAGESDIR/* $ORIGINALIMAGESDIRTMP/. +cp -rf $INITIALPARAMETERSDIR/* $INITIALPARAMETERSDIRTMP/. +cp -rf $FILTERDIR/* $FILTERDIRTMP/. diff --git a/appli/template_creaPatientsSystem/scripts/Comments.bbg b/appli/template_creaPatientsSystem/scripts/Comments.bbg new file mode 100644 index 0000000..306e8cc --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/Comments.bbg @@ -0,0 +1,238 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/Comments.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +18.679620:45.363699:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +177.938591:45.442451:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +138.987918:42.249773:-900.000000 +FIN_COMPLEX_PORT +BOXES:19 +BOX +std:ConcatStrings:Box15 +ISEXEC:FALSE +4.990157:13.861464:-900.000000 +44.715157:3.861464:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box07 +ISEXEC:FALSE +17.347510:-67.098781:-900.000000 +57.072510:-77.098781:-900.000000 +PORT +In2:"/Comments.txt" +FIN_BOX +BOX +wx:LayoutTab:Box31 +ISEXEC:TRUE +-23.100386:-221.417856:-900.000000 +34.459614:-231.417856:-900.000000 +PORT +WinHeight:"500" +PORT +WinTitle:"Comments.bbs" +FIN_BOX +BOX +wx:LayoutLine:Box32 +ISEXEC:FALSE +-7.449319:-199.202559:-900.000000 +50.110681:-209.202559:-900.000000 +FIN_BOX +BOX +wx:InputText:Box33 +ISEXEC:FALSE +-33.502878:-140.093289:-900.000000 +2.497122:-150.093289:-900.000000 +PORT +Title:"Comment" +FIN_BOX +BOX +wx:CommandButton:Box34 +ISEXEC:FALSE +79.180309:-123.999177:-900.000000 +121.955309:-133.999177:-900.000000 +PORT +Label:"Save" +FIN_BOX +BOX +std:ReadLinesString:Box11 +ISEXEC:FALSE +-33.019832:-113.965106:-900.000000 +8.380168:-123.965106:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box18 +ISEXEC:FALSE +12.895088:-84.746325:-900.000000 +52.620088:-94.746325:-900.000000 +PORT +Replace:"/" +PORT +Search:"\" +FIN_BOX +BOX +std:StringWriter:Box20 +ISEXEC:FALSE +47.203903:-158.181142:-900.000000 +89.363903:-168.181142:-900.000000 +FIN_BOX +BOX +std:Exit:Box21 +ISEXEC:FALSE +177.837189:-214.495947:-900.000000 +207.412189:-224.495947:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box24 +ISEXEC:FALSE +132.244164:-125.160045:-900.000000 +175.019164:-135.160045:-900.000000 +PORT +Label:"Exit" +FIN_BOX +BOX +wx:LayoutCenter:Box25 +ISEXEC:FALSE +99.595548:-181.792849:-900.000000 +138.895548:-191.792849:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box26 +ISEXEC:FALSE +107.119572:-161.677014:-900.000000 +164.679572:-171.677014:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box27 +ISEXEC:FALSE +80.920150:-50.308706:-900.000000 +120.645150:-60.308706:-900.000000 +PORT +In1:"Patient&&2P&&" +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box17 +ISEXEC:FALSE +69.919650:15.005587:-900.000000 +109.644650:5.005587:-900.000000 +PORT +In1:"//davila/00300_Filter/Test_01//Condition_01" +FIN_BOX +BOX +std:ConcatStrings:Box19 +ISEXEC:FALSE +169.299206:17.046693:-900.000000 +209.024206:7.046693:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box22 +ISEXEC:FALSE +126.935561:15.123637:-900.000000 +166.660561:5.123637:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box23 +ISEXEC:FALSE +95.141806:-7.130314:-900.000000 +140.691806:-17.130314:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceCleanString:Box28 +ISEXEC:FALSE +128.143874:-25.003725:-900.000000 +173.693874:-35.003725:-900.000000 +PORT +Search:"" +FIN_BOX +CONNECTIONS:24 +CONNECTION +Box32:Widget:Box31:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box33:Widget:Box32:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box11:FileName +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box20:FileName +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box20:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box20:In0 +NumberOfControlPoints:0 +CONNECTION +Box24:BoxChange:Box21:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box24:Widget:Box26:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box34:Widget:Box26:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box25:Widget:Box32:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box25:Widget2 +NumberOfControlPoints:0 +CONNECTION +BaseDir:BaseDir:Box15:In1 +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box27:In1 +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box32:WinTitle +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box19:In1 +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box22:In1 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box23:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box23:Replace +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box28:In +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box07:In1 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box28:Replace +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box27:In3 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/Comments.bbs b/appli/template_creaPatientsSystem/scripts/Comments.bbs new file mode 100644 index 0000000..fecc573 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/Comments.bbs @@ -0,0 +1,121 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/Comments.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include std +include wx + +author "Author ??" +description "Description ??" +category "" + +new std:ConcatStrings Box15 + +new std:ConcatStrings Box07 + set Box07.In2 "/Comments.txt" + +new wx:LayoutTab Box31 + set Box31.WinHeight "500" + set Box31.WinTitle "Comments.bbs" + +new wx:LayoutLine Box32 + +new wx:InputText Box33 + set Box33.Title "Comment" + +new wx:CommandButton Box34 + set Box34.Label "Save" + +new std:ReadLinesString Box11 + +new std:ReplaceString Box18 + set Box18.Replace "/" + set Box18.Search "\" + +new std:StringWriter Box20 + +new std:Exit Box21 + +new wx:CommandButton Box24 + set Box24.Label "Exit" + +new wx:LayoutCenter Box25 + +new wx:LayoutLine Box26 + +new std:ConcatStrings Box27 + set Box27.In1 "Patient:" + set Box27.In2 "/results/" + +new std:ConcatStrings Box17 + set Box17.In1 "//davila/00300_Filter/Test_01//Condition_01" + +new std:ConcatStrings Box19 + +new std:ConcatStrings Box22 + +new std:ReplaceCleanString Box23 + set Box23.Search "" + +new std:ReplaceCleanString Box28 + set Box28.Search "" + + +connect Box32.Widget Box31.Widget1 + +connect Box33.Widget Box32.Widget2 + +connect Box11.Out Box33.In + +connect Box07.Out Box18.In + +connect Box18.Out Box11.FileName + +connect Box18.Out Box20.FileName + +connect Box34.BoxChange Box20.BoxExecute + +connect Box33.Out Box20.In0 + +connect Box24.BoxChange Box21.BoxExecute + +connect Box24.Widget Box26.Widget2 + +connect Box34.Widget Box26.Widget1 + +connect Box25.Widget Box32.Widget3 + +connect Box26.Widget Box25.Widget2 + + +connect Box15.Out Box27.In1 + +connect Box27.Out Box32.WinTitle + + + +connect Box17.Out Box23.In + +connect Box22.Out Box23.Replace + +connect Box23.Out Box28.In + +connect Box27.Out Box07.In1 + +connect Box19.Out Box28.Replace + +connect Box28.Out Box27.In3 + + + +# Complex input ports +input BaseDir Box15.In1 " " +input PatientID Box19.In1 " " +input CoreID Box22.In1 " " +exec Box31 diff --git a/appli/template_creaPatientsSystem/scripts/Report.bbg b/appli/template_creaPatientsSystem/scripts/Report.bbg new file mode 100644 index 0000000..6f98bae --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/Report.bbg @@ -0,0 +1,474 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/Report.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:2 +COMPLEX_PORT +BaseDir +-52.020195:192.801978:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +24.094628:190.118560:-900.000000 +FIN_COMPLEX_PORT +BOXES:33 +BOX +wx:LayoutSplit:Box02 +ISEXEC:TRUE +209.188267:-180.351716:-900.000000 +248.268267:-190.351716:-900.000000 +PORT +Proportion:"90" +PORT +WinWidth:"1000" +FIN_BOX +BOX +std:MagicBox:Box03 +ISEXEC:FALSE +-65.709740:118.613442:-900.000000 +-29.634740:108.613442:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box04 +ISEXEC:FALSE +-73.700382:14.219829:-900.000000 +-36.925382:4.219829:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box05 +ISEXEC:FALSE +346.265988:126.758711:-900.000000 +389.040988:116.758711:-900.000000 +PORT +Label:"Refresh" +FIN_BOX +BOX +wx:LayoutLine:Box06 +ISEXEC:FALSE +272.602574:-148.877054:-900.000000 +330.162574:-158.877054:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box08 +ISEXEC:FALSE +364.651918:41.210239:-900.000000 +422.211918:31.210239:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:OutputText:Box09 +ISEXEC:FALSE +315.761868:141.293394:-900.000000 +352.536868:131.293394:-900.000000 +FIN_BOX +BOX +wx:CommandButton:Box10 +ISEXEC:FALSE +441.090178:92.243944:-900.000000 +483.865178:82.243944:-900.000000 +PORT +Label:"Exit" +FIN_BOX +BOX +wx:OutputText:Box11 +ISEXEC:FALSE +390.276635:108.916461:-900.000000 +427.051635:98.916461:-900.000000 +FIN_BOX +BOX +std:Exit:Box12 +ISEXEC:FALSE +448.195436:40.640417:-900.000000 +477.770436:30.640417:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box13 +ISEXEC:FALSE +-78.505725:68.746123:-900.000000 +-38.780725:58.746123:-900.000000 +PORT +In2:"/results" +FIN_BOX +BOX +wx:OutputText:Box14 +ISEXEC:FALSE +466.882353:80.768313:-900.000000 +503.657353:70.768313:-900.000000 +FIN_BOX +BOX +creaMiniTools:CreateReport01:Box15 +ISEXEC:FALSE +108.914229:-103.606899:-900.000000 +152.074229:-113.606899:-900.000000 +PORT +LstPatientsID:"P01 P02 P03" +PORT +LstTitles1:"+ Step01 Step02 Step03 Step04 Step05 Step06 General Scientific Informatic" +PORT +LstTitles2:"Patient Insert_Date InitValues Filter Correction Validation PushDB Comment Comment Comment" +FIN_BOX +BOX +wx:ListCtrl:Box16 +ISEXEC:FALSE +-183.493764:-8.251419:-900.000000 +-119.773764:-18.251419:-900.000000 +PORT +Column00:" Patient _ P1 _ _ _ P2 _ _ _ P3 _ _ _ P4 _ _ _ " +PORT +Column01:"Initial_point _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " +PORT +Column02:"Segmentaiton _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " +PORT +Column03:"Validateion _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " +PORT +Column04:"Correction _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " +PORT +Column05:"Scientific _ Coment_1 _ _ _ Coment_AAAA _ _ _ Comment_BBBB _ _ _ Coment_CCC _ _ _ " +PORT +Titles:"_ Step1 Step2 Step3 Comments Comments" +FIN_BOX +BOX +wx:ListCtrl:Box17 +ISEXEC:FALSE +88.433796:-134.050787:-900.000000 +152.153796:-144.050787:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box18 +ISEXEC:FALSE +-8.791283:80.261158:-900.000000 +30.933717:70.261158:-900.000000 +PORT +In1:"//davila//Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceString:Box20 +ISEXEC:FALSE +-5.372451:56.817737:-900.000000 +34.352549:46.817737:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:MagicBox:Box21 +ISEXEC:FALSE +9.103886:114.464335:-900.000000 +45.178886:104.464335:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box22 +ISEXEC:FALSE +-9.011234:35.628948:-900.000000 +30.713766:25.628948:-900.000000 +PORT +Replace:"00100_OriginalImages" +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box23 +ISEXEC:FALSE +37.851020:35.929962:-900.000000 +77.576020:25.929962:-900.000000 +PORT +Replace:"00200_InitialParameters" +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceString:Box24 +ISEXEC:FALSE +87.220417:37.663629:-900.000000 +126.945417:27.663629:-900.000000 +PORT +Replace:"00300_Filter" +PORT +Search:"" +FIN_BOX +BOX +std:ConcatStrings:Box25 +ISEXEC:FALSE +-8.724799:13.002027:-900.000000 +31.000201:3.002027:-900.000000 +PORT +In3:"/Step001.txt " +FIN_BOX +BOX +std:ConcatStrings:Box26 +ISEXEC:FALSE +-76.772058:40.035902:-900.000000 +-37.047058:30.035902:-900.000000 +PORT +In2:"/results" +FIN_BOX +BOX +std:ConcatStrings:Box27 +ISEXEC:FALSE +41.002762:11.870388:-900.000000 +80.727762:1.870388:-900.000000 +PORT +In3:"/Step002.txt " +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +87.865016:10.738748:-900.000000 +127.590016:0.738748:-900.000000 +PORT +In3:"/Step03.txt " +FIN_BOX +BOX +std:ConcatStrings:Box29 +ISEXEC:FALSE +9.842547:-65.134740:-900.000000 +49.567547:-75.134740:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box30 +ISEXEC:FALSE +139.741557:10.323435:-900.000000 +179.466557:0.323435:-900.000000 +PORT +In3:"/Comments_General.txt " +FIN_BOX +BOX +std:ConcatStrings:Box31 +ISEXEC:FALSE +184.454830:10.982612:-900.000000 +224.179830:0.982612:-900.000000 +PORT +In3:"/Comments_Informatic.txt " +FIN_BOX +BOX +std:ConcatStrings:Box32 +ISEXEC:FALSE +234.898718:12.358116:-900.000000 +274.623718:2.358116:-900.000000 +PORT +In3:"/Comments_Scientific.txt " +FIN_BOX +BOX +std:ConcatStrings:Box33 +ISEXEC:FALSE +175.256881:-19.346976:-900.000000 +214.981881:-29.346976:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box34 +ISEXEC:FALSE +91.031336:-13.315348:-900.000000 +130.756336:-23.315348:-900.000000 +PORT +In3:"/Step04.txt " +FIN_BOX +BOX +std:ConcatStrings:Box35 +ISEXEC:FALSE +98.853781:-25.908216:-900.000000 +138.578781:-35.908216:-900.000000 +PORT +In3:"/Step05.txt " +FIN_BOX +BOX +std:ConcatStrings:Box36 +ISEXEC:FALSE +105.959900:-41.724555:-900.000000 +145.684900:-51.724555:-900.000000 +PORT +In3:"/Step06.txt " +FIN_BOX +CONNECTIONS:62 +CONNECTION +BaseDir:BaseDir:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box06:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box02:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box08:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box08:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box08:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box10:BoxChange:Box12:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box13:In1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box08:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box02:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box15:LstTitles:Box17:Titles +NumberOfControlPoints:0 +CONNECTION +Box15:Out00:Box17:Column00 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box20:In +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box20:Replace +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box23:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box25:In1 +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box25:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box26:In1 +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box26:In3 +NumberOfControlPoints:0 +CONNECTION +Box26:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box27:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box27:In1 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box28:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box28:In1 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box29:In1 +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box29:In2 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box29:In3 +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box15:LstStepsPath +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box30:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box30:In1 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box31:In1 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box31:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box32:In1 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box32:In2 +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box33:In1 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box33:In2 +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box33:In3 +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box15:LstCommentsPath +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box34:In1 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box34:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box35:In1 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box35:In2 +NumberOfControlPoints:0 +CONNECTION +Box34:Out:Box29:In4 +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box29:In5 +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box29:In6 +NumberOfControlPoints:0 +CONNECTION +Box15:Out01:Box17:Column01 +NumberOfControlPoints:0 +CONNECTION +Box15:Out02:Box17:Column02 +NumberOfControlPoints:0 +CONNECTION +Box15:Out03:Box17:Column03 +NumberOfControlPoints:0 +CONNECTION +Box15:Out04:Box17:Column04 +NumberOfControlPoints:0 +CONNECTION +Box15:Out05:Box17:Column05 +NumberOfControlPoints:0 +CONNECTION +Box15:Out06:Box17:Column06 +NumberOfControlPoints:0 +CONNECTION +Box15:Out07:Box17:Column07 +NumberOfControlPoints:0 +CONNECTION +Box15:Out08:Box17:Column08 +NumberOfControlPoints:0 +CONNECTION +Box15:Out09:Box17:Column09 +NumberOfControlPoints:0 +CONNECTION +Box15:Out10:Box17:Column10 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box36:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box36:In1 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/Report.bbs b/appli/template_creaPatientsSystem/scripts/Report.bbs new file mode 100644 index 0000000..ef7e5ce --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/Report.bbs @@ -0,0 +1,247 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/Report.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wx +include std +include creaMiniTools + +author "Author ??" +description "Description ??" +category "" + +new wx:LayoutSplit Box02 + set Box02.Proportion "90" + set Box02.WinWidth "1000" + +new std:MagicBox Box03 + +new wx:OutputText Box04 + +new wx:CommandButton Box05 + set Box05.Label "Refresh" + +new wx:LayoutLine Box06 + +new wx:LayoutLine Box08 + set Box08.Orientation "H" + +new wx:OutputText Box09 + +new wx:CommandButton Box10 + set Box10.Label "Exit" + +new wx:OutputText Box11 + +new std:Exit Box12 + +new std:ConcatStrings Box13 + set Box13.In2 "/results" + +new wx:OutputText Box14 + +new creaMiniTools:CreateReport01 Box15 + set Box15.LstPatientsID "P01 P02 P03" + set Box15.LstTitles1 "+ Step01 Step02 Step03 Step04 Step05 Step06 General Scientific Informatic" + set Box15.LstTitles2 "Patient Insert_Date InitValues Filter Correction Validation PushDB Comment Comment Comment" + +new wx:ListCtrl Box16 + set Box16.Column00 " Patient _ P1 _ _ _ P2 _ _ _ P3 _ _ _ P4 _ _ _ " + set Box16.Column01 "Initial_point _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " + set Box16.Column02 "Segmentaiton _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " + set Box16.Column03 "Validateion _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " + set Box16.Column04 "Correction _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ Eduardo 12/12 12h34 _ " + set Box16.Column05 "Scientific _ Coment_1 _ _ _ Coment_AAAA _ _ _ Comment_BBBB _ _ _ Coment_CCC _ _ _ " + set Box16.Titles "_ Step1 Step2 Step3 Comments Comments" + +new wx:ListCtrl Box17 + +new std:ConcatStrings Box18 + set Box18.In1 "//davila//Test_01//Condition_01" + +new std:ReplaceString Box20 + set Box20.Search "" + +new std:MagicBox Box21 + +new std:ReplaceString Box22 + set Box22.Replace "00100_OriginalImages" + set Box22.Search "" + +new std:ReplaceString Box23 + set Box23.Replace "00200_InitialParameters" + set Box23.Search "" + +new std:ReplaceString Box24 + set Box24.Replace "00300_Filter" + set Box24.Search "" + +new std:ConcatStrings Box25 + set Box25.In3 "/Step001.txt " + +new std:ConcatStrings Box26 + set Box26.In2 "/results" + +new std:ConcatStrings Box27 + set Box27.In3 "/Step002.txt " + +new std:ConcatStrings Box28 + set Box28.In3 "/Step03.txt " + +new std:ConcatStrings Box29 + +new std:ConcatStrings Box30 + set Box30.In3 "/Comments_General.txt " + +new std:ConcatStrings Box31 + set Box31.In3 "/Comments_Informatic.txt " + +new std:ConcatStrings Box32 + set Box32.In3 "/Comments_Scientific.txt " + +new std:ConcatStrings Box33 + +new std:ConcatStrings Box34 + set Box34.In3 "/Step04.txt " + +new std:ConcatStrings Box35 + set Box35.In3 "/Step05.txt " + +new std:ConcatStrings Box36 + set Box36.In3 "/Step06.txt " + + + +connect Box04.Widget Box06.Widget1 + +connect Box06.Widget Box02.Widget2 + +connect Box08.Widget Box06.Widget2 + +connect Box09.Widget Box08.Widget1 + +connect Box05.Widget Box08.Widget2 + +connect Box11.Widget Box08.Widget3 + +connect Box10.Widget Box08.Widget4 + +connect Box10.BoxChange Box12.BoxExecute + +connect Box03.Out Box13.In1 + +connect Box14.Widget Box08.Widget5 + +connect Box17.Widget Box02.Widget1 + +connect Box15.LstTitles Box17.Titles + +connect Box15.Out00 Box17.Column00 + +connect Box18.Out Box20.In + + +connect Box21.Out Box20.Replace + +connect Box20.Out Box22.In + +connect Box20.Out Box23.In + +connect Box20.Out Box24.In + +connect Box13.Out Box25.In1 + +connect Box22.Out Box25.In2 + +connect Box13.Out Box26.In1 + +connect Box21.Out Box26.In3 + +connect Box26.Out Box04.In + +connect Box23.Out Box27.In2 + +connect Box13.Out Box27.In1 + +connect Box24.Out Box28.In2 + +connect Box13.Out Box28.In1 + +connect Box25.Out Box29.In1 + +connect Box27.Out Box29.In2 + +connect Box28.Out Box29.In3 + +connect Box29.Out Box15.LstStepsPath + +connect Box24.Out Box30.In2 + +connect Box13.Out Box30.In1 + +connect Box13.Out Box31.In1 + +connect Box24.Out Box31.In2 + +connect Box13.Out Box32.In1 + +connect Box24.Out Box32.In2 + +connect Box30.Out Box33.In1 + +connect Box31.Out Box33.In2 + +connect Box32.Out Box33.In3 + +connect Box33.Out Box15.LstCommentsPath + +connect Box13.Out Box34.In1 + +connect Box24.Out Box34.In2 + +connect Box13.Out Box35.In1 + +connect Box24.Out Box35.In2 + +connect Box34.Out Box29.In4 + +connect Box35.Out Box29.In5 + +connect Box36.Out Box29.In6 + +connect Box15.Out01 Box17.Column01 + +connect Box15.Out02 Box17.Column02 + +connect Box15.Out03 Box17.Column03 + +connect Box15.Out04 Box17.Column04 + +connect Box15.Out05 Box17.Column05 + +connect Box15.Out06 Box17.Column06 + +connect Box15.Out07 Box17.Column07 + +connect Box15.Out08 Box17.Column08 + +connect Box15.Out09 Box17.Column09 + +connect Box15.Out10 Box17.Column10 + +connect Box24.Out Box36.In2 + +connect Box13.Out Box36.In1 + + + +# Complex input ports +input BaseDir Box03.In " " +input CoreID Box21.In " " +exec Box02 diff --git a/appli/template_creaPatientsSystem/scripts/ResetPatient.bbg b/appli/template_creaPatientsSystem/scripts/ResetPatient.bbg new file mode 100644 index 0000000..a626e06 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/ResetPatient.bbg @@ -0,0 +1,360 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/ResetPatient.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:3 +COMPLEX_PORT +BaseDir +-101.658760:162.657202:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +PatientID +65.503112:159.787152:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +CoreID +-2.798914:165.374338:-900.000000 +FIN_COMPLEX_PORT +BOXES:29 +BOX +wx:CommandButton:Box02 +ISEXEC:FALSE +49.630678:1.050635:-900.000000 +92.405678:-8.949365:-900.000000 +PORT +Label:"Reset Patient and Exit" +FIN_BOX +BOX +std:ConcatStrings:Box03 +ISEXEC:FALSE +-101.815893:20.647985:-900.000000 +-62.090893:10.647985:-900.000000 +PORT +In1:"rm -rf " +PORT +In2:" " +PORT +In3:" " +FIN_BOX +BOX +std:ExecSystemCommand:Box04 +ISEXEC:FALSE +71.502970:-69.447407:-900.000000 +119.802970:-79.447407:-900.000000 +FIN_BOX +BOX +std:Exit:Box05 +ISEXEC:FALSE +147.980898:-108.089122:-900.000000 +177.555898:-118.089122:-900.000000 +FIN_BOX +BOX +wx:LayoutCenter:Box06 +ISEXEC:FALSE +67.153737:-34.003669:-900.000000 +106.453737:-44.003669:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box07 +ISEXEC:TRUE +-66.486493:-171.042226:-900.000000 +-25.886493:-181.042226:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box08 +ISEXEC:TRUE +-10.553564:-170.648819:-900.000000 +47.006436:-180.648819:-900.000000 +PORT +WinHeight:"300" +PORT +WinTitle:"ResetPatient.bbs" +FIN_BOX +BOX +std:ConcatStrings:Box10 +ISEXEC:FALSE +66.592681:114.721878:-900.000000 +106.317681:104.721878:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box11 +ISEXEC:FALSE +14.374820:-79.156711:-900.000000 +51.149820:-89.156711:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box14 +ISEXEC:FALSE +-118.629840:126.750992:-900.000000 +-78.904840:116.750992:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box18 +ISEXEC:FALSE +-48.996742:21.292903:-900.000000 +-9.271742:11.292903:-900.000000 +PORT +In1:"del " +PORT +In3:" " +FIN_BOX +BOX +std:StringSelect:Box19 +ISEXEC:FALSE +-89.714575:-33.181874:-900.000000 +-47.554575:-43.181874:-900.000000 +FIN_BOX +BOX +std:Configuration:Box20 +ISEXEC:FALSE +97.143017:46.603061:-900.000000 +136.568017:36.603061:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box17 +ISEXEC:FALSE +-56.001617:-3.557255:-900.000000 +-16.276617:-13.557255:-900.000000 +PORT +Replace:"\" +PORT +Search:"/" +FIN_BOX +BOX +std:ConcatStrings:Box21 +ISEXEC:FALSE +0.071106:126.180400:-900.000000 +39.796106:116.180400:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box22 +ISEXEC:FALSE +-90.572344:64.856998:-900.000000 +-50.847344:54.856998:-900.000000 +PORT +In2:"/results/" +FIN_BOX +BOX +std:ConcatStrings:Box23 +ISEXEC:FALSE +-45.833587:124.602320:-900.000000 +-6.108587:114.602320:-900.000000 +PORT +In1:"//davila/00300_Filter/Test_01//Condition_01" +FIN_BOX +BOX +std:ReplaceCleanString:Box24 +ISEXEC:FALSE +-36.096418:102.898950:-900.000000 +9.453582:92.898950:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:ReplaceCleanString:Box25 +ISEXEC:FALSE +-33.609322:84.782631:-900.000000 +11.940678:74.782631:-900.000000 +PORT +Search:"" +FIN_BOX +BOX +std:MultipleInputs:Box26 +ISEXEC:FALSE +82.802976:-133.731329:-900.000000 +122.502976:-143.731329:-900.000000 +FIN_BOX +BOX +std:ExecSystemCommand:Box27 +ISEXEC:FALSE +136.469134:-69.469834:-900.000000 +184.769134:-79.469834:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +225.242106:3.235272:-900.000000 +264.967106:-6.764728:-900.000000 +PORT +In1:"rm -rf " +PORT +In2:" " +PORT +In3:" " +FIN_BOX +BOX +std:ConcatStrings:Box29 +ISEXEC:FALSE +278.061257:3.880190:-900.000000 +317.786257:-6.119810:-900.000000 +PORT +In1:"del " +PORT +In3:" " +FIN_BOX +BOX +std:StringSelect:Box30 +ISEXEC:FALSE +237.343424:-50.594587:-900.000000 +279.503424:-60.594587:-900.000000 +FIN_BOX +BOX +std:ReplaceString:Box31 +ISEXEC:FALSE +271.056381:-20.969968:-900.000000 +310.781381:-30.969968:-900.000000 +PORT +Replace:"\" +PORT +Search:"/" +FIN_BOX +BOX +std:ReplaceCleanString:Box33 +ISEXEC:FALSE +-15.265091:50.142238:-900.000000 +30.284909:40.142238:-900.000000 +PORT +Replace:"00200_InitialParameters" +PORT +Search:"00300_Filter" +FIN_BOX +BOX +wx:OutputText:Box34 +ISEXEC:FALSE +-35.005035:-77.512492:-900.000000 +1.769965:-87.512492:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box35 +ISEXEC:FALSE +-21.735473:-112.023189:-900.000000 +35.824527:-122.023189:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box36 +ISEXEC:FALSE +-83.346225:-78.285805:-900.000000 +-46.571225:-88.285805:-900.000000 +FIN_BOX +CONNECTIONS:38 +CONNECTION +Box02:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box08:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box19:In0 +NumberOfControlPoints:0 +CONNECTION +Box20:SystemType:Box19:In +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box17:In +NumberOfControlPoints:0 +CONNECTION +BaseDir:BaseDir:Box14:In1 +NumberOfControlPoints:0 +CONNECTION +PatientID:PatientID:Box10:In1 +NumberOfControlPoints:0 +CONNECTION +CoreID:CoreID:Box21:In1 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box19:In2 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box24:Replace +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box25:In +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box25:Replace +NumberOfControlPoints:0 +CONNECTION +Box14:Out:Box22:In1 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box22:In3 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box03:In3 +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box18:In4 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box19:In1 +NumberOfControlPoints:0 +CONNECTION +Box05:BoxChange:Box26:In9 +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box26:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box04:BoxChange:Box26:In1 +NumberOfControlPoints:0 +CONNECTION +Box27:BoxChange:Box26:In3 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box30:In0 +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box30:In2 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box30:In1 +NumberOfControlPoints:0 +CONNECTION +Box20:SystemType:Box30:In +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box27:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box28:In3 +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box29:In4 +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box08:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box34:In +NumberOfControlPoints:0 +CONNECTION +Box36:Widget:Box35:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box34:Widget:Box35:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box35:Widget5 +NumberOfControlPoints:0 +APP_END diff --git a/appli/template_creaPatientsSystem/scripts/ResetPatient.bbs b/appli/template_creaPatientsSystem/scripts/ResetPatient.bbs new file mode 100644 index 0000000..99653bc --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/ResetPatient.bbs @@ -0,0 +1,181 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/ResetPatient.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wx +include std +include creaVtk + +author "Author ??" +description "Description ??" +category "" + +new wx:CommandButton Box02 + set Box02.Label "Reset Patient and Exit" + +new std:ConcatStrings Box03 + set Box03.In1 "rm -rf " + set Box03.In2 " " + set Box03.In3 " " + +new std:ExecSystemCommand Box04 + +new std:Exit Box05 + +new wx:LayoutCenter Box06 + +new creaVtk:OutputWindow Box07 + +new wx:LayoutLine Box08 + set Box08.WinHeight "300" + set Box08.WinTitle "ResetPatient.bbs" + +new std:ConcatStrings Box10 + +new wx:OutputText Box11 + +new std:ConcatStrings Box14 + +new std:ConcatStrings Box18 + set Box18.In1 "del " + set Box18.In3 " " + +new std:StringSelect Box19 + +new std:Configuration Box20 + +new std:ReplaceString Box17 + set Box17.Replace "\" + set Box17.Search "/" + +new std:ConcatStrings Box21 + +new std:ConcatStrings Box22 + set Box22.In2 "/results/" + +new std:ConcatStrings Box23 + set Box23.In1 "//davila/00300_Filter/Test_01//Condition_01" + +new std:ReplaceCleanString Box24 + set Box24.Search "" + +new std:ReplaceCleanString Box25 + set Box25.Search "" + +new std:MultipleInputs Box26 + +new std:ExecSystemCommand Box27 + +new std:ConcatStrings Box28 + set Box28.In1 "rm -rf " + set Box28.In2 " " + set Box28.In3 " " + +new std:ConcatStrings Box29 + set Box29.In1 "del " + set Box29.In3 " " + +new std:StringSelect Box30 + +new std:ReplaceString Box31 + set Box31.Replace "\" + set Box31.Search "/" + +new std:ReplaceCleanString Box33 + set Box33.Replace "00200_InitialParameters" + set Box33.Search "00300_Filter" + +new wx:OutputText Box34 + +new wx:LayoutLine Box35 + +new wx:OutputText Box36 + + +connect Box02.Widget Box06.Widget2 + +connect Box06.Widget Box08.Widget3 + +connect Box03.Out Box19.In0 + +connect Box20.SystemType Box19.In + +connect Box18.Out Box17.In + + + + +connect Box03.Out Box19.In2 + +connect Box23.Out Box24.In + +connect Box21.Out Box24.Replace + +connect Box24.Out Box25.In + +connect Box10.Out Box25.Replace + +connect Box14.Out Box22.In1 + +connect Box25.Out Box22.In3 + +connect Box19.Out Box04.In + +connect Box22.Out Box03.In3 + +connect Box22.Out Box18.In4 + +connect Box17.Out Box19.In1 + +connect Box05.BoxChange Box26.In9 + +connect Box02.BoxChange Box26.BoxExecute + +connect Box04.BoxChange Box26.In1 + +connect Box27.BoxChange Box26.In3 + +connect Box28.Out Box30.In0 + +connect Box29.Out Box31.In + +connect Box28.Out Box30.In2 + +connect Box31.Out Box30.In1 + +connect Box20.SystemType Box30.In + +connect Box30.Out Box27.In + +connect Box22.Out Box33.In + +connect Box33.Out Box28.In3 + +connect Box33.Out Box29.In4 + +connect Box35.Widget Box08.Widget2 + +connect Box22.Out Box11.In + +connect Box33.Out Box34.In + +connect Box36.Widget Box35.Widget1 + +connect Box34.Widget Box35.Widget3 + +connect Box11.Widget Box35.Widget5 + + + +# Complex input ports +input BaseDir Box14.In1 " " +input PatientID Box10.In1 " " +input CoreID Box21.In1 " " +exec Box07 +exec Box08 diff --git a/appli/template_creaPatientsSystem/scripts/Run_Application.bat b/appli/template_creaPatientsSystem/scripts/Run_Application.bat new file mode 100644 index 0000000..42221cb --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/Run_Application.bat @@ -0,0 +1 @@ +bbi menu.bbs diff --git a/appli/template_creaPatientsSystem/scripts/Run_Application.sh b/appli/template_creaPatientsSystem/scripts/Run_Application.sh new file mode 100644 index 0000000..c66a20e --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/Run_Application.sh @@ -0,0 +1,4 @@ +source ~/.bbtk/profile_creatools +PATH=$PATH:/Users/davila/Library/Python/3.8/bin + +bbi 00000_User.bbs diff --git a/bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.cxx b/bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.cxx new file mode 100644 index 0000000..c560157 --- /dev/null +++ b/bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.cxx @@ -0,0 +1,159 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#include "bbcreaMiniToolsCreateReport01.h" +#include "bbcreaMiniToolsPackage.h" +namespace bbcreaMiniTools +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMiniTools,CreateReport01) +BBTK_BLACK_BOX_IMPLEMENTATION(CreateReport01,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void CreateReport01::Process() +{ + +// THE MAIN PROCESSING METHOD BODY +// Here we simply set the input 'In' value to the output 'Out' +// And print out the output value +// INPUT/OUTPUT ACCESSORS ARE OF THE FORM : +// void bbSet{Input|Output}NAME(const TYPE&) +// const TYPE& bbGet{Input|Output}NAME() const +// Where : +// * NAME is the name of the input/output +// (the one provided in the attribute 'name' of the tag 'input') +// * TYPE is the C++ type of the input/output +// (the one provided in the attribute 'type' of the tag 'input') +// bbSetOutputOut( bbGetInputIn() ); +// std::cout << "Output value = " < lstPatients = bbGetInputLstPatientsID(); + std::vector lstTitles1 = bbGetInputLstTitles1(); + std::vector lstTitles2 = bbGetInputLstTitles2(); + std::vector lstStepsPath = bbGetInputLstStepsPath(); + std::vector lstCommentsPath= bbGetInputLstCommentsPath(); + + std::vector lstOut00; + std::vector lstOut01; + std::vector lstOut02; + std::vector lstOut03; + std::vector lstOut04; + std::vector lstOut05; + std::vector lstOut06; + std::vector lstOut07; + std::vector lstOut08; + std::vector lstOut09; + std::vector lstOut10; + + std::vector< std::vector* > pLstOut; + + pLstOut.push_back( &lstOut00 ); + pLstOut.push_back( &lstOut01 ); + pLstOut.push_back( &lstOut02 ); + pLstOut.push_back( &lstOut03 ); + pLstOut.push_back( &lstOut04 ); + pLstOut.push_back( &lstOut05 ); + pLstOut.push_back( &lstOut06 ); + pLstOut.push_back( &lstOut07 ); + pLstOut.push_back( &lstOut08 ); + pLstOut.push_back( &lstOut09 ); + pLstOut.push_back( &lstOut10 ); + + + int iTitle2,sizeTitles2 = lstTitles2.size(); + for (iTitle2=0 ; iTitle2push_back( lstTitles2[iTitle2] ); + pLstOut[iTitle2]->push_back( " " ); + } // for iTitle2 + + + int id; + int i,sizeLstPatientsID = lstPatients.size(); + int j,sizeLstStepsPath = lstStepsPath.size(); + int jj,sizeLstCommentsPath = lstCommentsPath.size(); + for ( i=0 ; ipush_back( lstPatients[i] ); + pLstOut[0]->push_back( " " ); + pLstOut[0]->push_back( " " ); + pLstOut[0]->push_back( " " ); + + for (j=0; jpush_back( "Step:"+std::to_string(j) ); + pLstOut[id]->push_back( "2021/11/12" ); + pLstOut[id]->push_back( "16h56" ); + pLstOut[id]->push_back( " " ); + printf("EED CreateReport01::Process Step:%s\n", lstStepsPath[j].c_str() ); + } // for j + + for ( jj=0; jjpush_back( "Comment:"+std::to_string(jj) ); + pLstOut[id]->push_back( "2021/11/12" ); + pLstOut[id]->push_back( "16h56" ); + pLstOut[id]->push_back( " " ); + printf("EED CreateReport01::Process Comment:%s\n", lstCommentsPath[jj].c_str() ); + } // for j + + } // for i + + bbSetOutputOut00( lstOut00 ); + bbSetOutputOut01( lstOut01 ); + bbSetOutputOut02( lstOut02 ); + bbSetOutputOut03( lstOut03 ); + bbSetOutputOut04( lstOut04 ); + bbSetOutputOut05( lstOut05 ); + bbSetOutputOut06( lstOut06 ); + bbSetOutputOut07( lstOut07 ); + bbSetOutputOut08( lstOut08 ); + bbSetOutputOut09( lstOut09 ); + bbSetOutputOut10( lstOut10 ); +} +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void CreateReport01::bbUserSetDefaultValues() +{ + +// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX +// Here we initialize the input 'In' to 0 +// bbSetInputIn(0); + +} +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void CreateReport01::bbUserInitializeProcessing() +{ + +// THE INITIALIZATION METHOD BODY : +// Here does nothing +// but this is where you should allocate the internal/output pointers +// if any + + +} +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void CreateReport01::bbUserFinalizeProcessing() +{ + +// THE FINALIZATION METHOD BODY : +// Here does nothing +// but this is where you should desallocate the internal/output pointers +// if any + +} +} +// EO namespace bbcreaMiniTools + + diff --git a/bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.h b/bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.h new file mode 100644 index 0000000..b289743 --- /dev/null +++ b/bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.h @@ -0,0 +1,79 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#ifndef __bbcreaMiniToolsCreateReport01_h_INCLUDED__ +#define __bbcreaMiniToolsCreateReport01_h_INCLUDED__ + +#include "bbcreaMiniTools_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +namespace bbcreaMiniTools +{ + +class bbcreaMiniTools_EXPORT CreateReport01 + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(CreateReport01,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== + BBTK_DECLARE_INPUT(LstPatientsID,std::vector); + BBTK_DECLARE_INPUT(LstTitles1,std::vector); + BBTK_DECLARE_INPUT(LstTitles2,std::vector); + BBTK_DECLARE_INPUT(LstStepsPath,std::vector); + BBTK_DECLARE_INPUT(LstCommentsPath,std::vector); + + BBTK_DECLARE_OUTPUT(LstTitles,std::vector); + BBTK_DECLARE_OUTPUT(Out00,std::vector); + BBTK_DECLARE_OUTPUT(Out01,std::vector); + BBTK_DECLARE_OUTPUT(Out02,std::vector); + BBTK_DECLARE_OUTPUT(Out03,std::vector); + BBTK_DECLARE_OUTPUT(Out04,std::vector); + BBTK_DECLARE_OUTPUT(Out05,std::vector); + BBTK_DECLARE_OUTPUT(Out06,std::vector); + BBTK_DECLARE_OUTPUT(Out07,std::vector); + BBTK_DECLARE_OUTPUT(Out08,std::vector); + BBTK_DECLARE_OUTPUT(Out09,std::vector); + BBTK_DECLARE_OUTPUT(Out10,std::vector); + BBTK_PROCESS(Process); + void Process(); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(CreateReport01,bbtk::AtomicBlackBox); +BBTK_NAME("CreateReport01"); +BBTK_AUTHOR("InfoDev"); +BBTK_DESCRIPTION("No Description."); +BBTK_CATEGORY("empty"); +BBTK_INPUT(CreateReport01,LstPatientsID,"List of Patients Id to be analysed",std::vector,""); +BBTK_INPUT(CreateReport01,LstTitles1,"LstTitle1 same size of LstTitle2",std::vector,""); +BBTK_INPUT(CreateReport01,LstTitles2,"LstTitle1 same size of LstTitle2",std::vector,""); +BBTK_INPUT(CreateReport01,LstStepsPath,"Path to file step. Will be replace",std::vector,""); +BBTK_INPUT(CreateReport01,LstCommentsPath,"Path to file comment. Will be replace",std::vector,""); + +BBTK_OUTPUT(CreateReport01,LstTitles,"Title (first line)",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out00,"PatientID",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out01,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out02,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out03,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out04,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out05,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out06,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out07,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out08,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out09,"Steps and then comments",std::vector,""); +BBTK_OUTPUT(CreateReport01,Out10,"Steps and then comments",std::vector,""); + +BBTK_END_DESCRIBE_BLACK_BOX(CreateReport01); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +} +// EO namespace bbcreaMiniTools + +#endif // __bbcreaMiniToolsCreateReport01_h_INCLUDED__ + -- 2.47.1