From 9439d154e61f886c4a46dde1388bc05d1ba303e2 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 18 May 2016 07:28:00 +0200 Subject: [PATCH] #2945 creaVtk Feature New Normal - ImageSlab box in creaVtk package --- .../bbs/boxes/Slab_Interface-01.bbg | 157 ++++++++++++++++++ .../bbs/boxes/Slab_Interface-01.bbs | 68 ++++++++ bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbg | 154 +++++++++++++++++ bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbs | 65 ++++++++ 4 files changed, 444 insertions(+) create mode 100644 bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg create mode 100644 bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs create mode 100644 bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbg create mode 100644 bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbs diff --git a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg new file mode 100644 index 0000000..9da0cd1 --- /dev/null +++ b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg @@ -0,0 +1,157 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:Slab-Interface-01 +PACKAGENAME:creaVtk +COMPLEXOUTPUTS:5 +COMPLEX_PORT +widget +79.430184:-190.897397:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +NewSlice +22.760465:-186.995008:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +size +53.832721:-189.566487:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Boxchange +-41.512066:-186.365177:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +type +-5.834076:-188.090118:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:1 +COMPLEX_PORT +SliceIn +-36.727040:5.079220:-900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +wx:Slider:Box75 +ISEXEC:FALSE +49.678420:-21.921062:-900.000000 +101.078420:-31.921062:-900.000000 +PORT +In:"0" +PORT +Max:"5" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +wx:ComboBox:Box76 +ISEXEC:FALSE +-6.893781:-22.686442:-900.000000 +38.681219:-32.686442:-900.000000 +PORT +In:"Mean Sum Min Max" +FIN_BOX +BOX +wx:LayoutLine:Box77 +ISEXEC:FALSE +77.946334:-138.290950:-900.000000 +135.506334:-148.290950:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:OutputText:Box78 +ISEXEC:FALSE +106.736249:-102.072950:-900.000000 +152.311249:-112.072950:-900.000000 +PORT +In:"22" +FIN_BOX +BOX +std:MathOperation:Box79 +ISEXEC:FALSE +67.887619:-41.370193:-900.000000 +113.462619:-51.370193:-900.000000 +PORT +In2:"2" +PORT +Type:"2" +FIN_BOX +BOX +std:MathOperation:Box80 +ISEXEC:FALSE +92.019488:-65.794132:-900.000000 +137.594488:-75.794132:-900.000000 +PORT +In2:"1" +FIN_BOX +BOX +std:MathOperation:Box84 +ISEXEC:FALSE +7.889427:-135.681937:-900.000000 +53.464427:-145.681937:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:MultipleInputs:Box91 +ISEXEC:FALSE +-49.905931:-95.199347:-900.000000 +-4.330931:-105.199347:-900.000000 +FIN_BOX +CONNECTIONS:16 +CONNECTION +Box76:Widget:Box77:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box75:Widget:Box77:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box78:Widget:Box77:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box79:In1 +NumberOfControlPoints:0 +CONNECTION +Box79:Out:Box80:In1 +NumberOfControlPoints:0 +CONNECTION +Box80:Out:Box78:In +NumberOfControlPoints:0 +CONNECTION +Box75:BoxChange:Box78:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box84:In2 +NumberOfControlPoints:0 +CONNECTION +Box77:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +Box84:Out:NewSlice:NewSlice +NumberOfControlPoints:0 +CONNECTION +Box80:Out:size:size +NumberOfControlPoints:0 +CONNECTION +SliceIn:SliceIn:Box84:In1 +NumberOfControlPoints:0 +CONNECTION +Box76:BoxChange:Box91:In1 +NumberOfControlPoints:0 +CONNECTION +Box75:BoxChange:Box91:In2 +NumberOfControlPoints:0 +CONNECTION +Box91:BoxChange:Boxchange:Boxchange +NumberOfControlPoints:0 +CONNECTION +Box76:Out:type:type +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs new file mode 100644 index 0000000..7aca4b0 --- /dev/null +++ b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs @@ -0,0 +1,68 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include std + +define Slab-Interface-01 creaVtk + +author "Author ??" +description "Description ??" + +category "" + +new wx:Slider Box75 + set Box75.In "0" + set Box75.Max "5" + set Box75.ReactiveOnTrack "true" + +new wx:ComboBox Box76 + set Box76.In "Mean Sum Min Max" + +new wx:LayoutLine Box77 + set Box77.Orientation "H" + +new wx:OutputText Box78 + set Box78.In "22" + +new std:MathOperation Box79 + set Box79.In2 "2" + set Box79.Type "2" + +new std:MathOperation Box80 + set Box80.In2 "1" + +new std:MathOperation Box84 + set Box84.Type "1" + +new std:MultipleInputs Box91 + + +connect Box76.Widget Box77.Widget1 +connect Box75.Widget Box77.Widget2 +connect Box78.Widget Box77.Widget3 +connect Box75.Out Box79.In1 +connect Box79.Out Box80.In1 +connect Box80.Out Box78.In +connect Box75.BoxChange Box78.BoxExecute +connect Box75.Out Box84.In2 +connect Box76.BoxChange Box91.In1 +connect Box75.BoxChange Box91.In2 + +# Complex input ports +input SliceIn Box84.In1 " " + +# Complex output ports +output widget Box77.Widget " " +output NewSlice Box84.Out " " +output size Box80.Out " " +output Boxchange Box91.BoxChange " " +output type Box76.Out " " + +message + +endefine diff --git a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbg b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbg new file mode 100644 index 0000000..98372f6 --- /dev/null +++ b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbg @@ -0,0 +1,154 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:Slab-Widget-01 +PACKAGENAME:creaVtk +COMPLEXOUTPUTS:4 +COMPLEX_PORT +widget +93.953966:-53.781205:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Image3D +-27.702481:-49.991726:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +ImageSlab2D +11.961982:-53.647496:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxChange +-47.299904:-53.296671:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:3 +COMPLEX_PORT +LstFileNames +15.962814:120.846577:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Slice_In +76.162150:120.091063:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxExecute +-47.737400:119.406911:-900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +creaMaracasVisu:ImageChangeInformation:Box48 +ISEXEC:FALSE +14.406629:12.736954:-900.000000 +85.581629:2.736954:-900.000000 +FIN_BOX +BOX +gdcmvtk:GetXCoherentInfoGdcmReader:Box49 +ISEXEC:FALSE +11.066019:33.249915:-900.000000 +82.241019:23.249915:-900.000000 +FIN_BOX +BOX +creaVtk:ImageSlab:Box88 +ISEXEC:FALSE +12.301485:-16.224995:-900.000000 +57.876485:-26.224995:-900.000000 +PORT +Type:"0" +FIN_BOX +BOX +std:GetVectorStringSubVector:Box90 +ISEXEC:FALSE +17.790344:56.322722:-900.000000 +88.965344:46.322722:-900.000000 +PORT +ErrorValue:"ups" +FIN_BOX +BOX +creaVtk:Slab-Interface-01:Box31 +ISEXEC:FALSE +77.429763:95.749804:-900.000000 +123.004763:85.749804:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box25 +ISEXEC:FALSE +-51.427798:89.930543:-900.000000 +-5.852798:79.930543:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box26 +ISEXEC:FALSE +-41.334043:55.194974:-900.000000 +4.240957:45.194974:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box07 +ISEXEC:FALSE +10.435805:-32.604325:-900.000000 +81.610805:-42.604325:-900.000000 +FIN_BOX +CONNECTIONS:19 +CONNECTION +Box90:Out:Box49:In +NumberOfControlPoints:0 +CONNECTION +LstFileNames:LstFileNames:Box90:In +NumberOfControlPoints:0 +CONNECTION +Slice_In:Slice_In:Box31:SliceIn +NumberOfControlPoints:0 +CONNECTION +Box31:size:Box90:Size +NumberOfControlPoints:0 +CONNECTION +Box31:NewSlice:Box90:I +NumberOfControlPoints:0 +CONNECTION +Box31:widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +boxExecute:boxExecute:Box25:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box25:BoxChange:Box26:In1 +NumberOfControlPoints:0 +CONNECTION +Box31:Boxchange:Box26:In2 +NumberOfControlPoints:0 +CONNECTION +Box26:BoxChange:Box88:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box49:Out:Box48:In +NumberOfControlPoints:0 +CONNECTION +Box48:Out:Box88:In +NumberOfControlPoints:0 +CONNECTION +Box48:Out:Image3D:Image3D +NumberOfControlPoints:0 +CONNECTION +Box26:BoxChange:boxChange:boxChange +NumberOfControlPoints:0 +CONNECTION +Box31:type:Box88:Type +NumberOfControlPoints:0 +CONNECTION +Box26:BoxChange:Box48:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box26:BoxChange:Box49:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box88:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box07:Out:ImageSlab2D:ImageSlab2D +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbs b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbs new file mode 100644 index 0000000..713ce9c --- /dev/null +++ b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbs @@ -0,0 +1,65 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/Slab_Widget-01.bbs +# ---------------------------------- + +include std +include itkvtk +include creaMaracasVisu +include gdcmvtk +include creaVtk +include std + +define Slab-Widget-01 creaVtk + +author "Author ??" +description "Description ??" + +category "" + +new creaMaracasVisu:ImageChangeInformation Box48 + +new gdcmvtk:GetXCoherentInfoGdcmReader Box49 + +new creaVtk:ImageSlab Box88 + set Box88.Type "0" + +new std:GetVectorStringSubVector Box90 + set Box90.ErrorValue "ups" + +new creaVtk:Slab-Interface-01 Box31 + +new std:MagicBox Box25 + +new std:MultipleInputs Box26 + +new creaMaracasVisu:ImageChangeInformation Box07 + + +connect Box90.Out Box49.In +connect Box31.size Box90.Size +connect Box31.NewSlice Box90.I +connect Box25.BoxChange Box26.In1 +connect Box31.Boxchange Box26.In2 +connect Box26.BoxChange Box88.BoxExecute +connect Box49.Out Box48.In +connect Box48.Out Box88.In +connect Box31.type Box88.Type +connect Box26.BoxChange Box48.BoxExecute +connect Box26.BoxChange Box49.BoxExecute +connect Box88.Out Box07.In + +# Complex input ports +input LstFileNames Box90.In " " +input Slice_In Box31.SliceIn " " +input boxExecute Box25.BoxExecute " " + +# Complex output ports +output widget Box31.widget " " +output Image3D Box48.Out " " +output boxChange Box26.BoxChange " " +output ImageSlab2D Box07.Out " " + +message + +endefine -- 2.47.1