From 6575e8694c2f1c0d56d5acc00d8bb329f53eb65a Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 21 Aug 2015 15:08:09 +0200 Subject: [PATCH] #2691 creaWT Feature New Normal - Implementation temp files --- .../bbs/appli/demoPresentacion1Boton03.bbg | 294 ++++++++++++++++++ .../bbs/appli/demoPresentacion1Boton03.bbs | 160 ++++++++++ wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbg | 130 ++++++++ wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbs | 61 ++++ wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbg | 97 ++++++ wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs | 52 ++++ wt/bbtk_wt_PKG/src/bbwtAddMesh.cxx | 9 +- wt/bbtk_wt_PKG/src/bbwtconfigServerWT.cxx | 1 + 8 files changed, 800 insertions(+), 4 deletions(-) create mode 100644 wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbg create mode 100644 wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs create mode 100644 wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbg create mode 100644 wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbs create mode 100644 wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbg create mode 100644 wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs diff --git a/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbg b/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbg new file mode 100644 index 0000000..1997381 --- /dev/null +++ b/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbg @@ -0,0 +1,294 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:20 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +19.706028:4.218308:-900.000000 +65.281028:-5.781692:-900.000000 +FIN_BOX +BOX +itk:BinaryThresholdImageFilter:Box02 +ISEXEC:FALSE +110.969172:-113.546435:-900.000000 +182.144172:-123.546435:-900.000000 +PORT +InsideValue:"255" +PORT +LowerThreshold:"1250" +PORT +OutsideValue:"0" +PORT +UpperThreshold:"1500" +FIN_BOX +BOX +vtk:MarchingCubes:Box05 +ISEXEC:FALSE +98.769445:-206.135374:-900.000000 +144.344445:-216.135374:-900.000000 +PORT +ComputeNormalsOn:"true" +PORT +ComputeScalarsOn:"false" +PORT +Value:"128" +FIN_BOX +BOX +vtk:ImageContinuousErode3D:Box06 +ISEXEC:FALSE +112.040179:-136.271704:-900.000000 +183.215179:-146.271704:-900.000000 +PORT +KernelSizeX:"3" +PORT +KernelSizeY:"3" +PORT +KernelSizeZ:"3" +FIN_BOX +BOX +vtk:SegmentationConnectivity:Box09 +ISEXEC:FALSE +112.425062:-157.933155:-900.000000 +183.600062:-167.933155:-900.000000 +PORT +PositionXYZ:"73 101 93" +PORT +ThresholdMinMax:"200 300" +FIN_BOX +BOX +wt:ViewerNVWeb:Box12 +ISEXEC:FALSE +-79.966168:-202.388734:-900.000000 +-34.391168:-212.388734:-900.000000 +PORT +ImagePath:"xx" +FIN_BOX +BOX +wt:Slider:Box15 +ISEXEC:FALSE +-135.346214:-66.177168:-900.000000 +-87.026214:-76.177168:-900.000000 +PORT +In:"1250" +PORT +Max:"1500" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"LowerThreshold" +FIN_BOX +BOX +wt:Slider:Box16 +ISEXEC:FALSE +-153.534026:-38.309300:-900.000000 +-105.214026:-48.309300:-900.000000 +PORT +In:"1500" +PORT +Max:"4000" +PORT +Min:"1500" +PORT +ReactiveOnTrack:"true" +PORT +Title:"UpperThresHold" +FIN_BOX +BOX +wt:LayoutLine:Box17 +ISEXEC:FALSE +-184.557478:-126.277482:-900.000000 +-126.997478:-136.277482:-900.000000 +FIN_BOX +BOX +wt:CommandButton:Box21 +ISEXEC:FALSE +-126.882350:-88.359946:-900.000000 +-81.307350:-98.359946:-900.000000 +PORT +Label:"Run...Q" +FIN_BOX +BOX +wt:configServerWT:Box24 +ISEXEC:TRUE +4.308157:-272.491944:-900.000000 +49.883157:-282.491944:-900.000000 +PORT +DocRoot:"/var/www/testwtdbg/docroot/appli1/" +PORT +Port:"8082" +FIN_BOX +BOX +itk:ImageWriter:Box26 +ISEXEC:FALSE +-2.355526:-180.973757:-900.000000 +43.219474:-190.973757:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box27 +ISEXEC:FALSE +-40.193736:-128.049015:-900.000000 +5.381264:-138.049015:-900.000000 +PORT +In1:"/var/www/testwtdbg/docroot/appli1/" +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +-27.981750:-150.063096:-900.000000 +17.593250:-160.063096:-900.000000 +PORT +In2:"/imagesTMP/" +PORT +In3:"hola.nii" +FIN_BOX +BOX +vtk:ImageGaussianSmooth:Box29 +ISEXEC:FALSE +106.977757:-186.112622:-900.000000 +178.152757:-196.112622:-900.000000 +PORT +StdDevX:"0" +PORT +StdDevY:"0" +PORT +StdDevZ:"0" +FIN_BOX +BOX +wt:Slider:Box31 +ISEXEC:FALSE +-169.916356:-14.173068:-900.000000 +-121.596356:-24.173068:-900.000000 +PORT +In:"1" +PORT +Max:"4" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Smooth" +FIN_BOX +BOX +wt:AddMeshB:Box37 +ISEXEC:FALSE +13.203509:-245.183527:-900.000000 +58.778509:-255.183527:-900.000000 +FIN_BOX +BOX +wt:ImageWriteB:Box33 +ISEXEC:TRUE +-76.199317:-160.688358:-900.000000 +-30.624317:-170.688358:-900.000000 +FIN_BOX +BOX +wt:OutputText:Box35 +ISEXEC:FALSE +-129.329787:-182.455051:-900.000000 +-83.754787:-192.455051:-900.000000 +FIN_BOX +BOX +wt:LayoutSplit:Box36 +ISEXEC:TRUE +-117.324457:-252.223720:-900.000000 +-71.749457:-262.223720:-900.000000 +PORT +Orientation:"h" +FIN_BOX +CONNECTIONS:28 +CONNECTION +Box00:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box09:In +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box02:LowerThreshold +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box02:UpperThreshold +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box17:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box17:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box17:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box28:In1 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box26:Filename +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box29:In +NumberOfControlPoints:0 +CONNECTION +Box31:Widget:Box17:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box29:StdDevX +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box29:StdDevY +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box29:StdDevZ +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box37:vtkPolyData +NumberOfControlPoints:0 +CONNECTION +Box12:Viewer1:Box37:viewerwt +NumberOfControlPoints:0 +CONNECTION +Box21:BoxChange:Box37:boxExecute +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box33:Image +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box17:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box33:FileName:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box21:BoxChange:Box35:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box36:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box36:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box33:FileName:Box12:ImagePath +NumberOfControlPoints:0 +CONNECTION +Box33:out:Box24:BoxExecute +NumberOfControlPoints:0 +APP_END diff --git a/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs b/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs new file mode 100644 index 0000000..ba60fdf --- /dev/null +++ b/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs @@ -0,0 +1,160 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include itk +include wt +include std + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new itk:BinaryThresholdImageFilter Box02 + set Box02.InsideValue "255" + set Box02.LowerThreshold "1250" + set Box02.OutsideValue "0" + set Box02.UpperThreshold "1500" + +new vtk:MarchingCubes Box05 + set Box05.ComputeNormalsOn "true" + set Box05.ComputeScalarsOn "false" + set Box05.Value "128" + +new vtk:ImageContinuousErode3D Box06 + set Box06.KernelSizeX "3" + set Box06.KernelSizeY "3" + set Box06.KernelSizeZ "3" + +new vtk:SegmentationConnectivity Box09 + set Box09.PositionXYZ "73 101 93" + set Box09.ThresholdMinMax "200 300" + +new wt:ViewerNVWeb Box12 + set Box12.ImagePath "xx" + +new wt:Slider Box15 + set Box15.In "1250" + set Box15.Max "1500" + set Box15.Min "0" + set Box15.ReactiveOnTrack "true" + set Box15.Title "LowerThreshold" + +new wt:Slider Box16 + set Box16.In "1500" + set Box16.Max "4000" + set Box16.Min "1500" + set Box16.ReactiveOnTrack "true" + set Box16.Title "UpperThresHold" + +new wt:LayoutLine Box17 + +new wt:CommandButton Box21 + set Box21.Label "Run...Q" + +new wt:configServerWT Box24 + set Box24.DocRoot "/var/www/testwtdbg/docroot/appli1/" + set Box24.Port "8082" + +new itk:ImageWriter Box26 + +new std:ConcatStrings Box27 + set Box27.In1 "/var/www/testwtdbg/docroot/appli1/" + +new std:ConcatStrings Box28 + set Box28.In2 "/imagesTMP/" + set Box28.In3 "hola.nii" + +new vtk:ImageGaussianSmooth Box29 + set Box29.StdDevX "0" + set Box29.StdDevY "0" + set Box29.StdDevZ "0" + +new wt:Slider Box31 + set Box31.In "1" + set Box31.Max "4" + set Box31.Min "0" + set Box31.ReactiveOnTrack "true" + set Box31.Title "Smooth" + +new wt:AddMeshB Box37 + +new wt:ImageWriteB Box33 + +new wt:OutputText Box35 + +new wt:LayoutSplit Box36 + set Box36.Orientation "h" + + +connect Box00.Out Box02.In + +connect Box02.Out Box06.In + +connect Box06.Out Box09.In + +connect Box15.Out Box02.LowerThreshold + +connect Box16.Out Box02.UpperThreshold + +connect Box15.Widget Box17.Widget2 + +connect Box16.Widget Box17.Widget3 + +connect Box21.Widget Box17.Widget5 + +connect Box00.Out Box26.In + +connect Box27.Out Box28.In1 + +connect Box28.Out Box26.Filename + +connect Box09.Out Box29.In + +connect Box31.Widget Box17.Widget1 + +connect Box31.Out Box29.StdDevX + +connect Box31.Out Box29.StdDevY + +connect Box31.Out Box29.StdDevZ + +connect Box29.Out Box05.In + +connect Box05.Out Box37.vtkPolyData + +connect Box12.Viewer1 Box37.viewerwt + +connect Box21.BoxChange Box37.boxExecute + +connect Box00.Out Box33.Image + +connect Box35.Widget Box17.Widget4 + +connect Box33.FileName Box35.In + +connect Box21.BoxChange Box35.BoxExecute + +connect Box17.Widget Box36.Widget1 + +connect Box12.Widget Box36.Widget2 + +connect Box33.FileName Box12.ImagePath + +connect Box33.out Box24.BoxExecute + + + +# Complex input ports +exec Box24 +exec Box33 +exec Box36 diff --git a/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbg b/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbg new file mode 100644 index 0000000..49f4370 --- /dev/null +++ b/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbg @@ -0,0 +1,130 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:AddMeshB +PACKAGENAME:wt +COMPLEXOUTPUTS:1 +COMPLEX_PORT +out +-63.140570:-83.461272:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:3 +COMPLEX_PORT +boxExecute +-60.524336:71.546578:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +vtkPolyData +21.793922:71.326104:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +viewerwt +-17.624853:72.702521:-900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +std:RandomString:Box04 +ISEXEC:FALSE +72.734827:21.182375:-900.000000 +118.309827:11.182375:-900.000000 +PORT +BoxProcessMode:"Reactive" +FIN_BOX +BOX +std:ConcatStrings:Box05 +ISEXEC:FALSE +63.042625:3.035383:-900.000000 +108.617625:-6.964617:-900.000000 +PORT +In1:"mesh_" +PORT +In3:".vtk" +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +52.446753:-16.755001:-900.000000 +98.021753:-26.755001:-900.000000 +PORT +In1:"imagesTMP/" +FIN_BOX +BOX +std:ConcatStrings:Box07 +ISEXEC:FALSE +70.769844:-39.045242:-900.000000 +116.344844:-49.045242:-900.000000 +FIN_BOX +BOX +vtk:PolyDataWriter:Box09 +ISEXEC:FALSE +21.320661:-61.821623:-900.000000 +66.895661:-71.821623:-900.000000 +FIN_BOX +BOX +wt:AddMesh:Box10 +ISEXEC:FALSE +-33.151380:-61.807461:-900.000000 +12.423620:-71.807461:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box11 +ISEXEC:FALSE +-64.412233:45.152810:-900.000000 +-18.837233:35.152810:-900.000000 +PORT +BoxProcessMode:"Reactive" +FIN_BOX +BOX +wt:GetConfigServerWt:Box12 +ISEXEC:FALSE +116.484416:-14.508239:-900.000000 +162.059416:-24.508239:-900.000000 +FIN_BOX +CONNECTIONS:13 +CONNECTION +Box04:Out:Box05:In2 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box06:In2 +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box07:In2 +NumberOfControlPoints:0 +CONNECTION +vtkPolyData:vtkPolyData:Box09:In +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box09:Filename +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box10:Mesh +NumberOfControlPoints:0 +CONNECTION +viewerwt:viewerwt:Box10:ViewerWt +NumberOfControlPoints:0 +CONNECTION +boxExecute:boxExecute:Box11:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:BoxChange:Box09:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:BoxChange:Box10:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:BoxChange:out:out +NumberOfControlPoints:0 +CONNECTION +Box12:DocRoot:Box07:In1 +NumberOfControlPoints:0 +APP_END diff --git a/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbs b/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbs new file mode 100644 index 0000000..f621110 --- /dev/null +++ b/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbs @@ -0,0 +1,61 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/boxes/AddMeshB.bbs +# ---------------------------------- + +include std +include itkvtk +include std +include vtk +include wt + +define AddMeshB wt + +author "Author ??" +description "Description ??" + +category "" + +new RandomString Box04 + set Box04.BoxProcessMode "Reactive" + +new ConcatStrings Box05 + set Box05.In1 "mesh_" + set Box05.In3 ".vtk" + +new ConcatStrings Box06 + set Box06.In1 "imagesTMP/" + +new ConcatStrings Box07 + +new PolyDataWriter Box09 + +new AddMesh Box10 + +new MultipleInputs Box11 + set Box11.BoxProcessMode "Reactive" + +new GetConfigServerWt Box12 + + +connect Box04.Out Box05.In2 +connect Box05.Out Box06.In2 +connect Box06.Out Box07.In2 +connect Box07.Out Box09.Filename +connect Box06.Out Box10.Mesh +connect Box11.BoxChange Box09.BoxExecute +connect Box11.BoxChange Box10.BoxExecute +connect Box11.BoxChange Box04.BoxExecute +connect Box12.DocRoot Box07.In1 + +# Complex input ports +input vtkPolyData Box09.In " " +input viewerwt Box10.ViewerWt " " +input boxExecute Box11.BoxExecute " " + +# Complex output ports +output out Box11.BoxChange " " + +message + +endefine diff --git a/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbg b/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbg new file mode 100644 index 0000000..279174d --- /dev/null +++ b/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbg @@ -0,0 +1,97 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImageWriteB +PACKAGENAME:wt +COMPLEXOUTPUTS:2 +COMPLEX_PORT +FileName +-37.840203:-74.992777:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +out +12.962019:-76.083926:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:1 +COMPLEX_PORT +Image +21.790028:78.397984:-900.000000 +FIN_COMPLEX_PORT +BOXES:6 +BOX +std:ConcatStrings:Box00 +ISEXEC:FALSE +-31.511542:19.529497:-900.000000 +14.063458:9.529497:-900.000000 +PORT +In1:"Image_" +PORT +In3:".nii" +FIN_BOX +BOX +itk:ImageWriter:Box01 +ISEXEC:TRUE +12.813789:-50.501643:-900.000000 +58.388789:-60.501643:-900.000000 +FIN_BOX +BOX +wt:GetConfigServerWt:Box02 +ISEXEC:FALSE +-111.255962:3.228152:-900.000000 +-65.680962:-6.771848:-900.000000 +FIN_BOX +BOX +std:RandomString:Box03 +ISEXEC:FALSE +-22.477657:39.017820:-900.000000 +23.097343:29.017820:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box04 +ISEXEC:FALSE +-40.928359:0.461165:-900.000000 +4.646641:-9.538835:-900.000000 +PORT +In1:"imagesTMP/" +FIN_BOX +BOX +std:ConcatStrings:Box05 +ISEXEC:FALSE +-85.031342:-22.214135:-900.000000 +-39.456342:-32.214135:-900.000000 +PORT +In2:"/" +FIN_BOX +CONNECTIONS:8 +CONNECTION +Image:Image:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box00:In2 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box04:In2 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:FileName:FileName +NumberOfControlPoints:0 +CONNECTION +Box02:DocRoot:Box05:In1 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box05:In3 +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box01:Filename +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:out:out +NumberOfControlPoints:0 +APP_END diff --git a/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs b/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs new file mode 100644 index 0000000..e18eed5 --- /dev/null +++ b/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs @@ -0,0 +1,52 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs +# ---------------------------------- + +include std +include itkvtk +include std +include itk +include wt + +define ImageWriteB wt + +author "Author ??" +description "Description ??" + +category "" + +new ConcatStrings Box00 + set Box00.In1 "Image_" + set Box00.In3 ".nii" + +new ImageWriter Box01 + +new GetConfigServerWt Box02 + +new RandomString Box03 + +new ConcatStrings Box04 + set Box04.In1 "imagesTMP/" + +new ConcatStrings Box05 + set Box05.In2 "/" + + +connect Box03.Out Box00.In2 +connect Box00.Out Box04.In2 +connect Box02.DocRoot Box05.In1 +connect Box04.Out Box05.In3 +connect Box05.Out Box01.Filename + +# Complex input ports +input Image Box01.In " " + +# Complex output ports +output FileName Box04.Out " " +output out Box01.BoxChange " " + +message +exec Box01 + +endefine diff --git a/wt/bbtk_wt_PKG/src/bbwtAddMesh.cxx b/wt/bbtk_wt_PKG/src/bbwtAddMesh.cxx index ef7f69d..34c1a13 100644 --- a/wt/bbtk_wt_PKG/src/bbwtAddMesh.cxx +++ b/wt/bbtk_wt_PKG/src/bbwtAddMesh.cxx @@ -66,13 +66,14 @@ void AddMesh::Process() {\ if(!" + mCont +")\ {\ - }\ - };\ - " + mRenderer+".add( " + mMesh+");\ - " + mRenderer+".render();\ + " + mMesh+".visible = true;\ " + mMesh+".transform.flipX();\ " + mMesh+".transform.flipY();\ " + mMesh+".transform.translateY(-10);\ + " + mCont+" = true;\ + }\ + };\ + " + mRenderer+".add( " + mMesh+");\ " + mRenderer+".render();\ }"; diff --git a/wt/bbtk_wt_PKG/src/bbwtconfigServerWT.cxx b/wt/bbtk_wt_PKG/src/bbwtconfigServerWT.cxx index ee97ce7..a77b760 100644 --- a/wt/bbtk_wt_PKG/src/bbwtconfigServerWT.cxx +++ b/wt/bbtk_wt_PKG/src/bbwtconfigServerWT.cxx @@ -4,6 +4,7 @@ #include "bbwtconfigServerWT.h" #include "bbwtPackage.h" #include "bbtkWtBlackBox.h" + namespace bbwt { -- 2.47.1