From: Eduardo DAVILA Date: Thu, 18 Nov 2021 13:51:04 +0000 (+0100) Subject: #3421 template_creaPatientsSystem X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=800be3b9e6a07c99a0c9e9d5175544eb05f6d136;p=creaMiniTools.git #3421 template_creaPatientsSystem --- diff --git a/appli/template_creaPatientsSystem/scripts/00000_User.bbg b/appli/template_creaPatientsSystem/scripts/00000_User.bbg index 016217f..cc59b5c 100644 --- a/appli/template_creaPatientsSystem/scripts/00000_User.bbg +++ b/appli/template_creaPatientsSystem/scripts/00000_User.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00000_User.bbg +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00000_User.bbg # ---------------------------------- APP_START @@ -26,13 +26,13 @@ BOX wx:OutputText:Box04 ISEXEC:FALSE -68.393626:32.968066:-900.000000 -32.920000:22.968066:-900.000000 +-31.618626:22.968066:-900.000000 FIN_BOX BOX wx:ComboBox:Box05 ISEXEC:FALSE -21.508021:83.752959:-900.000000 -45.240000:73.752959:-900.000000 +23.731979:73.752959:-900.000000 PORT In:"VOID Eduardo_Davila User01 User02 User03" PORT @@ -42,13 +42,13 @@ BOX creaVtk:OutputWindow:Box06 ISEXEC:TRUE -71.668631:-88.633263:-900.000000 --31.068631:-98.633263:-900.000000 +8.280000:-98.633263:-900.000000 FIN_BOX BOX wx:LayoutLine:Box07 ISEXEC:TRUE 2.398699:-89.100813:-900.000000 -59.958699:-99.100813:-900.000000 +57.560000:-99.100813:-900.000000 PORT WinHeight:"400" PORT diff --git a/appli/template_creaPatientsSystem/scripts/00000_User.bbs b/appli/template_creaPatientsSystem/scripts/00000_User.bbs index 142be0b..481e8e0 100644 --- a/appli/template_creaPatientsSystem/scripts/00000_User.bbs +++ b/appli/template_creaPatientsSystem/scripts/00000_User.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00000_User.bbs +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00000_User.bbs # ---------------------------------- # BBTK GEditor Script diff --git a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg index b612fab..eafa54d 100644 --- a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg +++ b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00010_Menu.bbg +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00010_Menu.bbg # ---------------------------------- APP_START @@ -11,14 +11,14 @@ COMPLEXBOX:FALSE COMPLEXINPUTS:1 COMPLEX_PORT creaUser -410.678849:500.853000:-900.000000 +402.285778:497.890740:-900.000000 FIN_COMPLEX_PORT -BOXES:105 +BOXES:106 BOX wx:LayoutLine:Box00 ISEXEC:FALSE 470.203046:-48.791503:-900.000000 -506.778046:-58.791503:-900.000000 +527.763046:-58.791503:-900.000000 PORT WinTitle:"B. Segmentation" FIN_BOX @@ -34,7 +34,7 @@ BOX wx:ComboBox:Box03 ISEXEC:FALSE 237.986973:206.830738:-900.000000 -275.161973:196.830738:-900.000000 +283.226973:196.830738:-900.000000 PORT In:"void" PORT @@ -76,7 +76,7 @@ BOX std:ConcatStrings:Box10 ISEXEC:FALSE -72.720504:147.370136:-900.000000 -39.080000:137.370136:-900.000000 +-32.995504:137.370136:-900.000000 PORT In2:"results" FIN_BOX @@ -90,7 +90,7 @@ BOX std:ConcatStrings:Box12 ISEXEC:FALSE -74.811295:106.279364:-900.000000 -39.080000:96.279364:-900.000000 +-35.086295:96.279364:-900.000000 PORT In1:"mkdir " FIN_BOX @@ -135,8 +135,8 @@ FIN_BOX BOX wx:CommandButton:Box26 ISEXEC:FALSE -1122.422797:172.605688:-900.000000 -1165.197797:162.605688:-900.000000 +1095.762454:154.832126:-900.000000 +1138.537454:144.832126:-900.000000 PORT Label:"Report" FIN_BOX @@ -149,14 +149,12 @@ FIN_BOX BOX std:ConcatStrings:Box28 ISEXEC:FALSE -1140.023755:152.393138:-900.000000 -1179.748755:142.393138:-900.000000 +664.447648:285.884386:-900.000000 +704.172648:275.884386:-900.000000 PORT In1:"bbi Report.bbs " PORT -In2:"BaseDir=" -PORT -In4:" &" +In9:" &" FIN_BOX BOX wx:CommandButton:Box29 @@ -186,7 +184,7 @@ BOX wx:LayoutLine:Box32 ISEXEC:FALSE 985.258127:-34.873948:-900.000000 -1021.833127:-44.873948:-900.000000 +1042.818127:-44.873948:-900.000000 PORT WinTitle:"C. Summary" FIN_BOX @@ -194,7 +192,7 @@ BOX wx:LayoutTab:Box33 ISEXEC:FALSE 461.240167:-84.722719:-900.000000 -497.490167:-94.722719:-900.000000 +518.800167:-94.722719:-900.000000 PORT WinTitle:"B. Segmentation" FIN_BOX @@ -222,7 +220,7 @@ BOX std:StringSelect:Box45 ISEXEC:FALSE 144.351485:122.963052:-900.000000 -181.926485:112.963052:-900.000000 +186.511485:112.963052:-900.000000 PORT In1:"hola" FIN_BOX @@ -236,7 +234,7 @@ BOX std:StringSelect:Box50 ISEXEC:FALSE 58.241540:83.549321:-900.000000 -95.816540:73.549321:-900.000000 +100.401540:73.549321:-900.000000 FIN_BOX BOX std:ConcatStrings:Box51 @@ -258,7 +256,7 @@ BOX std:StringSelect:Box53 ISEXEC:FALSE 341.730832:91.216556:-900.000000 -379.305832:81.216556:-900.000000 +383.890832:81.216556:-900.000000 FIN_BOX BOX std:ConcatStrings:Box54 @@ -272,7 +270,7 @@ BOX std:StringSelect:Box55 ISEXEC:FALSE 491.836018:115.669142:-900.000000 -529.411018:105.669142:-900.000000 +533.996018:105.669142:-900.000000 FIN_BOX BOX std:ConcatStrings:Box56 @@ -286,7 +284,7 @@ BOX std:StringSelect:Box57 ISEXEC:FALSE 692.517428:101.262035:-900.000000 -730.092428:91.262035:-900.000000 +734.677428:91.262035:-900.000000 FIN_BOX BOX std:ConcatStrings:Box58 @@ -299,8 +297,8 @@ FIN_BOX BOX std:StringSelect:Box61 ISEXEC:FALSE -1147.302904:121.587982:-900.000000 -1184.877904:111.587982:-900.000000 +1144.777881:119.483797:-900.000000 +1186.937881:109.483797:-900.000000 FIN_BOX BOX std:ConcatStrings:Box62 @@ -338,7 +336,7 @@ BOX std:StringSelect:Box66 ISEXEC:FALSE 790.488105:98.733131:-900.000000 -828.063105:88.733131:-900.000000 +832.648105:88.733131:-900.000000 FIN_BOX BOX std:ConcatStrings:Box67 @@ -351,8 +349,8 @@ FIN_BOX BOX std:ConcatStrings:Box73 ISEXEC:FALSE -194.184462:319.487138:-900.000000 -233.909462:309.487138:-900.000000 +200.792648:323.660729:-900.000000 +240.517648:313.660729:-900.000000 PORT In1:"" PORT @@ -388,7 +386,7 @@ BOX std:StringSelect:Box87 ISEXEC:FALSE 888.803151:114.117107:-900.000000 -926.378151:104.117107:-900.000000 +930.963151:104.117107:-900.000000 FIN_BOX BOX std:ConcatStrings:Box88 @@ -402,7 +400,7 @@ BOX wx:LayoutLine:Box89 ISEXEC:FALSE 671.823777:33.202592:-900.000000 -708.398777:23.202592:-900.000000 +729.383777:23.202592:-900.000000 PORT Orientation:"H" FIN_BOX @@ -410,7 +408,7 @@ BOX wx:ComboBox:Box90 ISEXEC:FALSE 150.828604:303.269420:-900.000000 -188.003604:293.269420:-900.000000 +196.068604:293.269420:-900.000000 PORT In:"void" PORT @@ -444,13 +442,15 @@ In2:"00100_InsertDataA.bbs " PORT In4:" ProjectDir=" PORT +In6:" " +PORT In9:" & " FIN_BOX BOX std:StringSelect:Box94 ISEXEC:FALSE 252.154279:-111.574004:-900.000000 -289.729279:-121.574004:-900.000000 +294.314279:-121.574004:-900.000000 FIN_BOX BOX std:ConcatStrings:Box95 @@ -464,19 +464,19 @@ BOX wx:LayoutTab:Box97 ISEXEC:FALSE 295.333635:-223.882204:-900.000000 -331.583635:-233.882204:-900.000000 +352.893635:-233.882204:-900.000000 FIN_BOX BOX wx:LayoutTab:Box98 ISEXEC:FALSE 501.327016:-220.034202:-900.000000 -537.577016:-230.034202:-900.000000 +558.887016:-230.034202:-900.000000 FIN_BOX BOX wx:LayoutLine:Box99 ISEXEC:FALSE 260.072014:-189.067887:-900.000000 -296.647014:-199.067887:-900.000000 +317.632014:-199.067887:-900.000000 PORT WinHeight:"550" PORT @@ -502,7 +502,7 @@ BOX std:StringSelect:Box105 ISEXEC:FALSE 1324.261379:133.716661:-900.000000 -1362.961379:123.716661:-900.000000 +1366.421379:123.716661:-900.000000 FIN_BOX BOX wx:OutputText:Box108 @@ -630,7 +630,7 @@ BOX std:StringSelect:Box126 ISEXEC:FALSE 1272.265992:-32.085498:-900.000000 -1310.965992:-42.085498:-900.000000 +1314.425992:-42.085498:-900.000000 FIN_BOX BOX std:ConcatStrings:Box127 @@ -709,16 +709,16 @@ FIN_BOX BOX std:ConcatStrings:Box138 ISEXEC:FALSE -281.901301:493.701377:-900.000000 -322.751301:483.701377:-900.000000 +267.583709:494.688797:-900.000000 +308.433709:484.688797:-900.000000 PORT In1:"../" FIN_BOX BOX std:ConcatStrings:Box140 ISEXEC:FALSE -332.521354:492.942027:-900.000000 -373.371354:482.942027:-900.000000 +324.128283:493.929447:-900.000000 +364.978283:483.929447:-900.000000 PORT In1:"/Users/davila/CreatisWork/tmpCharly/" FIN_BOX @@ -798,7 +798,7 @@ BOX wx:LayoutLine:Box150 ISEXEC:TRUE 376.264702:-404.588291:-900.000000 -413.964702:-414.588291:-900.000000 +433.824702:-414.588291:-900.000000 PORT Orientation:"H" PORT @@ -860,7 +860,17 @@ In1:"open" PORT In2:" " FIN_BOX -CONNECTIONS:156 +BOX +std:ConcatStrings:Box157 +ISEXEC:FALSE +542.628553:319.616712:-900.000000 +583.478553:309.616712:-900.000000 +PORT +In1:"creaUser=" +PORT +In3:" " +FIN_BOX +CONNECTIONS:160 CONNECTION Box06:Out:Box05:In NumberOfControlPoints:0 @@ -886,9 +896,6 @@ CONNECTION Box26:BoxChange:Box27:BoxExecute NumberOfControlPoints:0 CONNECTION -Box11:Out:Box28:In3 -NumberOfControlPoints:0 -CONNECTION Box29:BoxChange:Box30:BoxExecute NumberOfControlPoints:0 CONNECTION @@ -1063,9 +1070,6 @@ CONNECTION Box11:Out:Box93:In5 NumberOfControlPoints:0 CONNECTION -Box73:Out:Box90:In -NumberOfControlPoints:0 -CONNECTION Box90:Out:Box112:I NumberOfControlPoints:0 CONNECTION @@ -1231,9 +1235,6 @@ CONNECTION Box143:Out:Box118:In2 NumberOfControlPoints:0 CONNECTION -Box90:OutString:Box143:In2 -NumberOfControlPoints:0 -CONNECTION Box146:Out:Box126:In2 NumberOfControlPoints:0 CONNECTION @@ -1329,4 +1330,25 @@ NumberOfControlPoints:0 CONNECTION Box28:Out:Box61:In2 NumberOfControlPoints:0 +CONNECTION +Box151:Out:Box157:In2 +NumberOfControlPoints:0 +CONNECTION +Box157:Out:Box118:In4 +NumberOfControlPoints:0 +CONNECTION +Box157:Out:Box93:In7 +NumberOfControlPoints:0 +CONNECTION +Box116:Out:Box28:In2 +NumberOfControlPoints:0 +CONNECTION +Box73:Out:Box90:In +NumberOfControlPoints:0 +CONNECTION +Box143:Out:Box28:In3 +NumberOfControlPoints:0 +CONNECTION +Box90:OutString:Box143:In2 +NumberOfControlPoints:0 APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs index 1f81269..f739373 100644 --- a/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs +++ b/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00010_Menu.bbs +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00010_Menu.bbs # ---------------------------------- # BBTK GEditor Script @@ -66,8 +66,7 @@ new std:ExecSystemCommand Box27 new std:ConcatStrings Box28 set Box28.In1 "bbi Report.bbs " - set Box28.In2 "BaseDir=" - set Box28.In4 " &" + set Box28.In9 " &" new wx:CommandButton Box29 set Box29.Label "Comments" @@ -174,6 +173,7 @@ new std:ConcatStrings Box93 set Box93.In1 "bbi " set Box93.In2 "00100_InsertDataA.bbs " set Box93.In4 " ProjectDir=" + set Box93.In6 " " set Box93.In9 " & " new std:StringSelect Box94 @@ -333,6 +333,10 @@ new std:ConcatStrings Box156 set Box156.In1 "open" set Box156.In2 " " +new std:ConcatStrings Box157 + set Box157.In1 "creaUser=" + set Box157.In3 " " + connect Box06.Out Box05.In @@ -350,8 +354,6 @@ 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 @@ -468,8 +470,6 @@ 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 @@ -580,8 +580,6 @@ 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 @@ -645,6 +643,20 @@ connect Box156.Out Box105.In2 connect Box28.Out Box61.In2 +connect Box151.Out Box157.In2 + +connect Box157.Out Box118.In4 + +connect Box157.Out Box93.In7 + +connect Box116.Out Box28.In2 + +connect Box73.Out Box90.In + +connect Box143.Out Box28.In3 + +connect Box90.OutString Box143.In2 + # Complex input ports diff --git a/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg index 0a0774d..86b8ede 100644 --- a/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg +++ b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00100_InsertDataA.bbg +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbg # ---------------------------------- APP_START @@ -8,29 +8,33 @@ CATEGORY: DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE -COMPLEXINPUTS:1 +COMPLEXINPUTS:2 COMPLEX_PORT ProjectDir -77.203365:93.473194:-900.000000 +84.820278:144.534723:-900.000000 FIN_COMPLEX_PORT -BOXES:34 +COMPLEX_PORT +creaUser +146.837158:140.912892:-900.000000 +FIN_COMPLEX_PORT +BOXES:37 BOX creaMaracasVisu:ViewerNV:Box00 ISEXEC:FALSE -4.805303:5.235372:-900.000000 -68.525303:-4.764628:-900.000000 +-22.662651:6.681054:-900.000000 +41.057349:-3.318946:-900.000000 FIN_BOX BOX wx:LayoutLine:Box02 ISEXEC:FALSE --113.872761:3.560183:-900.000000 --56.312761:-6.439817:-900.000000 +-85.681966:7.897228:-900.000000 +-28.121966:-2.102772:-900.000000 FIN_BOX BOX creaVtk:OutputWindow:Box03 ISEXEC:TRUE --61.077192:-249.874131:-900.000000 --20.477192:-259.874131:-900.000000 +-55.344612:-298.769669:-900.000000 +-14.744612:-308.769669:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box04 @@ -51,8 +55,8 @@ FIN_BOX BOX creaImageIO:ReadImages:Box07 ISEXEC:FALSE -1.997130:37.780269:-900.000000 -40.622130:27.780269:-900.000000 +16.453948:45.008678:-900.000000 +55.078948:35.008678:-900.000000 FIN_BOX BOX wx:FileSelector:Box09 @@ -63,8 +67,8 @@ FIN_BOX BOX wx:LayoutSplit:Box11 ISEXEC:TRUE --2.180225:-248.848157:-900.000000 -36.899775:-258.848157:-900.000000 +24.459413:-298.080906:-900.000000 +63.539413:-308.080906:-900.000000 PORT Proportion:"90" PORT @@ -81,8 +85,8 @@ FIN_BOX BOX wx:InputText:Box14 ISEXEC:FALSE -27.703036:-16.541133:-900.000000 -63.703036:-26.541133:-900.000000 +27.159955:-12.196485:-900.000000 +63.159955:-22.196485:-900.000000 PORT In:"Id_" PORT @@ -93,10 +97,10 @@ FIN_BOX BOX wx:CommandButton:Box15 ISEXEC:FALSE -73.157532:-16.272172:-900.000000 -115.932532:-26.272172:-900.000000 +86.168668:-8.320922:-900.000000 +128.943668:-18.320922:-900.000000 PORT -Label:"Save & Exit" +Label:"Save and Close" FIN_BOX BOX std:ConcatStrings:Box16 @@ -107,14 +111,14 @@ FIN_BOX BOX std:ConcatStrings:Box17 ISEXEC:FALSE -119.800744:-112.508316:-900.000000 -159.525744:-122.508316:-900.000000 +192.936927:-106.526821:-900.000000 +232.661927:-116.526821:-900.000000 FIN_BOX BOX std:ReplaceCleanString:Box18 ISEXEC:FALSE -128.015499:-36.775367:-900.000000 -173.565499:-46.775367:-900.000000 +246.388162:-50.490336:-900.000000 +291.938162:-60.490336:-900.000000 PORT Replace:"_" PORT @@ -147,28 +151,28 @@ FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box23 ISEXEC:FALSE -25.682517:23.236213:-900.000000 -77.857517:13.236213:-900.000000 +44.476380:29.741781:-900.000000 +96.651380:19.741781:-900.000000 FIN_BOX BOX std:ExecSystemCommand:Box24 ISEXEC:FALSE -92.635092:-166.958658:-900.000000 -140.935092:-176.958658:-900.000000 +106.460727:-173.365660:-900.000000 +154.760727:-183.365660:-900.000000 FIN_BOX BOX std:ConcatStrings:Box25 ISEXEC:FALSE -172.345494:77.761432:-900.000000 -212.070494:67.761432:-900.000000 +182.501378:78.325648:-900.000000 +222.226378:68.325648:-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 +234.226894:-68.019894:-900.000000 +279.776894:-78.019894:-900.000000 PORT Search:"" FIN_BOX @@ -189,8 +193,8 @@ FIN_BOX BOX std:Exit:Box29 ISEXEC:FALSE -232.246136:-205.687626:-900.000000 -261.821136:-215.687626:-900.000000 +190.219578:-261.587029:-900.000000 +219.794578:-271.587029:-900.000000 FIN_BOX BOX wx:ComboBox:Box30 @@ -203,8 +207,8 @@ FIN_BOX BOX std:ReplaceCleanString:Box31 ISEXEC:FALSE -152.695087:-86.561445:-900.000000 -198.245087:-96.561445:-900.000000 +225.988220:-87.276683:-900.000000 +271.538220:-97.276683:-900.000000 PORT Search:"" FIN_BOX @@ -217,14 +221,14 @@ FIN_BOX BOX std:MultipleInputs:Box33 ISEXEC:FALSE -130.812543:-268.584427:-900.000000 -170.512543:-278.584427:-900.000000 +117.324119:-292.189170:-900.000000 +157.024119:-302.189170:-900.000000 FIN_BOX BOX wx:OutputText:Box34 ISEXEC:FALSE --57.878915:27.595017:-900.000000 --21.103915:17.595017:-900.000000 +-55.710392:29.763540:-900.000000 +-18.935392:19.763540:-900.000000 FIN_BOX BOX wx:InputText:Box35 @@ -270,7 +274,29 @@ ISEXEC:FALSE PORT In2:"/Parameters.txt" FIN_BOX -CONNECTIONS:47 +BOX +std:MagicBox:Box41 +ISEXEC:FALSE +130.474900:74.617538:-900.000000 +166.549900:64.617538:-900.000000 +FIN_BOX +BOX +creaMiniTools:WriteStatePatientSystem:Box42 +ISEXEC:FALSE +260.700111:-181.907678:-900.000000 +310.100111:-191.907678:-900.000000 +PORT +State:"Finish" +FIN_BOX +BOX +std:ConcatStrings:Box43 +ISEXEC:FALSE +263.147717:-126.675242:-900.000000 +302.872717:-136.675242:-900.000000 +PORT +In2:"/Step01_Insert_Data.txt" +FIN_BOX +CONNECTIONS:52 CONNECTION Box00:Widget:Box04:Widget2 NumberOfControlPoints:0 @@ -380,9 +406,6 @@ CONNECTION Box22:BoxChange:Box33:In3 NumberOfControlPoints:0 CONNECTION -Box29:BoxChange:Box33:In5 -NumberOfControlPoints:0 -CONNECTION Box34:Widget:Box02:Widget3 NumberOfControlPoints:0 CONNECTION @@ -412,4 +435,22 @@ NumberOfControlPoints:0 CONNECTION Box36:Out:Box38:In3 NumberOfControlPoints:0 +CONNECTION +creaUser:creaUser:Box41:In +NumberOfControlPoints:0 +CONNECTION +Box42:boxChange:Box33:In4 +NumberOfControlPoints:0 +CONNECTION +Box29:BoxChange:Box33:In9 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box43:In1 +NumberOfControlPoints:0 +CONNECTION +Box43:Out:Box42:FileState +NumberOfControlPoints:0 +CONNECTION +Box41:Out:Box42:User +NumberOfControlPoints:0 APP_END diff --git a/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs index f205219..58f7adb 100644 --- a/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs +++ b/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00100_InsertDataA.bbs +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00100_InsertDataA.bbs # ---------------------------------- # BBTK GEditor Script @@ -14,6 +14,7 @@ include creaVtk include creaImageIO include std include vtk +include creaMiniTools author "Author ??" description "Description ??" @@ -48,7 +49,7 @@ new wx:InputText Box14 set Box14.Title "Id" new wx:CommandButton Box15 - set Box15.Label "Save & Exit" + set Box15.Label "Save and Close" new std:ConcatStrings Box16 @@ -113,6 +114,14 @@ new std:ConcatStrings Box38 new std:ConcatStrings Box40 set Box40.In2 "/Parameters.txt" +new std:MagicBox Box41 + +new creaMiniTools:WriteStatePatientSystem Box42 + set Box42.State "Finish" + +new std:ConcatStrings Box43 + set Box43.In2 "/Step01_Insert_Data.txt" + connect Box00.Widget Box04.Widget2 @@ -185,8 +194,6 @@ 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 @@ -208,8 +215,20 @@ connect Box40.Out Box37.FileName connect Box36.Out Box38.In3 +connect Box42.boxChange Box33.In4 + +connect Box29.BoxChange Box33.In9 + +connect Box17.Out Box43.In1 + +connect Box43.Out Box42.FileState + +connect Box41.Out Box42.User + + # Complex input ports input ProjectDir Box16.In1 " " +input creaUser Box41.In " " exec Box03 exec Box11 diff --git a/appli/template_creaPatientsSystem/scripts/Report.bbg b/appli/template_creaPatientsSystem/scripts/Report.bbg index 6f98bae..2c8c531 100644 --- a/appli/template_creaPatientsSystem/scripts/Report.bbg +++ b/appli/template_creaPatientsSystem/scripts/Report.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/Report.bbg +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/Report.bbg # ---------------------------------- APP_START @@ -17,12 +17,12 @@ COMPLEX_PORT CoreID 24.094628:190.118560:-900.000000 FIN_COMPLEX_PORT -BOXES:33 +BOXES:35 BOX wx:LayoutSplit:Box02 ISEXEC:TRUE -209.188267:-180.351716:-900.000000 -248.268267:-190.351716:-900.000000 +193.479311:-189.328262:-900.000000 +232.559311:-199.328262:-900.000000 PORT Proportion:"90" PORT @@ -51,8 +51,8 @@ FIN_BOX BOX wx:LayoutLine:Box06 ISEXEC:FALSE -272.602574:-148.877054:-900.000000 -330.162574:-158.877054:-900.000000 +305.366968:-140.349335:-900.000000 +362.926968:-150.349335:-900.000000 FIN_BOX BOX wx:LayoutLine:Box08 @@ -74,7 +74,7 @@ ISEXEC:FALSE 441.090178:92.243944:-900.000000 483.865178:82.243944:-900.000000 PORT -Label:"Exit" +Label:"Close" FIN_BOX BOX wx:OutputText:Box11 @@ -105,54 +105,34 @@ FIN_BOX BOX creaMiniTools:CreateReport01:Box15 ISEXEC:FALSE -108.914229:-103.606899:-900.000000 -152.074229:-113.606899:-900.000000 +162.588042:-106.262770:-900.000000 +205.748042:-116.262770:-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" +LstTitles2:"Patient Insert_Data InitValues Filter Correction Validation PushDB Comment Comment Comment" FIN_BOX BOX wx:ListCtrl:Box17 ISEXEC:FALSE -88.433796:-134.050787:-900.000000 -152.153796:-144.050787:-900.000000 +164.662277:-139.123569:-900.000000 +228.382277:-149.123569:-900.000000 FIN_BOX BOX std:ConcatStrings:Box18 ISEXEC:FALSE --8.791283:80.261158:-900.000000 -30.933717:70.261158:-900.000000 +-0.712391:86.544740:-900.000000 +39.012609:76.544740:-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 +4.052923:61.754838:-900.000000 +43.777923:51.754838:-900.000000 PORT Search:"" FIN_BOX @@ -198,7 +178,7 @@ ISEXEC:FALSE -8.724799:13.002027:-900.000000 31.000201:3.002027:-900.000000 PORT -In3:"/Step001.txt " +In3:"/Step01_Insert_Data.txt " FIN_BOX BOX std:ConcatStrings:Box26 @@ -227,8 +207,8 @@ FIN_BOX BOX std:ConcatStrings:Box29 ISEXEC:FALSE -9.842547:-65.134740:-900.000000 -49.567547:-75.134740:-900.000000 +40.258944:-71.811510:-900.000000 +79.983944:-81.811510:-900.000000 FIN_BOX BOX std:ConcatStrings:Box30 @@ -263,28 +243,48 @@ FIN_BOX BOX std:ConcatStrings:Box34 ISEXEC:FALSE -91.031336:-13.315348:-900.000000 -130.756336:-23.315348:-900.000000 +89.918541:-11.460690:-900.000000 +129.643541:-21.460690:-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 +102.934029:-25.166353:-900.000000 +142.659029:-35.166353:-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 +122.651825:-40.982692:-900.000000 +162.376825:-50.982692:-900.000000 PORT In3:"/Step06.txt " FIN_BOX -CONNECTIONS:62 +BOX +std:ReplaceString:Box38 +ISEXEC:FALSE +-17.011517:-31.937228:-900.000000 +22.713483:-41.937228:-900.000000 +PORT +Search:"/Condition_01" +FIN_BOX +BOX +wx:OutputText:Box39 +ISEXEC:FALSE +269.669745:-91.434748:-900.000000 +306.444745:-101.434748:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box40 +ISEXEC:FALSE +-18.982535:-67.830006:-900.000000 +20.742465:-77.830006:-900.000000 +FIN_BOX +CONNECTIONS:67 CONNECTION BaseDir:BaseDir:Box03:In NumberOfControlPoints:0 @@ -471,4 +471,19 @@ NumberOfControlPoints:0 CONNECTION Box13:Out:Box36:In1 NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box38:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box39:Widget:Box06:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box40:In1 +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box40:In2 +NumberOfControlPoints:0 APP_END diff --git a/appli/template_creaPatientsSystem/scripts/Report.bbs b/appli/template_creaPatientsSystem/scripts/Report.bbs index ef7e5ce..ecae2f8 100644 --- a/appli/template_creaPatientsSystem/scripts/Report.bbs +++ b/appli/template_creaPatientsSystem/scripts/Report.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/Report.bbs +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/Report.bbs # ---------------------------------- # BBTK GEditor Script @@ -35,7 +35,7 @@ new wx:LayoutLine Box08 new wx:OutputText Box09 new wx:CommandButton Box10 - set Box10.Label "Exit" + set Box10.Label "Close" new wx:OutputText Box11 @@ -49,16 +49,7 @@ 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" + set Box15.LstTitles2 "Patient Insert_Data InitValues Filter Correction Validation PushDB Comment Comment Comment" new wx:ListCtrl Box17 @@ -83,7 +74,7 @@ new std:ReplaceString Box24 set Box24.Search "" new std:ConcatStrings Box25 - set Box25.In3 "/Step001.txt " + set Box25.In3 "/Step01_Insert_Data.txt " new std:ConcatStrings Box26 set Box26.In2 "/results" @@ -116,6 +107,13 @@ new std:ConcatStrings Box35 new std:ConcatStrings Box36 set Box36.In3 "/Step06.txt " +new std:ReplaceString Box38 + set Box38.Search "/Condition_01" + +new wx:OutputText Box39 + +new std:ConcatStrings Box40 + connect Box04.Widget Box06.Widget1 @@ -239,6 +237,16 @@ connect Box24.Out Box36.In2 connect Box13.Out Box36.In1 +connect Box22.Out Box38.In + +connect Box38.Out Box39.In + +connect Box39.Widget Box06.Widget5 + +connect Box03.Out Box40.In1 + +connect Box38.Out Box40.In2 + # Complex input ports diff --git a/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbg b/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbg new file mode 100644 index 0000000..4fb52a4 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbg @@ -0,0 +1,132 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:WriteStatePatientSystem +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:1 +COMPLEX_PORT +boxChange +-47.740669:-83.512551:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:4 +COMPLEX_PORT +User +-6.589557:76.250590:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +State +35.099478:75.443705:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +FileState +-77.864359:74.636821:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxExecute +-108.794933:73.292013:-900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +std:DateTime:Box00 +ISEXEC:FALSE +43.308183:13.257113:-900.000000 +78.708183:3.257113:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box02 +ISEXEC:FALSE +-16.003210:48.009631:-900.000000 +20.071790:38.009631:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box03 +ISEXEC:FALSE +29.817095:48.375440:-900.000000 +65.892095:38.375440:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box04 +ISEXEC:FALSE +-35.906362:-18.154902:-900.000000 +3.818638:-28.154902:-900.000000 +PORT +In1:"User State Date Time" +FIN_BOX +BOX +std:ConcatStrings:Box05 +ISEXEC:FALSE +9.913943:-17.251170:-900.000000 +49.638943:-27.251170:-900.000000 +PORT +In2:" " +PORT +In4:" " +PORT +In6:" " +FIN_BOX +BOX +std:WriteColumnsString:Box06 +ISEXEC:FALSE +-52.850938:-55.002630:-900.000000 +-7.610938:-65.002630:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box07 +ISEXEC:FALSE +-87.891201:45.782673:-900.000000 +-51.816201:35.782673:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box08 +ISEXEC:FALSE +-129.214427:46.417443:-900.000000 +-93.139427:36.417443:-900.000000 +FIN_BOX +CONNECTIONS:13 +CONNECTION +User:User:Box02:In +NumberOfControlPoints:0 +CONNECTION +State:State:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box05:In1 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box05:In3 +NumberOfControlPoints:0 +CONNECTION +Box00:Date:Box05:In5 +NumberOfControlPoints:0 +CONNECTION +Box00:Time:Box05:In7 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box06:lstData1 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box06:lstData2 +NumberOfControlPoints:0 +CONNECTION +FileState:FileState:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box06:FileName +NumberOfControlPoints:0 +CONNECTION +Box08:BoxChange:Box06:BoxExecute +NumberOfControlPoints:0 +CONNECTION +boxExecute:boxExecute:Box08:In +NumberOfControlPoints:0 +CONNECTION +Box06:BoxChange:boxChange:boxChange +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbs b/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbs new file mode 100644 index 0000000..0a307a6 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbs @@ -0,0 +1,57 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/WriteStatePatientSystem.bbs +# ---------------------------------- + +include std +include itkvtk +include std + +define WriteStatePatientSystem creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new std:DateTime Box00 + +new std:MagicBox Box02 + +new std:MagicBox Box03 + +new std:ConcatStrings Box04 + set Box04.In1 "User State Date Time" + +new std:ConcatStrings Box05 + set Box05.In2 " " + set Box05.In4 " " + set Box05.In6 " " + +new std:WriteColumnsString Box06 + +new std:MagicBox Box07 + +new std:MagicBox Box08 + + +connect Box02.Out Box05.In1 +connect Box03.Out Box05.In3 +connect Box00.Date Box05.In5 +connect Box00.Time Box05.In7 +connect Box04.Out Box06.lstData1 +connect Box05.Out Box06.lstData2 +connect Box07.Out Box06.FileName +connect Box08.BoxChange Box06.BoxExecute + +# Complex input ports +input User Box02.In " " +input State Box03.In " " +input FileState Box07.In " " +input boxExecute Box08.In " " + +# Complex output ports +output boxChange Box06.BoxChange " " + + +endefine