X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Ftemplate_creaPatientsSystem%2Fscripts%2F00500_Validate.bbs;fp=appli%2Ftemplate_creaPatientsSystem%2Fscripts%2F00500_Validate.bbs;h=815ad6ddfdc6773c5a939c9b741441fc2d1cc6a4;hb=380ac24f1bd5ac018b069d25147f2a626739e494;hp=0000000000000000000000000000000000000000;hpb=e22166cdf8719072962316960de1bf9f4565e62d;p=creaMiniTools.git 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