From: Eduardo DAVILA Date: Wed, 1 Dec 2021 15:27:28 +0000 (+0100) Subject: #3477 RGBviewer X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9a229301a324888df87ce194f114176441f3745b;p=creaMaracasVisu.git #3477 RGBviewer --- diff --git a/bbtk/bbs/appli/exampleRGBviewer.bbg b/bbtk/bbs/appli/exampleRGBviewer.bbg new file mode 100644 index 0000000..6ff9cb4 --- /dev/null +++ b/bbtk/bbs/appli/exampleRGBviewer.bbg @@ -0,0 +1,76 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C11/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleRGBviewer.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:6 +BOX +creaImageIO:ReadImages:Box00 +ISEXEC:FALSE +-21.665977:52.472288:-900.000000 +16.959023:42.472288:-900.000000 +PORT +LstNameImages:"/Users/davila/CreatisWork/tmpCharly/results/Brain-Study01/davila/001_Orig-Images/Test01/P_8/Condition_01/image.tif" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-26.856784:33.288871:-900.000000 +36.863216:23.288871:-900.000000 +PORT +nTypeView:"-1" +FIN_BOX +BOX +creaVtk:ScalarsToColors:Box03 +ISEXEC:FALSE +50.779634:31.483373:-900.000000 +92.304634:21.483373:-900.000000 +PORT +Type:"3" +FIN_BOX +BOX +creaMaracasVisu:SetwxVtkBaseViewLookupTable:Box04 +ISEXEC:FALSE +12.412799:-1.466967:-900.000000 +69.262799:-11.466967:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box08 +ISEXEC:TRUE +-14.218297:-41.187925:-900.000000 +43.341703:-51.187925:-900.000000 +FIN_BOX +BOX +wx:FileSelector:Box09 +ISEXEC:FALSE +-18.280668:78.200636:-900.000000 +19.094332:68.200636:-900.000000 +PORT +Title:"*.tif *.png *.jpg ... " +FIN_BOX +CONNECTIONS:6 +CONNECTION +Box00:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box03:LookupTable:Box04:ScalarToColors +NumberOfControlPoints:0 +CONNECTION +Box02:wxVtkBaseView1:Box04:BaseView1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box04:BoxChange:Box08:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box00:LstNameImages +NumberOfControlPoints:0 +APP_END diff --git a/bbtk/bbs/appli/exampleRGBviewer.bbs b/bbtk/bbs/appli/exampleRGBviewer.bbs new file mode 100644 index 0000000..63f3cf8 --- /dev/null +++ b/bbtk/bbs/appli/exampleRGBviewer.bbs @@ -0,0 +1,52 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/Creatis/C11/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleRGBviewer.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu +include creaVtk +include wx + +author "Author ??" +description "Description ??" +category "" + +new creaImageIO:ReadImages Box00 + set Box00.LstNameImages "/Users/davila/CreatisWork/tmpCharly/results/Brain-Study01/davila/001_Orig-Images/Test01/P_8/Condition_01/image.tif" + +new creaMaracasVisu:ViewerNV Box02 + set Box02.nTypeView "-1" + +new creaVtk:ScalarsToColors Box03 + set Box03.Type "3" + +new creaMaracasVisu:SetwxVtkBaseViewLookupTable Box04 + +new wx:LayoutLine Box08 + +new wx:FileSelector Box09 + set Box09.Title "*.tif *.png *.jpg ... " + + +connect Box00.Out Box02.In + +connect Box03.LookupTable Box04.ScalarToColors + +connect Box02.wxVtkBaseView1 Box04.BaseView1 + +connect Box02.Widget Box08.Widget1 + +connect Box04.BoxChange Box08.BoxExecute + +connect Box09.Out Box00.LstNameImages + + + +# Complex input ports +exec Box08