From e0d79b413e54554986ffd435473c6e31d3fb30fa Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 29 Apr 2020 17:55:59 +0200 Subject: [PATCH] #3417 CreaMiniTools Feature New Normal - box ImageFillByPlane2_Viewer --- .../bbs/boxes/ImageFillByPlane2_Viewer.bbg | 271 ++++++++++++++++++ .../bbs/boxes/ImageFillByPlane2_Viewer.bbs | 109 +++++++ 2 files changed, 380 insertions(+) create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbg b/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbg new file mode 100644 index 0000000..57394bb --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbg @@ -0,0 +1,271 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/C10/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImageFillByPlane2_Viewer +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:7 +COMPLEX_PORT +widgetOut +248.629958:-73.980835:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +wxbaseviewer2 +145.549652:-80.249232:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +wxbaseviewer3 +161.801052:-80.945721:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +wxbaseviewer4 +178.284614:-81.642209:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +withslice +217.287973:-70.962718:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxchange +110.028736:-69.801904:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +point +123.262019:-69.337578:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:1 +COMPLEX_PORT +fileName +-50.232616:206.067303:-900.000000 +FIN_COMPLEX_PORT +BOXES:16 +BOX +creaVtk:MHDFileInfo:Box00 +ISEXEC:FALSE +2.991756:144.690368:-900.000000 +40.616756:134.690368:-900.000000 +FIN_BOX +BOX +vtk:CreateImage:Box01 +ISEXEC:FALSE +68.078032:119.881949:-900.000000 +107.428032:109.881949:-900.000000 +FIN_BOX +BOX +PackRecalage:AddImageToVector:Box02 +ISEXEC:FALSE +26.013471:94.208730:-900.000000 +71.413471:84.208730:-900.000000 +FIN_BOX +BOX +vtk:CreateImage:Box03 +ISEXEC:FALSE +80.110269:95.157844:-900.000000 +119.460269:85.157844:-900.000000 +PORT +Dimensions:"250 250 250" +FIN_BOX +BOX +vtk:GetVectorVtkImageDataElement:Box04 +ISEXEC:FALSE +42.254268:66.957916:-900.000000 +100.504268:56.957916:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box05 +ISEXEC:FALSE +133.277832:27.878542:-900.000000 +196.997832:17.878542:-900.000000 +PORT +nTypeView:"6 1 2 0" +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +-57.809312:186.950833:-900.000000 +-18.084312:176.950833:-900.000000 +FIN_BOX +BOX +creaMiniTools:ImageFillByPlane2:Box07 +ISEXEC:FALSE +45.750709:-53.577274:-900.000000 +89.625709:-63.577274:-900.000000 +PORT +_typeReadMHDPlane:"0" +FIN_BOX +BOX +wx:Slider:Box08 +ISEXEC:FALSE +256.333442:32.637534:-900.000000 +307.733442:22.637534:-900.000000 +PORT +In:"1" +PORT +Label:"true" +PORT +Max:"15" +PORT +Min:"1" +PORT +Title:"Speed" +FIN_BOX +BOX +wx:InputText:Box09 +ISEXEC:FALSE +228.762333:104.511136:-900.000000 +264.762333:94.511136:-900.000000 +PORT +In:"-100 1000" +PORT +Title:"Range ex&&2P&& -100 1000 ex&&2P&& 0 1" +FIN_BOX +BOX +wx:LayoutLine:Box10 +ISEXEC:FALSE +289.962477:-10.541508:-900.000000 +347.522477:-20.541508:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +std:GetVectorStringElement:Box11 +ISEXEC:FALSE +190.022148:85.284546:-900.000000 +239.422148:75.284546:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +std:GetVectorStringElement:Box12 +ISEXEC:FALSE +260.511434:84.568179:-900.000000 +309.911434:74.568179:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +wx:OutputText:Box13 +ISEXEC:FALSE +273.615203:10.348039:-900.000000 +310.390203:0.348039:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box14 +ISEXEC:FALSE +334.544730:9.175850:-900.000000 +371.319730:-0.824150:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box15 +ISEXEC:FALSE +245.611841:-45.656968:-900.000000 +284.691841:-55.656968:-900.000000 +PORT +Proportion:"90" +FIN_BOX +CONNECTIONS:32 +CONNECTION +Box00:DimSize:Box01:Dimensions +NumberOfControlPoints:0 +CONNECTION +Box00:ElementSpacing:Box01:Spacing +NumberOfControlPoints:0 +CONNECTION +Box00:ElementType:Box01:OutputFormat +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box02:In0 +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box04:ErrorValue +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box00:FileName +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box07:_widthSlice +NumberOfControlPoints:0 +CONNECTION +Box05:BoxChange:Box07:_boxexecute +NumberOfControlPoints:0 +CONNECTION +Box00:DimSize:Box07:_dimsize +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box07:_fillename +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box07:_image +NumberOfControlPoints:0 +CONNECTION +Box05:Point:Box07:_point +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box12:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box05:ColorLevel +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box05:WindowLevel +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box10:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box10:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box10:Widget9 +NumberOfControlPoints:0 +CONNECTION +fileName:fileName:Box06:In1 +NumberOfControlPoints:0 +CONNECTION +Box05:wxVtkBaseView2:wxbaseviewer2:wxbaseviewer2 +NumberOfControlPoints:0 +CONNECTION +Box05:wxVtkBaseView3:wxbaseviewer3:wxbaseviewer3 +NumberOfControlPoints:0 +CONNECTION +Box05:wxVtkBaseView4:wxbaseviewer4:wxbaseviewer4 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:widgetOut:widgetOut +NumberOfControlPoints:0 +CONNECTION +Box08:Out:withslice:withslice +NumberOfControlPoints:0 +CONNECTION +Box05:BoxChange:boxchange:boxchange +NumberOfControlPoints:0 +CONNECTION +Box05:Point:point:point +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs new file mode 100644 index 0000000..23d6daf --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs @@ -0,0 +1,109 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /home/davila/Creatis/C10/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs +# ---------------------------------- + +include std +include itkvtk +include creaVtk +include vtk +include PackRecalage +include creaMaracasVisu +include std +include creaMiniTools +include wx + +define ImageFillByPlane2_Viewer creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new creaVtk:MHDFileInfo Box00 + +new vtk:CreateImage Box01 + +new PackRecalage:AddImageToVector Box02 + +new vtk:CreateImage Box03 + set Box03.Dimensions "250 250 250" + +new vtk:GetVectorVtkImageDataElement Box04 + set Box04.I "0" + +new creaMaracasVisu:ViewerNV Box05 + set Box05.nTypeView "6 1 2 0" + +new std:ConcatStrings Box06 + +new creaMiniTools:ImageFillByPlane2 Box07 + set Box07._typeReadMHDPlane "0" + +new wx:Slider Box08 + set Box08.In "1" + set Box08.Label "true" + set Box08.Max "15" + set Box08.Min "1" + set Box08.Title "Speed" + +new wx:InputText Box09 + set Box09.In "-100 1000" + set Box09.Title "Range ex: -100 1000 ex: 0 1" + +new wx:LayoutLine Box10 + set Box10.Orientation "H" + +new std:GetVectorStringElement Box11 + set Box11.I "0" + +new std:GetVectorStringElement Box12 + set Box12.I "1" + +new wx:OutputText Box13 + +new wx:OutputText Box14 + +new wx:LayoutSplit Box15 + set Box15.Proportion "90" + + +connect Box00.DimSize Box01.Dimensions +connect Box00.ElementSpacing Box01.Spacing +connect Box00.ElementType Box01.OutputFormat +connect Box01.Out Box02.In0 +connect Box02.Out Box04.In +connect Box03.Out Box04.ErrorValue +connect Box04.Out Box05.In +connect Box06.Out Box00.FileName +connect Box08.Out Box07._widthSlice +connect Box05.BoxChange Box07._boxexecute +connect Box00.DimSize Box07._dimsize +connect Box06.Out Box07._fillename +connect Box04.Out Box07._image +connect Box05.Point Box07._point +connect Box09.Out Box11.In +connect Box09.Out Box12.In +connect Box11.Out Box05.ColorLevel +connect Box12.Out Box05.WindowLevel +connect Box09.Widget Box10.Widget5 +connect Box08.Widget Box10.Widget3 +connect Box13.Widget Box10.Widget1 +connect Box14.Widget Box10.Widget9 +connect Box05.Widget Box15.Widget1 +connect Box10.Widget Box15.Widget2 + +# Complex input ports +input fileName Box06.In1 " " + +# Complex output ports +output wxbaseviewer2 Box05.wxVtkBaseView2 " " +output wxbaseviewer3 Box05.wxVtkBaseView3 " " +output wxbaseviewer4 Box05.wxVtkBaseView4 " " +output widgetOut Box15.Widget " " +output withslice Box08.Out " " +output boxchange Box05.BoxChange " " +output point Box05.Point " " + + +endefine -- 2.47.1