From 081620c3e9ca922c885f055f390d735af8322fc4 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 23 Jan 2024 18:35:43 +0100 Subject: [PATCH] #3467 ImageConvolution_Widget Complex Box --- .../bbs/boxes/ImageConvolution_Widget.bbg | 180 ++++++++++++++++++ .../bbs/boxes/ImageConvolution_Widget.bbs | 72 +++++++ 2 files changed, 252 insertions(+) create mode 100644 PackRecalage/bbs/boxes/ImageConvolution_Widget.bbg create mode 100644 PackRecalage/bbs/boxes/ImageConvolution_Widget.bbs diff --git a/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbg b/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbg new file mode 100644 index 0000000..6576651 --- /dev/null +++ b/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbg @@ -0,0 +1,180 @@ +# ---------------------------------- +# - BBTKGEditor v 1.5 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C23/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImageConvolution_Widget +PACKAGENAME:PackRecalage +COMPLEXOUTPUTS:5 +COMPLEX_PORT +_widget +-40.803229:-25.822798:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_colorlevel +23.283274:-26.626947:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_windowlevel +57.039197:-27.195228:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_outImage +-4.657727:-24.880026:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_execCheckBox +11.305468:-25.976532:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:3 +COMPLEX_PORT +_image +-6.862558:37.858962:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_lstColorLevel +47.035563:37.633482:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_lstWindowLevel +71.551510:37.915275:-900.000000 +FIN_COMPLEX_PORT +BOXES:10 +BOX +PackRecalage:ImageConvolution:Box00 +ISEXEC:FALSE +-8.750156:-4.259588:-900.000000 +13.684844:-6.759588:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box01 +ISEXEC:FALSE +-42.471286:-17.033424:-900.000000 +-9.151286:-19.533424:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:Slider:Box02 +ISEXEC:FALSE +-48.437796:23.513182:-900.000000 +-18.637796:21.013182:-900.000000 +PORT +In:"-12000" +PORT +Max:"12000" +PORT +Min:"-12000" +PORT +ReactiveOnTrack:"false" +FIN_BOX +BOX +wx:CheckBox:Box03 +ISEXEC:FALSE +13.885005:25.059669:-900.000000 +35.515005:22.559669:-900.000000 +PORT +Title:"Convolution" +FIN_BOX +BOX +std:Div:Box04 +ISEXEC:FALSE +-34.515939:17.097580:-900.000000 +-13.590939:14.597580:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +std:MagicBox:Box07 +ISEXEC:FALSE +-12.501211:25.025288:-900.000000 +9.098789:22.525288:-900.000000 +FIN_BOX +BOX +std:GetVectorStringElement:Box10 +ISEXEC:FALSE +22.653491:-4.622441:-900.000000 +45.608491:-7.122441:-900.000000 +FIN_BOX +BOX +std:GetVectorStringElement:Box11 +ISEXEC:FALSE +59.582493:-5.008256:-900.000000 +82.537493:-7.508256:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box12 +ISEXEC:FALSE +40.618333:25.310962:-900.000000 +62.218333:22.810962:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box13 +ISEXEC:FALSE +66.192079:25.171231:-900.000000 +87.792079:22.671231:-900.000000 +FIN_BOX +CONNECTIONS:19 +CONNECTION +Box03:Out:Box00:On +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box01:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box04:In1 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box00:Factor +NumberOfControlPoints:0 +CONNECTION +_image:_image:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box00:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:_widget:_widget +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box10:I +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box11:I +NumberOfControlPoints:0 +CONNECTION +_lstColorLevel:_lstColorLevel:Box12:In +NumberOfControlPoints:0 +CONNECTION +_lstWindowLevel:_lstWindowLevel:Box13:In +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box10:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box10:Out:_colorlevel:_colorlevel +NumberOfControlPoints:0 +CONNECTION +Box11:Out:_windowlevel:_windowlevel +NumberOfControlPoints:0 +CONNECTION +Box00:Out:_outImage:_outImage +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box01:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:_execCheckBox:_execCheckBox +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbs b/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbs new file mode 100644 index 0000000..de9f4d8 --- /dev/null +++ b/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbs @@ -0,0 +1,72 @@ +# ---------------------------------- +# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/C23/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/ImageConvolution_Widget.bbs +# ---------------------------------- + +include std +include itkvtk +include PackRecalage +include wx +include std + +define ImageConvolution_Widget PackRecalage + +author "Author ??" +description "Description ??" + +category "" + +new PackRecalage:ImageConvolution Box00 + +new wx:LayoutLine Box01 + set Box01.Orientation "H" + +new wx:Slider Box02 + set Box02.In "-12000" + set Box02.Max "12000" + set Box02.Min "-12000" + set Box02.ReactiveOnTrack "false" + +new wx:CheckBox Box03 + set Box03.Title "Convolution" + +new std:Div Box04 + set Box04.In2 "100" + +new std:MagicBox Box07 + +new std:GetVectorStringElement Box10 + +new std:GetVectorStringElement Box11 + +new std:MagicBox Box12 + +new std:MagicBox Box13 + + +connect Box03.Out Box00.On +connect Box03.Widget Box01.Widget4 +connect Box02.Out Box04.In1 +connect Box04.Out Box00.Factor +connect Box07.Out Box00.In +connect Box02.BoxChange Box00.BoxExecute +connect Box03.Out Box10.I +connect Box03.Out Box11.I +connect Box12.Out Box10.In +connect Box13.Out Box11.In +connect Box02.Widget Box01.Widget2 + +# Complex input ports +input _image Box07.In " " +input _lstColorLevel Box12.In " " +input _lstWindowLevel Box13.In " " + +# Complex output ports +output _widget Box01.Widget " " +output _colorlevel Box10.Out " " +output _windowlevel Box11.Out " " +output _outImage Box00.Out " " +output _execCheckBox Box03.BoxChange " " + + +endefine -- 2.47.1